summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Action.py
Commit message (Collapse)AuthorAgeFilesLines
* PY2/3 Fix more function signiture logic. Previously was dropping first ↵William Deegan2017-08-011-7/+6
| | | | co_consts under the mistaken belief that first item was always docstring. Shortcut logic for NoneType and strings.
* PY2/3 Add property values for object/instance signatureWilliam Deegan2017-07-311-4/+4
|
* PY2/3 Fix action object content signiture to be stable. Note need expected ↵William Deegan2017-07-311-7/+60
| | | | value for each change in python bytecode. Currently that means one for each: py2.7, py3.5, py3.6
* PEP8William Deegan2017-05-301-1/+1
|
* PEP8 changesWilliam Deegan2017-05-261-7/+7
|
* When iterating over dict.items(), we do not need a new list.Craig Rodrigues2017-03-121-2/+2
|
* Replace list(filter()) with list comprehension.Craig Rodrigues2017-03-111-1/+1
|
* fix for py2/3 compatWilliam Deegan2017-02-261-1/+1
|
* fix signature calc issues for functions actionsWilliam Deegan2017-02-261-21/+24
|
* PY3 porting work. Also moved comments for methods into docstringsWilliam Deegan2017-02-201-55/+113
|
* Added some details comments to _function_contents() which is used to ↵William Deegan2016-12-231-24/+5
| | | | | | generate action signatures. Remove remove_set_lineno_codes(), it's been non-function due to SET_LINENO being gone since python 2.3.
* Added some details comments to _function_contents() which is used to ↵William Deegan2016-12-231-3/+4
| | | | generate action signatures.
* Added some details comments to _function_contents() which is used to ↵William Deegan2016-12-221-6/+15
| | | | generate action signatures.
* Added some details comments to _code_contents() which is used to generate ↵William Deegan2016-12-221-14/+38
| | | | action signatures.
* fixes get function/object signatures working on python 3 (and 2.7)William Deegan2016-12-211-13/+23
|
* Futurize stage 2 2to3 fixes only.William Blevins2016-09-201-3/+3
|
* fixes for print()'s for win32William Deegan2016-05-131-2/+2
|
* Run futurize --stage1.Russel Winder2016-01-011-2/+1
|
* Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-241-31/+20
|\
| * removed several pre-2.7 methods and imports, including some basic refactoringsDirk Baechle2015-12-101-11/+2
| |
| * - switching Node class and NodeInfo/Binfo to using slotsDirk Baechle2015-02-261-1/+1
| | | | | | | | - memoizer subsystem now uses decorators instead of the metaclass approach
| * - a few simple refactorings and optimizationsDirk Baechle2015-02-041-18/+16
| |
* | Merged default branch into python3-port to keep it up to date.Gary Oberbrunner2014-08-231-1/+2
|\ \ | |/ | | | | | | Hand-updated a few things to keep them python3-safe, and handled several merge conflicts.
| * - allow varlist to be specified as list of strings, fixes issue #2754Dirk Baechle2014-05-201-1/+1
| |
| * The _r in AIX xlc_r means reentrant, not relocatable.Michael Haubenwallner2014-05-151-0/+1
| | | | | | | | | | | | | | | | | | It does not make any sense to use 'xlc' for CC and 'xlc_r' for SHCC, as the '_r' does stand for 'reentrant' rather than 'relocatable' or similar. Avoid 'egrep' to parse the lslpp output, it's easy enough within python. Needs output streams of _subproc.dummyPopen to be iterable.
* | engine.SCons: More bytes/str fixes.Stefan Zimmermann2014-03-311-1/+1
| |
* | Merged with [default]Stefan Zimmermann2014-03-311-1/+1
|\ \ | |/
| * Fixed "communicate()" interface in Action._subproc()ptomulik2014-03-131-1/+1
| |
* | Merged with [default]Stefan Zimmermann2014-03-311-6/+8
|\ \ | |/
| * Merged in dirkbaechle/scons (pull request #92)William Deegan2013-10-281-5/+6
| |\ | | | | | | | | | Fix: now counting instances only when requested via --debug=count (#2922)
| | * - now counting instances only when requested via --debug=countDirk Baechle2013-10-251-5/+6
| | |
| * | Correctly fix bug #2903, failure to rebuild when linker options change.Gary Oberbrunner2013-10-271-1/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The failure to rebuild when linker options change was introduced in abded0675444, "Add library version support to Shared Lib builder", between 2.2.0 and 2.3.0. Turning ShlinkAction into a FunctionAction instead of a CommandAction made it stop depending on $SHLINKCOM. Normally, a CommandAction calls get_presig (Action.py:815) which removes $( ... $) and uses the rest of that string (recursively fully substituted) as the contents to hash. FunctionActions only look at the body of the function, so that removed the dependency on $SHLINKCOM altogether. Adding it back in the varlist does this (Action.py:443): for v in vl: result.append(env.subst('${'+v+'}')) so it deep-substitutes the whole thing, including all the $( ... $) parts. (All varlist vars do this, not just in FunctionActions.) What we really want is to depend on the value of env['SHLINKCOM'] in the way CommandActions do, i.e. without the $( ... $) parts, definitely not the fully substituted version of it. I'm pretty sure the ignored $(...$) parts should not ever be included in the signature, so this change updates the varlist handling code to work the way CommandActions always have. This change also renames the test files to use the correct bug number and updates the test.
* | More __cmp__ to __eq__ (and __lt__). Resolved some UnboundLocalErrors after ↵Stefan Zimmermann2014-03-311-2/+2
| | | | | | | | except.
* | Made former 2to3 changes Python 2.7 compatible (or removed unneeded changes).Stefan Zimmermann2014-03-311-10/+9
| |
* | minor cleanupndbecker22013-09-091-6/+1
| | | | | | | | (transplanted from 4feb1b15eb7a0c76cb020e09817c509a782d45b7)
* | 2 minor issuesndbecker22013-09-091-1/+1
| | | | | | | | (transplanted from 6711a6b819f61764bb82c0f32a251b91ec66a0b2)
* | Manual python3 post-2to3 fixes from Neal BeckerGary Oberbrunner2013-09-221-13/+19
| |
* | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-221-23/+24
|/
* Fix incorrect UserError usageRichard Quirk2011-12-241-1/+1
| | | | | SCons.Errors.UserError has not been imported, so prior to this patch the code would have caused a NameError.
* Fix #2685, UnicodeDecodeError with Copy and non-ASCII filenames.Gary Oberbrunner2011-03-111-2/+12
|
* Make Action+None and None+Action work as expected (silently ignore the None ↵Gary Oberbrunner2011-02-271-2/+8
| | | | arg).
* Initial Migration of MSVC logic from 1.3 branch.William Deegan2010-06-031-2/+2
|
* Convert the old-style classes in Action.py to new-style classes.Steven Knight2010-05-131-6/+6
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-241-10/+0
| | | | | | | Comb out all code that supported earlier versions of Python. Most such code is in snippets of only a few lines and can be identified by having a Python version string in it. Such snippets add up; this combing pass probably got rid of over 500 lines of code.
* http://scons.tigris.org/issues/show_bug.cgi?id=2317Greg Noel2010-04-231-1/+1
| | | | | | Apply the refactorings from the 'dict' fixer, less occurrences that were manually audited to be safe. Also pick up changes in bin/sfsum, a Python file that was not being scanned before.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-151-3/+3
| | | | | | 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).
* Issue 2331: For forward compatibility, use "import pickle" and haveSteven Knight2010-04-091-3/+6
| | | | the SCons.compat layer import cPickle as pickle when it's available.
* Issue 2332: Convert from using StringIO.StringIO class to using theSteven Knight2010-04-071-2/+2
| | | | | forward-compatible io.StringIO class, with the addition of an "io" compatibility module for Python versions before 2.6.
* http://scons.tigris.org/issues/show_bug.cgi?id=2329Greg Noel2010-03-271-1/+1
| | | | | | | | | | | | | | | 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-53/+45
| | | | | 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.