summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Defaults.py
Commit message (Collapse)AuthorAgeFilesLines
* Reorganize the repo. Moved src/engine/SCons to ./SCons to be more in line ↵William Deegan2020-05-061-594/+0
| | | | with current python packaging practices
* remove remaining from __future__ importsWilliam Deegan2020-02-171-2/+0
|
* Some more lint-derived cleanupsMats Wichmann2019-04-271-1/+1
| | | | | | | | | | | | Consistently use "not is" and "not in", many instances used the form "not x is y" instead, which pylint objected to. A couple of bare except clauses got a qualifier. Files otherwise touched had trailing whitespace cleaned up as well. These are all things that sider would complain about if a change happened nearby, so this is pre-emptive. Signed-off-by: Mats Wichmann <mats@linux.com>
* Updated mslink, mslib, msvc, platform docs, and added unit testWilliam Deegan2019-04-221-1/+1
|
* Issue #3350 - Add TEMPFILEARGJOINBYTE as a variable to be used to join each ↵William Deegan2019-04-201-0/+1
| | | | item placed into a TEMPFILE. Previously hardcoded as a bytearray space, now it is overridden by msvc and mslink tools
* Clean up some file opens, regex stringsMats Wichmann2019-03-071-2/+2
| | | | | | | | | | | | | | | | | | Most recent Python (3.8 alpha) spews warnings aplenty about two subjects: unclosed files and strings which look like they have embedded escapes that Python does not recognize. The latter are usually regexes, and it provides a reminder that regular expressions should normally be specified as raw strings, so Python does not attempt to interpret them. Irritating is that even docstrings are flagged, it's not obvious what the right answer is for a docstring which contains, say, a Windows-style path with backslashes. This converts a bunch of opens that are not closed into context manager usage and regex patterns into raw strings. This eliminate about 4000 warnings spewed by Py3.8 (9200 remain). Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix is/is not syntaxMats Wichmann2019-02-111-1/+1
| | | | | | | | In a few places, "is" and "is not" are used to compare with a string or integer literal. Python 3.8 flags these with a SyntaxWarning. Changed to == and != Signed-off-by: Mats Wichmann <mats@linux.com>
* remove commented out codeWilliam Deegan2018-12-061-1/+0
|
* fix test so it should run on any platformWilliam Deegan2018-09-241-0/+3
|
* Fix the Copy-Action test case for py2/3Gaurav Juvekar2017-04-081-1/+4
|
* pep8William Deegan2017-04-051-0/+3
|
* When iterating over dict.items(), we do not need a new list.Craig Rodrigues2017-03-121-1/+1
|
* Futurize stage 2 2to3 fixes only.William Blevins2016-09-201-1/+1
|
* merge python3 branch to defaultWilliam Deegan2016-05-231-3/+4
|\
| * Resolved conflicting merge.Russel Winder2016-03-011-3/+61
| |\
| * \ Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-241-4/+18
| |\ \
| * \ \ Merged default branch into python3-port to keep it up to date.Gary Oberbrunner2014-08-231-10/+31
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Hand-updated a few things to keep them python3-safe, and handled several merge conflicts.
| * | | | copy_func: return 0 instead of return shutil.*Stefan Zimmermann2013-12-271-3/+3
| | | | |
| * | | | Made former 2to3 changes Python 2.7 compatible (or removed unneeded changes).Stefan Zimmermann2014-03-311-4/+3
| | | | |
| * | | | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-221-5/+6
| | | | |
* | | | | fixed issue with _xxxxxxVERSIONFLAGSPawel Tomulik2016-05-111-2/+2
| |_|_|/ |/| | |
* | | | Changed as per reviewAdarsh Sanjeev2016-01-041-4/+12
| | | |
* | | | String support for Chmod addedAdarsh Sanjeev2016-01-031-3/+53
| |_|/ |/| |
* | | Merged in williamblevins/scons_20150323 (pull request #244)William Deegan2015-11-131-1/+1
|\ \ \
| * | | Issue 2264: Added cross-language scanner support.William Blevins2015-05-171-1/+1
| | | |
* | | | add SONAME support to D toolsPawel Tomulik2015-09-201-0/+1
| | | |
* | | | gdc: support soname in D versioned librariesPawel Tomulik2015-09-201-1/+0
| | | |
* | | | s/SHLINKSONAME/SHLIBSONAME/Pawel Tomulik2015-09-201-0/+1
| | | |
* | | | fix broken soname generatorPawel Tomulik2015-09-201-5/+12
| | | |
* | | | new versioned libraries - gnulink and cyglink for nowPawel Tomulik2015-09-021-0/+7
|/ / /
* | | Issue 2395: Symlink support hotfix.William Blevins2015-03-241-3/+2
| |/ |/| | | | | | | Symlink contents now copied correctly with relative path when ( cwd != symlink directory ).
* | Issue 2395: Added doc comment for symlink parameter usage.William Blevins2014-07-201-0/+7
| |
* | Issue 2395: Copy Symlink soft-copy enhancement.William Blevins2014-07-141-5/+15
| |
* | The changes to the D support evolved over the last many months packaged as a ↵Russel Winder2014-04-161-4/+7
|/ | | | single changeset.
* Fix #2708 by making Delete able to delete broken symlinks and dir symlinks.Gary Oberbrunner2011-02-181-5/+6
| | | | Thanks to David Garcia Garzon for the patch.
* Fix problem with re-raising old exception when CPPDEFINES contains a None or ↵Gary Oberbrunner2010-11-041-2/+4
| | | | invalid element
* Fix CPPDEFINES problems with dicts (both Append and MergeFlags). From ↵Gary Oberbrunner2010-08-151-2/+13
| | | | Jean-Baptiste Lab. Fixes issue #2671.
* Convert old-style classes in Defaults.py to new-style classes.Steven Knight2010-05-131-2/+2
|
* Convert to Python 3.x division rules.Greg Noel2010-04-241-3/+2
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-171-1/+2
| | | | | Fix the 'assignment to True or False' and the '__getitem__ not supported for exception classes' deprecation warnings.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-151-1/+1
| | | | | | Apply the first part of the 'raise' fixer (the three-argument cases are not converted and will need to wait until native support of with_traceback() is available).
* http://scons.tigris.org/issues/show_bug.cgi?id=2329Greg Noel2010-03-271-6/+2
| | | | | | | | | | | | | | | Applied a number of idiomatic changes. Uses of the 'sort()' method were converted into calls of 'sorted()' when possible and the sorted() expression was inserted into a subsequent statement whenever that made sense. The statement 'while 1:' was changed to 'while True:'. Names from the 'types' module (e.g., 'types.FooType') were converted to the equivalent build-in type (e.g., 'foo'). Comparisons between types were changed to use 'isinstance()'.
* Move 2.0 changes collected in branches/pending back to trunk for furtherGreg Noel2010-03-251-13/+12
| | | | | development. Note that this set of changes is NOT backward-compatible; the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
* Move the definition of env['LATEXSUFFIXES'] from Defaults.py to theRobert Managan2009-08-061-1/+1
| | | | | | | various *tex.py generate functions. This is to avoid adding LATEXSUFFIXES to the environment when the tools are not loaded.
* In addition to changed merged below, commented out for platform os2 use of ↵William Deegan2009-07-211-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | msvc, mslib, mslink as they cause test/import.py to fail. I don't have an OS2 system to resolve the issues on. Merged revisions 4065,4067-4068,4071-4072,4074,4076,4085,4111,4163,4222 via svnmerge from http://scons.tigris.org/svn/scons/branches/vs_revamp ................ r4065 | stevenknight | 2009-03-02 16:48:05 -0800 (Mon, 02 Mar 2009) | 42 lines Copy over changes by hand from branches/core (I was working in a directory pointing to the wrong branch): ........ r4059 | stevenknight | 2009-03-02 06:54:13 -0800 (Mon, 02 Mar 2009) | 14 lines Initial prototypes of modules for architecture support (MSCommon/arch.py) and Visual C/C++ configuration distinct from (and in preference to) the Visual Studio configuration, incorporating configuration info and ideas from Jason Kenny's latest parts/tools/MSCommon work. This has a lot of cut-and-paste right now and does NOT actually work. In particular, there are no changes to the rest of the infrastructure to actually call any of this new stuff. I'm checking these in so I can sync on other systems for continued development. The ultimate goal is for much of the current MSCommon/vs.py module's logic to migrate to MSCommon/vc.py, since that's what we're actually interested in configuring. ........ r4058 | stevenknight | 2009-03-02 06:49:35 -0800 (Mon, 02 Mar 2009) | 2 lines Fix doc string. ........ r4056 | stevenknight | 2009-03-01 06:10:31 -0800 (Sun, 01 Mar 2009) | 4 lines Change the sanity_check file for 6.1 per Jason's update. Add an optional version string argument to detect_sdk(). Import directly from common, not SCons.Tool.MSCommon.common. ........ r4055 | stevenknight | 2009-02-28 05:29:03 -0800 (Sat, 28 Feb 2009) | 5 lines Minor common.py enhancements: Refactor is_win64() to cache its return value so we don't have to hit registry every time we want to know if the OS is 64-bit. Accept SCONS_MSCOMMON_DEBUG=- to mean print debug messages to stdout. ........ ................ r4067 | stevenknight | 2009-03-06 04:59:21 -0800 (Fri, 06 Mar 2009) | 4 lines Fix entries in batch_file_map, after a double-check with the original code. Use a host_architecture of None in the map to indicate the "default" entry if there isn't a specific .bat file for our current architecture. ................ r4068 | stevenknight | 2009-03-06 05:15:39 -0800 (Fri, 06 Mar 2009) | 2 lines Add include_subdir and lib_subdir data to the SDK definitions. ................ r4071 | stevenknight | 2009-03-10 07:42:53 -0700 (Tue, 10 Mar 2009) | 4 lines Capture basically working snapshot. src/engine/SCons/Tool/msvsTests.py and test/IDL/midl.py still fail, and code needs clean up. ................ r4072 | stevenknight | 2009-03-11 06:38:37 -0700 (Wed, 11 Mar 2009) | 2 lines Fix path to Common7\Tools. Find vs*.bat files. ................ r4074 | stevenknight | 2009-03-13 17:11:55 -0700 (Fri, 13 Mar 2009) | 3 lines Import SCons.Tool.MSCommon.vc so it works regardless of other sys.path manipulation. ................ r4076 | stevenknight | 2009-03-19 08:08:48 -0700 (Thu, 19 Mar 2009) | 7 lines Refactor SDK support: * New mssdk_exists() and mssdk_setup_env() methods as the primary public entry points. * Call internal sdk.*() utility functions that just return information (like the SDK structure) not handle the actual setting. * Give the VisualStudio definitions explicit settings for the SDK version. ................ r4085 | bdbaddog | 2009-04-05 14:30:46 -0700 (Sun, 05 Apr 2009) | 3 lines Fix "can't find module vc" issue when building on windows. ................ r4111 | stevenknight | 2009-04-19 07:47:47 -0700 (Sun, 19 Apr 2009) | 2 lines Doc updates for how MSVS_VERSION is used. ................ r4163 | bdbaddog | 2009-04-29 17:32:43 -0700 (Wed, 29 Apr 2009) | 4 lines Fix for bug 2405 Also refactored some logic from Defaults._defines() into Defaults.processDefines() which is then used by msvs.py ................ r4222 | bdbaddog | 2009-05-31 17:01:22 -0700 (Sun, 31 May 2009) | 8 lines Added definition of HOST_OS|ARCH TARGET_OS|ARCH (For win32 only right now) Migrated some logic to determine arch from Tools/MSCommon -> Platform/Win32.py Fixed lots of minor issues with string values for directories, architectures, and registry keys Switch to find VS installs by registry (was using VC install location previously) Added but commented out that HOST_{OS|ARCH} and TARGET_{OS|ARCH} will become reserved var names in Environment() Need to resolve issues that SCons is issuing messages when SCons itself sets these variables. ................
* Fix bug #2298, make Move factory work across filesystems.Gary Oberbrunner2009-05-071-1/+1
|
* Issue 2401: Fix usage of comparison with None, patch from Jared GrubbGreg Noel2009-05-031-1/+1
|
* Add emacs and vim editing settings to the bottom of *.py files.Steven Knight2009-02-091-0/+6
|
* Additional fix for issue #1249 (Mkdir fails if dir exists) on Windows.Gary Oberbrunner2009-01-311-1/+2
|
* Added regression test for issue #1249Gary Oberbrunner2008-12-111-1/+1
|