summaryrefslogtreecommitdiffstats
path: root/site_scons
Commit message (Collapse)AuthorAgeFilesLines
* Modernize stat usageMats Wichmann2024-12-151-1/+1
| | | | | | | | | | | 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>
* Extend pdf-skipping to man and user builds.Mats Wichmann2024-04-021-0/+1
| | | | | | | | | | | 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>
* Give more control to docs build [skip appveyor]Mats Wichmann2024-03-171-1/+3
| | | | | | | | | | | | | | | | | | 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>
* "Modernize" to Python 3.6 via toolMats Wichmann2023-08-042-3/+3
| | | | | | | | | | | | | | | | | | | | | $ 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>
* Cleanup the SCons build a bitMats Wichmann2023-07-199-156/+177
| | | | | | | | | | | | | | | | | | | | | | * 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>
* Get the zipapp support working correctly [ci skip]Mats Wichmann2023-01-032-18/+25
| | | | | | | 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>
* Fix sider complaintMats Wichmann2023-01-031-5/+1
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Experimental: build a scons-local zipapp [skip appveyor]Mats Wichmann2023-01-032-85/+153
| | | | | | | | | | | | | | | | | | 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>
* Remove last reference to distutilsMats Wichmann2022-05-101-2/+2
| | | | | | | | 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>
* Fix reproducible builds. Restore logic respecting SOURCE_DATE_EPOCH when ↵William Deegan2021-08-021-1/+1
| | | | set. Fix version tests to work with updated scons --version output. (Date format changed)
* fix doc release date to be the same as the format in CHANGES.txt,etcWilliam Deegan2021-07-181-1/+14
|
* Fix several sider complaintsMats Wichmann2021-05-051-2/+2
| | | | | | | | | | 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>
* Fix some imports and other checker warningsMats Wichmann2021-05-051-3/+3
| | | | | | | | | | | | | * 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>
* scons.1 sconsign.1 scons-time.1 now make it into zip, tgz sdist and wheelWilliam Deegan2020-10-091-1/+9
|
* mark SCons/__init__.py as NoClean() so scons -c doesn't leave the tree in a ↵William Deegan2020-10-091-0/+1
| | | | broken state
* Fix version info in scons-local package scriptsWilliam Deegan2020-07-061-1/+3
|
* clean up sider/flake8 warningsWilliam Deegan2020-06-302-1/+2
|
* have scripts use central SCons.__init__.py's __version__,etcWilliam Deegan2020-06-301-8/+6
|
* All working except automatic build of wheel and sdist packageWilliam Deegan2020-06-301-4/+9
|
* API doc builds working now. Generating SCons/__versioninfo.py but not yet ↵William Deegan2020-06-302-0/+14
| | | | using it
* cleanupWilliam Deegan2020-06-291-4/+3
|
* a little clean upWilliam Deegan2020-06-231-3/+2
|
* Add scons-local-${VERSION}.tar.gzWilliam Deegan2020-06-231-7/+13
|
* updates. build/dist/scons-local-${VERSION}.zip is now producedWilliam Deegan2020-06-233-5/+41
|
* add copyright noticeWilliam Deegan2020-06-171-0/+61
|
* classes no longer explicitly inherit from objectMats Wichmann2020-05-241-1/+1
| | | | | | In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
* Address github review notes and sider issuesWilliam Deegan2020-04-113-5/+10
|
* First pass of refactor. Moved command line argument processing into ↵William Deegan2020-04-093-3/+155
| | | | site_scons/BuildCommandLine.py. Sorted out all changes caused by that.
* add SKIP_DOC= variable to enable disabling buildign documents. Moved epydoc ↵William Deegan2020-04-092-1/+102
| | | | setup into site_scons/epydoc.py
* [ci skip] Fix SConsRevision.py to properly use with open as f instead of ↵William Deegan2020-02-051-3/+5
| | | | open, which was throwing warnings when run with newer pythons
* syntax fixups suggested by PyCharmMats Wichmann2019-12-232-2/+2
| | | | | | | | | | | | | | 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>
* [PY 3.8] test fixes for file closings, rawstringsMats Wichmann2019-04-251-10/+8
| | | | | | | 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>
* Simplify main SConstruct. Remove deb and rpm and win executable package ↵William Deegan2017-10-044-1/+137
| | | | creation as we're moving to pip install being the main install path.
* Migrate some logic from SConstruct into site_scons to simplify top level ↵William Deegan2017-10-032-0/+41
SConstruct