| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Passing a module which the active Python (system or virtualenv)
cannot locate through the import machinery would cause SCons to fail
with an AttributError, because the result of the initial lookup was
used without checking for success. Now returns None for not found.
Manpage entry and docstring also updated.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |\ \ \ \
| | | |/ / /
| | |/| | | |
NewParallel only adds worker threads as executable tasks are discovered
|
| | | | | | |
|
| | | | | | |
|
| | |/ / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The Pseudo manpage entry is updated to be more descriptive.
Since they were near neighbors in Environment.py, it and the three
functions Precious, Repository and Requires received minor
docstring changes there; Precious and Requires also got a minor
tweak to the manpage entry (mainly to clarify allowable argument types
and list return value).
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If SCons reads a file to interpret the contents, codecs are a concern.
The File node class has a get_text_contents() method which makes a best
effort at decoding bytes data, but there are other places that don't get
their file contents via that method, and so should do their own careful
decoding - but don't, they just read as text and hope it's okay.
Move the decode-bytes portion out of File.get_text_contents() to
SCons.Util.to_Text() so that everyone that needs this can call it.
Add a couple of additional known BOM codes (after consulting Python's
codecs module).
Note that while get_text_contents acts on nodes, the new (moved) routine
to_Text acts on passed bytes, so it can be used in a non-Node context
as well - for example the Java tool initializer reads a file and tries
to decode it, and can get it wrong (see #3569), this change provides it
some help.
Fixes #3569
FIxes #4462
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |\ \ \ |
|
| | |\ \ \ |
|
| | | |\ \ \
| | | | | | |
| | | | | | | |
Add Pseudo() to global functions, had been omitted.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
When Pseudo was added in SCons 2.3.1, it was not added to the
GlobalDefaultEnvironmentFunctions table which makes environment methods
available in the default environment.
Reworked the test so it does not rewrite the test SConstruct,
and added steps to test the global function version as well.
Fixes #4474.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This partially reverts commit 8a6b5e4b12254afbba8cf4aadb78300a92a42de7
to restore `Node.cached` field.
|
| | | |/ / / |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The Utilities/sconsign.py code used to do its own importing of the
suitable module to read the sconsign file; for a while now it leaves that
to the sconsign module, but some remnants of the old code were still
present, which caused checkers and IDEs to grumble about usage of the
"imp" module, which is removed from Python as of 3.12. Dropping this
(uncalled) code and associated comments quiets the grumbles.
Also tweaked manpage just a bit.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Two methods had added type hints for the new override parameter,
but not got them right: it's a dict if defined, else None.
Corrected this and made a few other minor tweaks.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | | | |
| | | | |
| | | | | |
The stderr block was copied from the stdout block during initia edits, but only one instance of "stdout" was changed to "stderr".
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
On win32, rather than reading the temporary file used for external
command output as text, read it as bytes and convert to the codec of
the stream it will be written to, with suitable error fallback defined
so it doesn't fail. Affects Configure usags. Fixes #3529.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
This reverts commit d932ba3700305f82ffafba6137da99b3145b82d2.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |/ / / |
|
|/ / /
| | |
| | |
| | | |
• Showcase potential with `ExecutorType`
|
| | |
| | |
| | |
| | |
| | | |
No changes needed so far, except expected bytecode patterns in
ActionTests.
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Changes:
* add additional CheckFunc test cases to SCons/SConfTests.py
* add paragraph tags around change notice for CheckFunc funcargs argument in doc/man/scons.xml
|
| |\ \ \
| | | | |
| | | | |
| | | | | |
jbrill-gh4320-fix
|
| | |\ \ \ |
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
obsolete note about function prototype
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
method.
Add an optional argument list string so the generated function argument list matches the function's prototype when including a header file.
|
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Updates:
* Fix issue #2755: the msvs tool no longer writes the OS environment SCONS_HOME value into the SCons environment when the SCONS_HOME variable already exists in the SCons environment.
* Update the windows registry keys for detection of Visual Studio 2015 Express ('14.0Exp'): the VS2015 registry key ('WDExpress') appears to be different than the registry key ('VCExpress') for earlier Visual Studio express versions.
* Fix the vs-6.0-exec.py test script: the msvs generated project is 'foo.dsp' and the command-line invocation of the Visual Studio development environment program was attempting to build 'test.dsp'.
* Update the msvs project generation test scripts: the msvs project execution tests could produce a "false positive" test result when the test executable is correctly built via the SConstruct env.Program() call and the command-line invocation of the Visual Studio development environment program fails.
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: fazledyn-or <ataf@openrefactory.com>
|
| | | | |
|
|/ / /
| | |
| | |
| | | |
exception catch
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
scheduler in next major release
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Notes added on inclusion of PCH source file and object file.
Note that PCH is not just MSVC-only, but also C++-only.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|\ \ \
| | | |
| | | | |
Add LIBLITERALPREFIX to support gcc -l:filename
|
| | | | |
|