| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| | |
Change warnings behavior of missing SConscript
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
The SetOption table in the docs is reformatted for easier editing.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
| |
| |
| | |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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>
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Just to be safe, make a new list since we took a
reference to the original.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Only thing left is to pick a hash format based on the sconsign database name.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
gettext is always present now, so extra steps not needed.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
should always return a positive integer. The fake threading module dummy_threading will always return -1
|
| |
| |
| |
| | |
SCons.Script.main
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |\ |
|
| | |
| | |
| | |
| | | |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |\
| | |
| | | |
Align SetOption doc with settable options list
|
| | |
| | |
| | |
| | | |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Mats Wichmann <mats@linux.com>
|