| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added docstrings on warning classes and module docstring.
* Move globals to top of file.
* Typing.
* Dropped DeprecatedSourceCodeWarning, last use was removed, with the
feature, for SCons 3.1.2.
* Dropped TaskmasterNeedsExecuteWarning, now enforced by Python via an
abstract base class (unused/unneeded since 4.0.0).
* Dropped DeprecatedMissingSConscriptWarning. This was a transitional
warning, no longer needed; can use MissingSConscriptWarning, which
also is no longer used but is left in in case it might be useful.
* Two in-use warnings added to manpage section on enabling warnings
(cache-cleanup-error, future-reserved-variable).
* Improve unittest a bit.
* Sphinx build set not to show inherited memerber for Warnings -
got ugly exception stuff otherwise.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
exception catch
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Most remaining http: references are either changed to https: or removed
or changed in case they were also stale links, and a replacement was
findable.
Does not affect schema and stylesheet references, which can remain http:
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
|
|
| |
Mention mutable objects - if an sconscript imports a previously exported
variable, it is the same object, so changes propagete. Some wording
tweaks in SConscript function.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |\ |
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Also dropped the word Fatal from the error, it's not consistent with
any other scons-generated exception.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This completes a change begun in 3.0.2, when the behavior changed
from "skip silently" to "skip but issue a warning"; that behavior
was marked deprecated in 3.1. Use must_exist=False to get the old
"skip silently" behavior.
Fixes #3958
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
$ pyupgrade --py36-plus $(<filelist)
Here's mostly what it's done:
- No more 'stringliteral'.encode('utf-8'): now b'stringliteral'
- No more unicode literals
- the default open mode is 'r', leaves out if default
- some f-string conversions (if shorter)
- catch OSError instead of subclasses
- no more mention of "object"
- generator expression instead of list comp. when safe
- a few tests had a shebang but actually began with blank line
- remove coding: utf-8 comment, per pep 3120 this is the default now
Manually - if a file in test/ was modified, then did the copyright
header conversion.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |/
|
|
|
|
|
|
|
|
|
|
|
| |
An additional keyword argument, "local_only", is now recorgnized
by Help(). If true, and "append" is True, then only project-defined
help messages are saved into the help text. That is, save help added
by calls to AddOption, but not SCons' own help, which is added
a different way.
Fixes #2356
Fixes #3686
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
As noted in issue #2356 (which this change does not complete/close),
the final line of help if the help message has been modified is
'Use scons -H for help about command-line options.'. This fails to
mention that -H prints only those options that are defined in SCons
itself, not options added via AddOption. Adjust the message to better
indicate this.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |
|
| |
|
|
| |
quiet some linting warnings where the use is intentional
|
| |
|
|
| |
logic which get's nodename to work on all platforms (was failing on windows)
|
| | |
|
| |
|
|
| |
containing directory, and issue UserError if the directory is not creatable..
|
| |
|
|
| |
test/option/debug-count.py, and used that in test/option/debug-json.py
|
| |\ |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Define the list of recognized names for sconscript files for pdb to handle
to the top, together with the existing list of names for SConstruct,
to make it harder to miss any changes that should kept in sync.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |
| |
| |
| |
| |
| |
| | |
Explanations of new "recognize sconscripts" behavior to debugger support
are tweaked a bit to hopefully be more clear.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Make it possible (once the project path has been added to sys.path)
to set/clear breakpoints using file paths that end in SConstruct and
SConscript - specializing pdb.Pdb to override the need for all paths
that are not absolute to end in .py.
Man: tried to address some surprise that pdb can't find the SConstruct
when you start up in debugger mode.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Use: https://github.com/JelleZijlstra/autotyping
to add "safe" return annotations.
Where a parameter has a default value that is an obvious scalar type
(bool, int, str, etc.) add those annotations as well.
Also fixed two small bugs that popped up when sanity-checking with
mypy. One in FortranCommon, where a return had been previously
annotated to be a tuple of Action, which should be ActionBase -
Action is the factory function, not the base class. The other was
a typo in the error raised in _add_cppdefines - the message was
formatted with the value of "define" which should have been "defines".
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Some nearby things in Main.py as well:
- docstrings polished a bit, minor linting
- move the list of predefined SConstruct file names into a constant
defined at the top of the file, so it's a little less hidden,
in the unlikely case of future changes.
Manpage text and example revised a bit.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | | |
|
| | | |
|
| |/
|
|
| |
scons_stats.json in invocation directory
|
| |
|
|
|
|
|
| |
The new ValidateOptions had a :versionadded: in the docstring,
but just noticed the actual manpage entry didn't have similar.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |
|
| |
|
|
| |
SetOption('diskcheck','none') has been working all along. Also refactored the DiskChecker class to have more meaningful properties and not shadow default python objects (list, dir)..
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Reworded the section on --experimental - separate when the two current
features were made available, and when --experimental itself was added.
* Reworded in GetOption
* Changed tags on a few options
* Use entity forms in more places (Python -> &Python;, SConscript ->
&SConscript; etc.)
* Make changed/added notifications more consistent with what Sphinx
produces for the API docs (:versionadded: and :versionchanged: markup)
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
| |
ParallelJob implementation. WHich should scale much better for highly parallel builds
|
| | |
|
| | |
|
| |
|
|
| |
Exit(), GetLaunchDir() and SConscriptChdir()
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The five functions EnsureSConsVersion, EnsurePythonVersion, Exit,
GetLaunchDir, SConscriptChdir were listed as both global and
environment functions, but they do nothing in the context of an
environment, so marked in the xml as "global". This only changes
the presentation in the manpage & userguide appendix, not the behavior.
Minor tweaks in the code around SConscriptChdir - actually use a
bool True/False instead of 0/1, and added a couple of type annotations.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| | |
|