summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Script
Commit message (Collapse)AuthorAgeFilesLines
* Add Textfile/Substfile to default.Mats Wichmann2018-11-171-0/+2
| | | | | | | | | | | | Existing Textfile and Substfile builders (and tool textfile) are added to the defaults, so they do not need to be explicitly specified in the tools list. The documentation sort of implies these are default builders (by not saying anything) so no doc change is made. Fixes issue #3147 Signed-off-by: Mats Wichmann <mats@linux.com>
* corrections after bdbaddog's code reviewPaweł Tomulik2018-11-103-8/+8
|
* initial support for virtualenvPaweł Tomulik2018-11-103-1/+23
|
* Fix for #3162: tweak SConscript() docstrings a little moreMats Wichmann2018-07-301-10/+18
| | | | | | | Also handle_missing_SConscript(), internal interface added by this patch series. Signed-off-by: Mats Wichmann <mats@linux.com>
* Some further adjustments to missing-sconscript testsMats Wichmann2018-07-301-2/+2
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Add a docstring for SConscript()Mats Wichmann2018-07-291-1/+25
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Add tests for SConscript(must_warn) optionMats Wichmann2018-07-282-9/+11
| | | | | | | | | | | | | | Testcases added to confirm the behavior of: first attempt to call a non-existent script gives a deprecation warning, additional ones give plain warning; True/False values for must_warn behave as expected; if scons default is changed to exception the call fails but if must_warn=False it still works. Tweaked the logic to actually get that last bit to work. Also minor doc update. Signed-off-by: Mats Wichmann <mats@linux.com>
* Add ability for SConscript to fail on missing scriptMats Wichmann2018-07-213-6/+46
| | | | | | | | | | | | | | | SConscript call now takes an optional must_exist flag, which defaults to False for compatiility with current behavior. If True, an exception is raised if the file is missing. To improve readability, the decision is moved off to a new function rather than being inline in _SConscript. A global setting to control the overall behavior is also added. A deprecation warning is added for the current behavior, which is printed only once. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3148 from swuecho/fix_testWilliam Deegan2018-07-151-8/+1
|\ | | | | Replace usage of unittest.TestSuite with unittest.main()
| * Replace usage of unittest.TestSuite with unittest.main()Hao Wu2018-07-121-8/+1
| |
* | 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 HOWTO/README. Remove vestiges of Option(). [ci skip]William Deegan2018-02-191-2/+0
|
* Remove SCons.Options code which has long been deprecated and already removed ↵William Deegan2018-01-301-7/+0
| | | | from documents. Also remove associated tests.
* Add printing time processing each SConscript when --debug=time is specified ↵William Deegan2017-10-201-0/+9
| | | | on command line
* Support python 2 print statements in SConscriptsThomas Berg2017-09-251-2/+0
| | | | | | | | | This fixes a regression introduced in scons-3.0.0, where SConscripts containing python 2 print statements would cause syntax errors even when executing scons with python 2.7. This ensures backward compatibility, allowing users to build legacy code with scons-3.0.0 without having to patch it.
* Fix many epydoc warningsWilliam Deegan2017-09-011-11/+8
|
* Fix Bug #2486 - Allow SetOption('silent',True) - Previously this option ↵William Deegan2017-08-201-0/+8
| | | | could not be passed to SetOption
* Fix Bug #2486 - Allow SetOption('silent',True) - Previously this option ↵William Deegan2017-08-201-0/+1
| | | | could not be passed to SetOption
* Added support for a PyPackageDir functiongrbd2017-08-031-0/+1
|
* Remove ancient Aegis revision control system filesJane Doe2017-05-301-5/+0
|
* py2/3 change to read sconscripts as binary file. at least ↵William Deegan2017-04-101-3/+4
| | | | test/packaging/rpm/internationalization.py was failing because an open in py3 without specified encoding with LANG=C was trying to decode the file as ascii and it contained unicode characters and was failing. So far I haven't found any tests failing from this change
* 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
|
* When iterating over dict.items(), we do not need a new list.Craig Rodrigues2017-03-122-2/+2
|
* Merged in rodrigc/scons (pull request #404)William Deegan2017-03-121-1/+1
|\ | | | | | | exec() must take a string, not a file object.
| * exec() must take a string, not a file object. Fixes py2/3Craig Rodrigues2017-03-111-1/+1
| |
* | Replace list(filter()) with list comprehension.Craig Rodrigues2017-03-112-2/+2
|/
* Merged scons/scons into defaultWilliam Deegan2017-03-101-2/+2
|\
| * Use print() function to fix py2/3Craig Rodrigues2017-03-101-2/+2
| |
* | Fixing SConsValues to work with py2/3. Turns out because in py2 ↵William Deegan2017-03-101-1/+14
|/ | | | optparse.Values is a classic class deepcopy works different than in py3 when it's a modern class (no more classic classes). The net of which is deepcopy will look for various methods to copy the objects state, __deepcopy__, something else, then __setstate__. When it checks for __setstate__ it trys on a blank SConsValue instance which doesn't have __defaults__ and so SConsValues ends up throwing a KeyError exception. deepcopy is looking for an AttributeError exception to know that __setstate__ is not available. Once it receives the appropriate exception, it then properly copies the object and scons interactive mode works with py3
* PEP-8 changesWilliam Deegan2017-02-261-0/+6
|
* Futurize stage 2 2to3 fixes only.William Blevins2016-09-204-5/+5
|
* merge python3 branch to defaultWilliam Deegan2016-05-235-53/+66
|\
| * Fixing StringIO usage.William Deegan2016-05-191-1/+1
| |
| * Fix py2/3 StringIO importWilliam Deegan2016-05-191-1/+6
| |
| * 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-012-3/+7
| |
| * Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-246-137/+69
| |\
| * \ Merged default branch into python3-port to keep it up to date.Gary Oberbrunner2014-08-232-28/+40
| |\ \ | | | | | | | | | | | | | | | | Hand-updated a few things to keep them python3-safe, and handled several merge conflicts.
| * | | 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-314-6/+73
| |\ \ \