summaryrefslogtreecommitdiffstats
path: root/SCons/Script
Commit message (Collapse)AuthorAgeFilesLines
* Change SCons.Scanner.Base to ScannerBaseMats Wichmann2021-10-041-1/+1
| | | | | | | | | | Maintenance: SCons has multiple classes named Base, which is a bit unfortunate. Some already use a context-qualified name, like BuilderBase, which seems preferable. Do that for ScannerBase, but leave the name Base in the SCons.Scanner package in case *external* users are depending on SCons.Scanner.Base working. SCons internally no longer uses that name. Signed-off-by: Mats Wichmann <mats@linux.com>
* Post 4.2.0 merge/reset to development modeWilliam Deegan2021-08-011-1/+1
|
* Allow disable_execute_ninja and disable_ninja to be set via SetOptionWilliam Deegan2021-07-211-31/+43
|
* Tweak doc of experimental option [skip travis]Mats Wichmann2021-07-131-4/+6
| | | | | | | | | | | | Twiddled the way the experimental option is described, and listed ninja as the available feature. Also reformatted the exception call in the code for unknown feature, behavior was not changed. Essentially, this is a doc-only change. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3959 from mwichmann/nowarn-missing-sconscriptWilliam Deegan2021-07-121-13/+19
|\ | | | | Change warnings behavior of missing SConscript
| * Change warnings behavior of missing SConscriptMats Wichmann2021-06-181-13/+19
| | | | | | | | | | | | | | If SConscript() is called with must_exist=False, accept the user's will without issuing a warning about the file being missing. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge branch 'master' into ninja-generationWilliam Deegan2021-05-246-386/+429
|\ \ | |/
| * Update the documentation for GetOptionMats Wichmann2021-05-111-285/+277
| | | | | | | | | | | | | | | | | | Since working on Get/SetOption anyway via tests, update the documentation as well. GetOption now has a table (instead of a spread out list) to match SetOption, and the available vars are all listed, as well as a note on AddOption'd vars. Signed-off-by: Mats Wichmann <mats@linux.com>
| * Enable SetOption for implicit_deps*Mats Wichmann2021-05-082-153/+159
| | | | | | | | | | | | The SetOption table in the docs is reformatted for easier editing. Signed-off-by: Mats Wichmann <mats@linux.com>
| * Make sure SetOption list is up to dateMats Wichmann2021-05-082-16/+67
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * Fix some imports and other checker warningsMats Wichmann2021-05-054-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Removed a number of imports reported as unused. * Reorganize imports in a few places. * Checker reported warnings problems ("Instantiating an exception, but not raising it, has no effect"): serveral tool modules instantiated a warning class thinking (?) it would issue the warning; changed these to the standard use - calling the warn() function with the warnclass as an arg. * Tool modules that were touched had the copyright header munging applied. * Removed irritating "####" lines from gettext and msgfmt tools. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Add --experimental=ninjaWilliam Deegan2021-04-131-2/+2
| |
* | removed old sconscript changesDaniel Moody2021-04-132-4/+0
| |
* | [WIP] write a tool to generate build.ninja files from SConsMathew Robinson2021-04-132-0/+4
| |
* | removed old sconscript changesDaniel Moody2021-04-132-4/+0
| |
* | [WIP] write a tool to generate build.ninja files from SConsMathew Robinson2021-04-132-0/+4
|/
* address sider issueWilliam Deegan2021-04-121-1/+1
|
* better handle all/none and multiple options, expanded tests to cover suchWilliam Deegan2021-04-121-4/+29
|
* Address mwichmann's feedbackWilliam Deegan2021-04-101-4/+4
|
* address mwichmann's review commentWilliam Deegan2021-04-101-1/+1
|
* Add docs for --experimental switchWilliam Deegan2021-04-092-12/+41
|
* Dont call progress if the progress object is NullDaniel Moody2021-04-091-2/+3
|
* Fixed issue with multi-target nodes being passed to the progress object.Daniel Moody2021-04-091-1/+2
|
* Make target selection a subsection in manpage [skip travis] [skipMats Wichmann2021-03-301-37/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | appveyor] The selection of targets to build is important, and referred to often. Seems it would be helpful to have it as its own section, with an xml id tag so it can be referenced via link. To make that happen, it's moved to the end of introduction, otherwise have to also make subsections for other stuff that followed it, or it would look like those parts belonged to Target Selection. To make it easier to read the target selection section, id and link references are added to options, so the options described can be followed via a click. These are both introductory bits of work: nothing links to the new subsection yet, and only some of the references to command line options are linked to the new option anchors. A note added to -c and -n to further clarify only builder targets are affected, and to -n to clarify that the determination is necessarily imperfect. The --hash-chunksize option is documented now (by taking the text formerly in md5-chunksize and updating slightly), and the work related to the change to hash options is marked with a version-specific change notice (4.2). Edits are made to clarify the behavior of Default to address issue #2839, which is that any alias used should already be defined. Added to this PR because it gave the opportunity to add a reference to the newly-named section (not a hyperlink, since scons-function definitions also appear in the User Guide). Closes #2839. Signed-off-by: Mats Wichmann <mats@linux.com>
* Deprecate Python 3.5.Mats Wichmann2021-03-281-1/+1
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge branch 'master' into site-dirWilliam Deegan2021-03-251-4/+8
|\
| * Skip empty cmdline args as targetsMats Wichmann2021-03-251-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | Previously, quoted empty arguments like '', '""', "''" were added to targets, which had some side effects - a blank would eventually turn into a Node for the top directory, meaning Default calls were ignored since a target is specified and thus the whole tree will be built. Fixes #2986 Signed-off-by: Mats Wichmann <mats@linux.com>
* | Change site-dir arg handlingMats Wichmann2021-03-252-6/+8
|/ | | | | | | | | | | | | | | | chat discussion: this should work to not use a site_dir: $ export SCONSFLAGS=--site-dir=foo $ scons --no-site-dir Commit changes the two options to write to the same variable, so "last one on command line wins" works out. Added a test for this to test/site_scons/site-dir.py. Manpage updated to clarify the order of considering SCONSFLAGS, since order does matter. Signed-off-by: Mats Wichmann <mats@linux.com>
* SConsOptions: don't modify original optionsMats Wichmann2021-03-111-1/+1
| | | | | | | Just to be safe, make a new list since we took a reference to the original. Signed-off-by: Mats Wichmann <mats@linux.com>
* Drop dictionary has_key references: Py2-ism.Mats Wichmann2021-03-111-1/+4
| | | | | | | | | | | | | | In some cases, added a __contains__ method instead, not because it necessarily was needed, but for completeness. Also one completely unrelated change because it happened to be sitting modified in the tree when I committed modified files: be a little more cautious about building CHECK_METHODS in our subclassing of the optparse Option class... current cpython starts it at None, then fills it in, so it shouldn't be None when we subclass. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge branch 'master' into topic/grossag/newhashesWilliam Deegan2021-03-073-24/+35
|\
| * A few more tweaks to debug-timing codeMats Wichmann2021-02-111-19/+30
| | | | | | | | | | | | | | A big of reformatting; some options changed to explicitly use True / False (functionally no change from 0/1). Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PR #3884] fix some timinng errors from initial submitMats Wichmann2021-02-092-6/+6
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * Add timing of sconsign write if --debugMats Wichmann2021-02-083-9/+8
| | | | | | | | | | | | | | | | | | | | | | A line is now emitted showing sconsign sync time if --debug=time Some calls to time.time replaced with time.perf_counter, where the objective was to time sections of code (i.e. where there wasn't an actual need to get time-since-epoch) - Python recommends this as getting the best-available timer. Signed-off-by: Mats Wichmann <mats@linux.com>
| * cleanup whitespaceWilliam Deegan2021-01-221-0/+1
| |
* | More improvementsAdam Gross2020-12-151-1/+1
| | | | | | | | | | | | | | 1. Fix failure finding UserError. 2. Fix bad string formatting. 3. Add test case covering passing an invalid hash format. 4. Remove blake2b, as I haven't tested it. We can add it some day if people want it.
* | Address most review feedbackAdam Gross2020-12-141-8/+17
| | | | | | | | Only thing left is to pick a hash format based on the sconsign database name.
* | Merge branch 'master' into topic/grossag/newhashesWilliam Deegan2020-12-121-6/+2
|\ \ | |/
| * 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>
* | Merge branch 'master' into topic/grossag/newhashesAdam Gross2020-11-069-205/+189
|\ \ | |/
| * 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>