summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Script/Main.py
Commit message (Collapse)AuthorAgeFilesLines
* [PYPY] fix way exit status is retrieved in mainMats Wichmann2019-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When scons exits, it wants to take the opportunity to print any diagnostics and statistics that may have been requested, so the main routine traps the various ways it can quit. If code somewhere calls sys.exit(), that generates a SystemExit exception. The handling of that has not been quite correct - it simply takes the exception instance, saves it, and later quits with sys.exit(saved). This seemingly works fine for all other tested versions of Python, but has interesting side effects with PyPy3. Per the Python documentation: If the value is an integer, it specifies the system exit status (passed to C’s exit() function); if it is None, the exit status is zero; if it has another type (such as a string), the object’s value is printed and the exit status is one. And in fact, PyPy3 does this: if the original call to sys.exit took a value of 2, then the SystemExit exception triggers with a class instance which does have an exit code of 2, which turns up if you take the string repr of the instance, but when passed to the final sys.exit, as it's not an integer it *prints* the 2, and returns with an exit code of 1, just as in the documentation snip. Not really sure if PyPy3 is wrong here, or the other Pythons are letting something slide, but it's an easy fix: save off the code stored in the exception instance for later use as the exit code, instead of using the instance itself for that. Signed-off-by: Mats Wichmann <mats@linux.com>
* corrections after bdbaddog's code reviewPaweł Tomulik2018-11-101-4/+4
|
* initial support for virtualenvPaweł Tomulik2018-11-101-0/+8
|
* Swap to use cleaner check for py 3.7 or above from @serhiy-storchakaWilliam Deegan2018-07-151-2/+1
|
* Fix -jN for Python3.7, which always has thread supportGary Oberbrunner2018-07-131-1/+5
|
* Added in support for Sconstruct.pygrbd2018-04-151-1/+1
|
* Added sconstruct.py lowercasegrbd2018-04-021-1/+1
|
* Also search for SConstruct.py, to make VStudio debugging easiergrbd2018-04-011-1/+1
|
* Reenable parallel builds with PypyWilliam Deegan2018-03-251-1/+3
|
* fix breaking windows check for functional parallel buildsWilliam Deegan2017-04-071-3/+3
|
* py2/3 use sysconfig.get_config_var('WITH_THREAD') to determine if python has ↵William Deegan2017-04-061-1/+5
| | | | threads
* py2/3 remove wb from created taskmaster trace fileWilliam Deegan2017-03-131-1/+1
|
* Replace list(filter()) with list comprehension.Craig Rodrigues2017-03-111-1/+1
|
* PEP-8 changesWilliam Deegan2017-02-261-0/+6
|
* Futurize stage 2 2to3 fixes only.William Blevins2016-09-201-1/+1
|
* Add from future import print_function to fix broken tests under python2.7William Deegan2016-05-091-1/+6
|
* Resolving a batch of failing tests for python 2.7.William Blevins2016-01-241-4/+2
| | | | Note: please evaluate python 3.X compliance.
* Run futurize --stage1.Russel Winder2016-01-011-2/+4
|
* Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-241-47/+24
|\
| * removed several pre-2.7 methods and imports, including some basic refactoringsDirk Baechle2015-12-101-35/+7
| |
| * Merged in billcroberts/scons (pull request #226)William Deegan2015-09-281-0/+3
| |\
| | * bug 2831: Allow appending Help text to Options OutputWilliam Roberts2015-03-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://scons.tigris.org/issues/show_bug.cgi?id=2831 In order to append, rather than clobber Help() generated text, use Help("my message", append=True) The append argument is only respected on the first call to this method as it operates on global data.
| * | - switching Node class and NodeInfo/Binfo to using slotsDirk Baechle2015-02-261-6/+5
| |/ | | | | | | - memoizer subsystem now uses decorators instead of the metaclass approach
| * - fix for issue #2971 (Interactive build doesn't work anymore)Dirk Baechle2014-09-271-1/+8
| |
* | Merged default branch into python3-port to keep it up to date.Gary Oberbrunner2014-08-231-28/+36
|\ \ | |/ | | | | | | Hand-updated a few things to keep them python3-safe, and handled several merge conflicts.
| * Speed up SCons execution by creating DefaultEnvironment foranatoly techtonik2014-06-011-1/+5
| | | | | | | | SCons.SConf.CreateConfigHBuilder only if necessary.
| * Fix development mailing list with a new address @scons.organatoly techtonik2014-05-281-1/+1
| |
| * - switched argument type of fs_delete and _clean_targets to bool (was int ↵Dirk Baechle2014-04-281-4/+4
| | | | | | | | before)
| * - fixed NoClean for multi-target buildersDirk Baechle2014-04-271-25/+29
| |
* | Added six module as SCons.compat.six, for python3 port.Gary Oberbrunner2014-04-201-1/+1
| |
* | Main: No __future__.print_function (would affect exec()'d code).Stefan Zimmermann2014-04-011-4/+6
| |
* | Main: Use exec() with compile().Stefan Zimmermann2014-04-011-1/+1
| |
* | Merged with [default]Stefan Zimmermann2014-03-311-10/+26
|\ \ | |/
| * Added release_target_info() to File nodes, reduces memory consumption.Dirk Baechle2013-12-191-0/+1
| |
| * Merge pull request #88 (for real this time). Prev commit was actually #87.Gary Oberbrunner2013-11-021-9/+20
| |\ | | | | | | | | | | | | | | | | | | * Allow multiple options to be specified with --debug=a,b,c * Add support for a readonly cache (--cache-readonly) * Always print stats if requested * Generally try harder to print out a message on build errors
| | * Merged scons/scons into defaultTom Tanner2013-10-301-1/+4
| | |\
| | * | Revert stdout/stderr to the initial ones in a few places.Tom Tanner2013-10-011-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | There are some situations where scons error messages can just disappear, and sometimes it's because a build rule or an SConscript or something has temporarily redirected stdout/stderr.
| | * | Added stack dump on build errorTom Tanner2013-10-011-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | Added message if nothing found to build Always produce profile stats, no matter what sort of exit Print message if you drop out with a build error
| | * | support for --cache-readonlyTom Tanner2013-10-011-0/+1
| | | | | | | | | | | | | | | | Setting this will fetch data from the cache but won't update it.
| * | | Merged scons/scons into defaultTom Tanner2013-10-301-1/+4
| |\ \ \ | | | |/ | | |/|
| | * | - now counting instances only when requested via --debug=countDirk Baechle2013-10-251-1/+4
| | |/
| * | Addition of warning if build doesn't build expected targets.Tom Tanner2013-09-261-0/+1
| |/ | | | | | | Added option to runtest.py to stop on first error
* | Made former 2to3 changes Python 2.7 compatible (or removed unneeded changes).Stefan Zimmermann2014-03-311-3/+4
| |
* | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-221-30/+31
|/
* Added note in Announce.txt re: deprecating python versions older than 2.7.Gary Oberbrunner2013-03-031-13/+14
| | | | Fixed deprecation warning message. (Includes some whitespace cleanup)
* Raised deprecated python version to be anything less than 2.7 to prep for ↵William Deegan2013-02-221-1/+1
| | | | moving the required version to 2.7 after the next major release
* Merged pull request #38, from eyan: add target name to debug=timeGary Oberbrunner2012-09-221-1/+1
| | | | Fixes #2873.
* Adding target name to output of --debug=time. Fix for Issue 2873Edmund Yan2012-09-181-1/+1
|
* fix for issue 2976edA-qa mort-ora-y2012-05-051-1/+2
|
* New debug option --debug=duplicate to debug Variant-dir duplicationGary Oberbrunner2011-03-011-0/+2
|