| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Since Python 2.2, the object returned by an os.stat() call presents
attributes matching the 10-tuple of stat values. Use these instead of
indexing into the tuple.
As usual for non-removed tests, minor tweaks made if needed -
copyright header and DefautlEnvironment() call for performance.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
| |
An earlier change extended SKIP_DOC as a CLI argument at the top
level to allow granularity - can specify pdf and/or api to skip those.
Skipping the pdf build didn't entirely work, as the build re-invokes
SCons which is then a fresh context. That information is now passed on
the command line to those two builds, and if invokved directly (as Debian
packaging does), SKIP_PDF=1 can be added on the command line.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The documentation build can now selectively disable doing the APIdocs
build (which is slow, and requires Sphinx and some extensions to be
installed); and skip building pdf versions of docs (which requires fop
or equivalent to be installed). Both can be disabled by using a csv:
scons doc SKIP_DOCS=pdf,api
TODO: pdf disabling is only partly working. It does not build the
pdf version of the api docs, but does build pdf manpages and user guide.
The latter are not "installed": there is no build/doc/PDF, but there
are pdfs in the build directory, build/doc/man and build/doc/user.
This is part two of the doc build change (begun in #4492)
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Removes the old bootstrap.py file. The still-used manifest parser
is moved inline into doc/SConscript
* Some reformatting and license text updates, as well as fstringinfying.
* Help text is modified, adding the recent zipapp option, and indent
changes let more stuff fit on the screen.
* Aliases added for most of the build targets listed in the help msg.
The ones now listed all work when given as cli targets, except the
the two full source balls:
scons: *** Do not know how to make File target `src-tar-gz' (/home/mats/github/scons/src-tar-gz). Stop.
scons: *** Do not know how to make File target `src-zip' (/home/mats/github/scons/src-zip). Stop.
Should these two be removed from the listing? I think we get the former
directly from github, and the latter hasn't been around for a while.
Fixes #4341
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
| |
Needed to pass a different source and also pass an entry point
to the zipapp.create_archive method.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To use, set do_zipapp to True in site_scons/scons_local_package.py
Will produce a build/dist/scons-local-${VERSION}.pyz which can
be directly executed - copy to a work dir, and run as
python scons-local-4.3.1.pyz
or even
./scons-local-4.3.1.pyz
Windows should have a file association for .pyz files, otherwise it
works there too by calling it as an argument of the interpreter.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
| |
distutils is deprecated, is now giving warnings, and will be removed
in Python 3.12. SCons code no longer uses it, but there was one
reference in SCons' own site_scons (used when packaging).
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
| |
set. Fix version tests to work with updated scons --version output. (Date format changed)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Unfortunately, this made for more reformatting - sider complains
in some of these about indent not being a multiple of four because
one line of a block was touched, to eliminate had to reindent the whole
block, including all the lines not touched by the original commit.
Used a tool...
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>
|
| |
|
|
|
|
| |
broken state
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
using it
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
In Python3 this is the default.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|
|
|
| |
site_scons/BuildCommandLine.py. Sorted out all changes caused by that.
|
|
|
|
| |
setup into site_scons/epydoc.py
|
|
|
|
| |
open, which was throwing warnings when run with newer pythons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Drop unneeded parens.
Drop trailing semicolons.
Triple double-quote docstrings.
Regexes drop unneeded escapes.
Spaces around parens, braces: remove/add.
Some one-tuples get their missing closing comma.
A couple of sets use set init syntax {foo} instead of set([iter]) now.
And a fiddle in Node to reduce lookup time on md5 signature functions
(came about because of a line-too-long issue, initially)
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
| |
On a linux host (missing some things that may be on the Travis CI
setup), Py3.8a3 now shows 19 fails, 1048 pass, with 84 Warning: messages.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
| |
creation as we're moving to pip install being the main install path.
|
|
SConstruct
|