| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Changes:
* Detect solution file names and nodes in projects argument list. Behavior based on the auto_filter_projects value. By default, raise an exception.
* Update TestSConsMSVS and multiple project auto_build_solution tests.
* Update documentation, CHANGES.txt, and RELEASE.txt.
|
|\ \ \
| | |/
| |/|
| | | |
Manually resolve conflicts: CHANGES.txt and RELEASE.txt
|
| |/
| |
| |
| |
| |
| |
| | |
This adds a regular expression to check for beamer theme files for LaTeX
that may be part of the user's build tree. Similar to package files
found via `\usepackage`, this will not report a missing file because the
user may just be relying on the system version.
|
|/ |
|
|\
| |
| | |
Resolve 4605: enhance SCONS_MSCOMMON_DEBUG handling of invalid input
|
| | |
|
|/
|
|
|
|
|
| |
Fix reported problem of missing header (no declaration for exit()).
Clean up to current styles.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|\
| |
| | |
Fix short-option processing
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Override the _process_short_opts method from optparse so it behaves
better. This fix is lifted directly from #3799, leaving an additional
part to apply later.
Fixes #3798
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |/
|/|
| |
| |
| |
| | |
On Darwin, Nix may invoke SCons in a sandbox which lacks access to
/etc/paths.d. Handle PermissionError while iterating through
/etc/paths.d to support sandboxed environments such as Nix.
|
|\ \ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Reword/clarify the section on `AllowSubstExceptions` and the sidebar
on Python dictionaries. Add an additonal piece to `env.Replace`.
Also, some entity replacements, and more explicit `id` tags added to
`section` elements.
One unittest change to make sure passing a dict to `env.Replace` works.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
Minor wording cleanup, formatting for examples, etc. in the gettext-family
(inc. msginit, msgformat, msgmerge) and the pdf and dvips builders.
No code changes, no test changes.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
| |
| |
| |
| |
| |
| | |
SCons will now automatically find clang (clang++) on Linux
and Windows, in each case looked for just after gcc (g++).
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|/
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|\ |
|
| |\ |
|
| | |\ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously, deleting from an OverrideEnvironment removed not just the
override item but also the same item in the subject (base) environment.
This prevents supplying the value from the subject, as that would be
contrary to the expectation after "I deleted this variable". However,
this lets the override modify its subject, a form of leakage we don't
want. Now a deleted item has its key recorded to prevent refilling
later. Direct assignment will still set the item back in the override.
rpm packaging tool: call Override factory method rather than directly
instantiating OverrideEnvironment ("best practices")
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
tempfiles are now cleaned up via registering a cleanups with atexit(),
instead of trying to squeeze removing the file into the command line.
On Windows that caused the file to get deleted too early (did not work
well with interactive mode), and on Linux it didn't remove the file
at all.
The Platform test expected to be able to read the tempfilename as
the last argument of the "command", but this is no longer provided
as the "rm filename" is no longer added, so now it has to chop off
the prefix from the command-file argument to get the filename.
Unrelatedly, two syntax warnings that turn up in the test output where
some TeX syntax was listed in a docstring in a test are fixed by making
that a raw string - got tired of seeing these.
Fixes #4595
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The optparse add_option method supports an additional calling style
that is not directly described in SCons docs, but is included
by reference ("see the optparse documentation for details"):
it takes a single arg consisting of a premade option object.
Because the optparse code detects that case based on seeing zero
kwargs, and we always add at least one (default=) that would fail
for AddOption. Fix for consistency, but don't advertise it further:
not addewd to manpage synoposis/description.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
In all doc versions until 4.8.0, PackageVariable had wording like:
"The option will support the values yes, true, on, enable or search,
in which case the specified default will be used", but the code didn't
actually do that, it just returned True. With this change it now returns
the default value, with a slight tweak - if the default is one of the
spelled out enabling strigs, it returns the boolean True instead.
The indication that the default is produced if a truthy string is given
is restored to the manpage (it was never dropped from the User Guide).
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
| |
|
|\
| |
| | |
[Platform win32] Fix crash when pipe encoding is set to None
|
| |
| |
| |
| | |
Updated CHANGES/RELEASE
|
| | |
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix ListVariable handling of a quoted variable value containing spaces.
As a side effect of splitting the former monolithic converter/validator
for ListVariable into separate callbacks, it became possible for
subst to be called twice. The ListVariable converter produces an
instance of a _ListVariable container, and running subst on that
result ends up losing information, so avoid doing so.
While developing a test for this, it turned out the test framework
also didn't handle a quoted argument containing a space, so that
a test case passing arguments to scons via "run(arguments='...')"
could end up with scons seeing a different (broken) command line
than scons invoked with the same arguments typing to a shell prompt.
A regex is now used to more accurately split the "arguments" parameter,
and a unit test was added to the framework tests to validate.
The framework fix had a side effect - it was possible that when run
as part of the test suite, the Variables package could receive a value
still wrapped in quotes, leading to string mismatches ('"with space"'
is not equal to 'with space'), so ListVariable now strips wrapping
quote marks.
Also during testing it turned out that the earlier fix for #4241,
allowing a Variable to declare the value should not be subst'd,
introduced problems for two types which assumed they would always
be passed a string. With subst=False, they could be passed a default
value that had been specified as a bool. Fixed to not fail on that.
Fixes #4585
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|/
|
|
|
|
|
|
|
|
|
|
| |
AppendUnique and PrependUnique, when called with delete_existing true, had
a small logic flaw: it might remove an existing value if the value to be
added is a scalar (string, most likely) and there was a substring match.
The code needs to do an equality test, not a membership test.
Unit tests updated and got some reformatting, plus dropped a duplicate
definition of reserved_variables.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
| |
This (unadvertised) import turns out to have real-world usage,
and there's no real reason to prohibit it, although we do suggest
using `from SCons.Script import *` as a more complete version.
SCons 4.8.0 introduced an `__all__` in the variables module;
add the five variables types to this so the listed import will
work as expected.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
env.Dump previously either printed the whole dict of construction
variables (with no args), or a single value (with one variable name
argument). Now it takes a varargs specifier so you can give any number
of consvar names. All returned strings are now in dict form, including
the single-arg case which previously just returned the value matching
the key, not a dict with a key:value pair. This is a slight ABI change,
but should not affect any actual scripts since the output is intended
for human consumption, not for programmatic use - env.Dictionary()
can be used to fetch construction vars for programmatic use (in fact,
Dump is a consumer of Dictionary's output).
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
| |
|
| |
|
|\
| |
| | |
Add `SCsub` to known SConscript names
|
| | |
|
|/
|
|
|
|
| |
Just assorted wording tweaks, only to DESCRIPTION section.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|\
| |
| |
| |
| | |
# Manually resolved conflicts:
# RELEASE.txt
|
| |\
| | |
| | | |
Update to current fastest env setitem
|
| | |\ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Updated and re-ran benchmark tests for SubstitutionEnvironment.__setitem__.
Added test for new (Python 3.0) string.isidentifier() method.
That's actually exactly what we want, and it times out as the fastest
method when combined with a membership test if the variable is
already defined.
Tweaked some comments about this performance consideration,
and did other updates in bench/.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |\ \ \ |
|
| | | |/
| | |/|
| | | |
| | | |
| | | |
| | | | |
There are no code changes.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | | | |
|
| | |\ \ |
|