Commit Graph

6 Commits

Author SHA1 Message Date
Andrew Tridgell 3371296e39 waf: use python3 even if /usr/bin/python is v2 2023-05-06 10:09:04 +10:00
Francisco Ferreira d9ad3eeab0 waf: use Python from environment 2018-11-13 10:30:34 +11:00
Andrew Tridgell a4e50e1626 waf: use the current python interpreter for sub-commands 2018-08-07 14:40:36 +10:00
Lucas De Marchi 0ad3b0421f waf: let wrapper exit with error
It's not useful to raise an excpetion because it will only report the
command called exit with an error. Just return an error code instead of
rasing an exception. This way we get nicer error messages:

    ./waf unknowncommand
    No function unknowncommand defined in /home/lucas/p/dronecode/ardupilot/wscript

vs

    ./waf unknowncommand
    No function unknowncommand defined in /home/lucas/p/dronecode/ardupilot/wscript
    Traceback (most recent call last):
      File "./waf", line 15, in <module>
        raise e
    subprocess.CalledProcessError: Command '['python', '/home/lucas/p/dronecode/ardupilot/modules/waf/waf-light', 'unknowncommand']' returned non-zero exit status 1
2016-09-29 10:21:36 -03:00
Lucas De Marchi fdafa4561c waf: allow to run wrapper on windows
On Windows we have 2 issues with the current wrapper:
	1. We can't call the binary directly relying on shebang. Now we
	   call python and pass the script as an argument
	2. Use os.path.join() with all components to derive the right
	   waf-light location
2016-08-26 20:35:30 -03:00
Lucas De Marchi 97cb766c0f build: add waf wrapper
Simple wrapper to be extended later so people don't have to type the
huge "./modules/waf/waf-light" command.  It has a very primitive way to
try to checkout waf submodule if it isn't there.
2016-08-04 20:04:19 -03:00