Commit Graph

52 Commits

Author SHA1 Message Date
Thomas Nagy 850e9ad5fc
Simplify env['FOO'] -> env.FOO 2016-06-25 23:54:12 +02:00
Daniel Bartel 44b571172b Merge branch 'master' into check_swig_version 2016-06-21 21:07:55 +02:00
Thomas Nagy 9be51b5cf8
Fix the Python version detection message #1760 2016-06-21 20:22:27 +02:00
Daniel Bartel bf05bac08a fix output format issue 2016-06-20 21:33:26 +02:00
Thomas Nagy b1f5c0f814
Create installation tasks directly
Task generators created from other task generators may be
skipped during partial builds. This change re-enables
install_task as a task attribute and provides a task
object with input and output nodes which can be re-used
by other tasks.
2016-05-06 15:54:36 +02:00
Thomas Nagy 09f67a3b3a
Remove the private Scripting._can_distclean function 2016-04-27 18:42:38 +02:00
Thomas Nagy 8b32d93ec3
cleanup: '%s' -> %r 2016-04-26 19:35:46 +02:00
Thomas Nagy 8520dd65bb
Code cleanup 2016-04-19 22:00:21 +02:00
Thomas Nagy a08aff6bff
Format debug/info records lazily 2016-03-19 14:46:22 +01:00
Thomas Nagy df8e144631 Smarter detection of programs passed to the command-line 2016-02-23 22:59:29 +01:00
Thomas Nagy 1886e77063
Workaround for python-config bug 7352 - Issue 1636 2015-10-09 19:19:59 +02:00
Thomas Nagy c91214e216
generated .py files might need to be byte-compiled and installed 2015-06-11 18:15:10 +02:00
Thomas Nagy 802e937d73
Regression caused by 588f809ffa - https://github.com/waf-project/waf/pull/1572 2015-05-08 18:16:48 +02:00
Thomas Nagy 44211e0bb5
Enabled errors on warnings for the apidoc generation 2015-04-26 21:00:15 +02:00
Daniel Svensson 588f809ffa Use same prefix convention for python as with ruby and perl.
Should /usr/local/.../site-packages not be in sys.path in some
platform, a user would pass --pythondir, and --pythonarchdir to
waf when compiling, or modify sys.path.

This makes waf work more predictable, as when passing --prefix
parameter to the build, everything will be installed under this
directory.
2015-04-11 16:26:30 +02:00
Thomas Nagy 9a72b14976
Enable environment-provided flags for cross-compilation in python.py 2015-03-01 11:59:16 +01:00
Thomas Nagy 47a100480f
Issue 1538 - make detection of pyembed optional 2015-02-27 12:03:53 +01:00
XZS 6d5bde451d
install compiled python files besides sources
Compiled python files are now placed in a __pycache__ directory besides
the source file, which is in fact the only location PEP 3142 specifies.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2015-01-02 19:30:08 +01:00
Thomas Nagy 149653a937
First commit of the year 2015 2015-01-01 16:24:54 +01:00
Thomas Nagy 6c11f91e12
Issue 1522 2014-12-27 20:31:11 +01:00
Thomas Nagy 0cb547e65d
Issue 1498 - no python-config on windows, use the system from waf 1.7 2014-10-27 04:02:39 +01:00
Thomas Nagy 9a0a7ca562
Added crutches for python-config detection on Python 2.5 2014-09-28 23:07:02 +02:00
Thomas Nagy 49a8bb15b2
Issue 1471 - use python-config to detect python 2014-08-31 21:11:41 +02:00
Thomas Nagy 671add18e0
Install in the pycache folder of the file, not in the one of the task generator - Issue 1478 2014-08-29 20:05:58 +02:00
Thomas Nagy 32d2f0e1da
merged the os2 case in Utils.is_win32 2014-08-09 18:08:39 +02:00
Thomas Nagy f6aca05fdd
Create __pycache__ files - Issue 1403 2014-07-25 18:15:23 +02:00
Gustavo Carneiro 69fb126a4c Issue 1405 2014-02-04 10:55:26 +00:00
Jérôme Carretero 33a60e79e7 treecleaner: 'in [...]' replaced by 'in (...)' where appropriate 2014-01-05 16:27:06 -05:00
Jérôme Carretero 5064fd92ef always use the convention that commands are lists, remove find_perl_program, add interpreter 2013-09-04 23:10:10 -04:00
Jérôme Carretero 1fad148b2c Tools: python: allow passing PYTHON in environment 2013-09-04 00:35:49 -04:00
Alexander Afanasyev 9b75b843ae Tools/python: Extending python tool
add: show more command-line arguments to control which
     python is used and where py/pyext files should be installed.
     The new options are in addition to the existing PYTHON, PYTHONDIR,
     and PYTHONARCHDIR environment variable, providing the help messages
     to the user, so it can easily change parameters without second-guessing
     of what are they.

     Environmental parameters override command line arguments (is it right?)

updated: An extension to Configure.find_command to allow specification
         of the name for the searched command (using `msg` option). This is
         helpful when the search command is a huge list, as in the case of
         python's python-config case.

updated: Do not specify prefix for `get_python_lib`, since this way it
         can result in a wrong PYTHONDIR and PYTHONARCHDIR on certain platforms
         (e.g., OSX)

updated: Changing logic with byte-compilation of python files. Mow, files are
         compiled during the build stage, not install stage.  During the
         install stage files are simply copied to the requested
         location.

updated: If there is an error in python source code, byte-compilation
         phase will raise an exception and abort building process.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-08-17 18:15:05 +02:00
Thomas Nagy 0f64aea102 Issue 1261 2013-03-04 17:13:31 +01:00
Thomas Nagy 526fe68773 Issue 1231 2013-02-17 14:29:41 +01:00
Thomas Nagy 82b49862e2 Issue 1220 2012-11-04 10:29:36 +01:00
Thomas Nagy 85698bdb53 support for python modules in fortran -_- 2012-10-21 11:29:40 +02:00
Thomas Nagy 0f6ee2a0cf Issue 1192 2012-08-24 22:53:07 +02:00
Thomas Nagy 8d1ff034df test the compilation of a pyembed program, not a pyembed shlib 2012-07-05 16:10:10 +02:00
Thomas Nagy c2aef04b0e Fixed the configuration tests for Issue 915 2012-07-04 19:11:09 +02:00
Thomas Nagy 62613ddefc Issue 915 2012-07-03 15:42:17 +02:00
Thomas Nagy 183388abce python detection fix for hp-ux (build farm) 2012-06-19 18:02:04 +02:00
Thomas Nagy 4f6b76ff9e log more outputs 2012-06-16 02:43:02 +02:00
Thomas Nagy a5c4b29ec4 Do not prevent Logs.error/warn/debug from getting replaced 2012-06-01 04:26:44 +02:00
Thomas Nagy 154bc0145e Issue 1130 2012-03-18 19:05:54 +01:00
Thomas Nagy b5bb54ede7 remove more except: lines 2012-02-11 14:49:27 +01:00
Thomas Nagy 1d8f14da94 Issue 1103 2012-01-14 16:35:33 +01:00
Thomas Nagy cdb339213b Issue 1098 2012-01-05 21:01:11 +01:00
Thomas Nagy 5d31ae480a give conf.env.env to Popen in missing places 2011-12-25 11:11:44 +01:00
Thomas Nagy 9c49c5ab00 Issue 1083 2011-12-17 23:07:25 +01:00
Thomas Nagy 68a5675914 more powerpc fixes 2011-11-19 13:35:21 +01:00
Thomas Nagy f9a598cb29 cosmetic changes 2011-10-01 08:24:36 +02:00