summaryrefslogtreecommitdiffstats
path: root/SCons/Script
Commit message (Collapse)AuthorAgeFilesLines
* One more unneeded try-import-fixupMats Wichmann2020-11-191-6/+2
| | | | | | gettext is always present now, so extra steps not needed. Signed-off-by: Mats Wichmann <mats@linux.com>
* Drop some more Py2 compat thingsMats Wichmann2020-10-131-5/+1
| | | | | | | | | | | | | Change exception type in a a couple of try block to what could go wrong, Py3 would not raise UniCodeDecodeError for these cases One try-import of StringIO module sconsign does not need a decode that was claimed as compat hack Remove some sys.version_info checks Use more modern way to get Python details in test frawmework AddMethod updated and RenameFunction dropped - it had become a one-liner and had no clients other than AddMethod (never exposed as public) Signed-off-by: Mats Wichmann <mats@linux.com>
* Try new way to detect thread support. Check threading.get_ident() which ↵William Deegan2020-10-041-1/+7
| | | | should always return a positive integer. The fake threading module dummy_threading will always return -1
* Remove pywin32 from scons win32 install requirements. Remove usage from ↵William Deegan2020-10-041-14/+1
| | | | SCons.Script.main
* Update some copyright strings and drop __revision__ [skip appveyor]Mats Wichmann2020-09-239-64/+45
| | | | | | | | | | | | | | | | | | Touches the first and second levels of SCons (except SCons.Tool), not tests or docs which remain TODO. Make sure docstring is first non-comment content, eliminate cases where docstring is set elsewhere but assigns to __doc__ - this approach of course worked inside Python, but confuses various tools. Some module-level docstrings modified a bit, in particular the convention of having the name of the module as the first line is dropped, replaced by a summary description going there instead - this improves the look in the API Docs, which otherwise display something like: SCons.Foo - SCons.Foo Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge branch 'master' into autoflakeWilliam Deegan2020-09-211-2/+1
|\
| * Use cProfile if profiling.Mats Wichmann2020-09-211-2/+1
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* | Run autoflake on codeMats Wichmann2020-09-211-1/+0
|/ | | | | | | | | | Eliminate unneeded imports, and a few unneeded statements - usually "pass" where it is not syntactically needed. A couple of import try blocks were eliminated or changed when they're "cannot happen" due to current floor Python version. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3758 from mwichmann/GetSet-optsWilliam Deegan2020-09-192-111/+124
|\ | | | | Align SetOption doc with settable options list
| * [PR #3758] expand on SetOption limitations [skip appvyor]Mats Wichmann2020-07-301-1/+5
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PR #3758] be more explicit about syncing SetOption list [ci skip]Mats Wichmann2020-07-292-2/+4
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * Align SetOption doc with settable options list. [skip appveyor]Mats Wichmann2020-07-272-111/+118
| | | | | | | | | | | | | | | | List is recast into a table for readability. Comments in both places remind to keep lists in sync. Signed-off-by: Mats Wichmann <mats@linux.com>
* | [PR #3784] adjust opt-abbreviation msg after PR reviewMats Wichmann2020-08-251-1/+1
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* | Reject abbreviations of AddOption options.Mats Wichmann2020-08-232-6/+9
| | | | | | | | | | | | | | If a cmdline option is left over, and looks like an abbreviation of an AddOption'd option, raise an error. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Conditionally suppress deprecation message.Joachim Kuebart2020-08-111-1/+1
| | | | | | | | Suppress missing SConscript deprecation message when must_exist is used.
* | Address review feedbackAdam Gross2020-08-031-1/+1
|/ | | | Do the "* 1024" when setting File.md5_chunksize, not when using it later.
* Change Warning to SConsWarningMats Wichmann2020-07-071-1/+1
| | | | | | avoid potential overlap with Python's own Warnng class. Signed-off-by: Mats Wichmann <mats@linux.com>
* fix scons --version and packagingWilliam Deegan2020-07-041-2/+2
|
* All working except automatic build of wheel and sdist packageWilliam Deegan2020-06-301-4/+3
|
* Merge remote-tracking branch 'origin/master' into sconscript_node_flagsDaniel Moody2020-06-054-151/+177
|\
| * Merge branch 'master' into docs-markupWilliam Deegan2020-05-311-19/+17
| |\
| | * Docstring changes from Sphinx conversion [ci skip]Mats Wichmann2020-05-301-19/+17
| | | | | | | | | | | | | | | | | | | | | | | | These changes are prompted by complaints Sphinx makes about existing docstrings; split from the Sphinx-build PR to make for easier reviewing. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | Updates to shared docs [ci skip]Mats Wichmann2020-05-302-132/+155
| |/ | | | | | | | | | | | | | | | | | | Mostly update markup to more "standard" markup conventions. There are some substantive wording changes to CacheDir descriptions in Environment, and to the AddOption/Help descriptions in Main and SConscript files. Signed-off-by: Mats Wichmann <mats@linux.com>
| * Close scons logfiles on completionMats Wichmann2020-05-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | Files written to in logging operations could remain unclosed: more modern Pythons grumble about this; given the type of Python build, could emit ResourceWarning messages which cause tests to fail. Close by registering calls with atexit. Affects Trace, cache debug, taskmastertrace, configure. Signed-off-by: Mats Wichmann <mats@linux.com>
* | added is_sconscript for checking if node is a sconscript node or notDaniel Moody2020-06-051-1/+2
|/
* classes no longer explicitly inherit from objectMats Wichmann2020-05-243-8/+10
| | | | | | In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
* Bump unsupported/deperecated Py versionsMats Wichmann2020-05-161-2/+2
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* [ci skip] Add note that AddOption('no_progress') is new as of 4.0.0William Deegan2020-05-111-0/+1
|
* Merge pull request #3459 from dmoody256/patch-1William Deegan2020-05-112-1/+17
|\ | | | | Add no_progress (-Q) as set-able option
| * Merge remote-tracking branch 'origin/master' into patch-1Daniel Moody2020-05-062-1/+17
| |
* | [WIP] adjust docbuild for moved src [ci skip]Mats Wichmann2020-05-102-10/+10
|/ | | | | | | src/engine/SCons moved to SCons, affects wired in paths in documentation, and doc building scripts Signed-off-by: Mats Wichmann <mats@linux.com>
* Reorganize the repo. Moved src/engine/SCons to ./SCons to be more in line ↵William Deegan2020-05-069-0/+5469
with current python packaging practices