summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FS.py
Commit message (Collapse)AuthorAgeFilesLines
* Resolve comments from @GaryO to clarify new code.William Deegan2018-11-121-2/+13
|
* Fix docstring on FileBuildInfo per comment from @dirkbaechleWilliam Deegan2018-11-121-3/+11
|
* switch from izip to zip. no izip in py3William Deegan2018-11-121-2/+2
|
* Revisit caching of filename -> csig map and invalidate when reasonableWilliam Deegan2018-11-121-37/+28
|
* Add docstringWilliam Deegan2018-11-121-0/+8
|
* Change logic to ensure we only build the dependency map once per target file.William Deegan2018-11-121-3/+14
|
* Moved logic to handle Timestamp-MD5 decider issues into File() node. One ↵William Deegan2018-11-121-2/+93
| | | | minor change in Node.Changed() it now has to handle the decider called indirectly throwing DeciderNeedsNode exception which has a property of decider it should call. Also had to update the explain logic to handle this exception.
* move comment to docstring for LinkFunc()William Deegan2018-11-121-5/+7
|
* clarify docstring on decider functionWilliam Deegan2018-11-121-2/+2
|
* Clear up some comments and convert comment to docstring where it makes senseWilliam Deegan2018-11-121-16/+24
|
* add method find_repo_file() which finds the file in it's known repositories. ↵William Deegan2018-11-121-3/+28
| | | | Minor reformat in rfile().
* Fix comment spellingWilliam Deegan2018-11-121-1/+1
|
* Added docstring to File.changed_timestamp_then_content()include a note and ↵William Deegan2018-11-121-3/+16
| | | | reference to issue #2980
* Fix some bad code formatting.William Deegan2018-11-121-8/+20
|
* Fix Bug #3212. Using CacheDir with Configure TryCompile with Python 3 was ↵William Deegan2018-10-101-0/+5
| | | | failing because it was yielding a mixture of bytes and strings when generating cachedir signature use to determine file and directory in cachedir to use
* A few syntax cleanupsMats Wichmann2018-10-031-5/+5
| | | | | | | | | | | | | | | | | | | | | Suggested by PyCharm. Includes three "real" changes: 1. src/engine/SCons/Node/__init__.py has a print statement in a function which references 'self', but there is no 'self' defined (it is not a method in a class). Guessing it should have been 'node'. 2. src/engine/SCons/Environment.py makes a call using 'kwbd' which is not defined, looks like a copy-paste error and should be 'bd'. 3. src/engine/SCons/Tool/JavaCommon.py splits 'file', which is not defined, was evidently supposed to be 'fn'. These should be double-checked. The rest are purely syntax: whitespace, dropping trailing semicolons, using "is" to test for None, simplifying comparisons, normalizing docstring commenting ("always triple double quotes"), unneeded backslashes. Signed-off-by: Mats Wichmann <mats@linux.com>
* Updated FS to handle removal of splitunc function from python 3.7Daniel Moody2018-08-101-1/+4
|
* Fix problem with Install and multiple dirs outside src tree.Gary Oberbrunner2018-01-051-1/+6
| | | | | | | | | | | | In some cases it's possible to get a case where the target path already does exist, but the dir node for it hasn't been updated yet. This fix prevents MkdirFunc from trying to create it when it already exists. Added a testcase which failed before the fix and works after it. Also fixes a problem running tests on Windows, using standard python 3 which is installed in "C:/Program Files/Python36". The python path name has to be escaped in that case. See runtest.py.
* Fix many epydoc warningsWilliam Deegan2017-09-011-18/+12
|
* Updates to get_text_content() logic and testsWilliam Deegan2017-08-241-3/+6
|
* Handle decode errors by backslashing character. Should only throw exception ↵William Deegan2017-08-231-2/+2
| | | | if content is not a byte type now
* Fix issue for PY3 where file content has not BOM and isn't ascii by ↵William Deegan2017-08-231-1/+1
| | | | decodeing to utf-8
* Added support for a PyPackageDir functiongrbd2017-08-031-0/+29
|
* PY2/3 For the time being disable using soft or hard links in duplicating ↵William Deegan2017-05-161-2/+7
| | | | files on win32. It's supported under PY3, but SCons will need more work to make sure it's used in a consistant way and if user permissions are needed if they user has them
* more removal of sccs and rcs builder logicWilliam Deegan2017-04-181-76/+2
|
* py2/3 Need to add __hash__ function to EntryProxy as with py3 __hash__ ↵William Deegan2017-04-061-0/+6
| | | | function is removed when a class provides __eq__
* py2/3 define __lt__ for nodes, so sort will work on py3William Deegan2017-04-031-0/+4
|
* py2/3 get_text_contents() may be working when contents is a string (Value ↵William Deegan2017-03-191-1/+1
| | | | node), in which case the final except should handle AttributeError as decode is not a method on strings in py3
* py2/3 switch from using starts with to a slice of the contents. With py3 ↵William Deegan2017-03-191-3/+3
| | | | contents is a byte array, not a string and so lacks the startswith method
* move comment for method to docstringWilliam Deegan2017-03-141-3/+5
|
* When iterating over dict.items(), we do not need a new list.Craig Rodrigues2017-03-121-2/+2
|
* PEP-8 fixesWilliam Deegan2017-02-261-0/+6
|
* Ensuring that FS.get_text_contents returns actual text.William Blevins2016-09-241-2/+6
|
* Futurize stage 2 2to3 fixes only.William Blevins2016-09-201-4/+4
|
* wrap several frequently-used open() calls in with statementsDaniel Holth2016-06-151-2/+2
|
* fix incorrectly updated print formattingWilliam Deegan2016-05-151-1/+1
|
* Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-241-330/+467
|\
| * removed several pre-2.7 methods and imports, including some basic refactoringsDirk Baechle2015-12-101-51/+2
| |
| * Corrected indentationFlorian Miedniak2015-09-231-2/+2
| |
| * Fixed #3011: Glob() called with exclude didn't work when called from a ↵Florian Miedniak2015-09-221-1/+6
| | | | | | | | SConscript that is executed with variant_dir set and duplicate=0
| * - added "suffix" attribute to backward compat layer (getattr) for Node.FS ↵Dirk Baechle2015-09-011-3/+4
| | | | | | | | entries
| * Merged in dirkbaechle/scons : switch of core classes to slots, memoizer ↵Dirk Baechle2015-08-061-217/+372
| |\ | | | | | | | | | subsystem now uses decorators
| | * - replaced wrong Node attribute with its new nameswitch_to_slotsDirk Baechle2015-03-281-1/+1
| | |
| | * - added backward compatibility layer for the Node attributes abspath, labspath,Dirk Baechle2015-03-281-53/+84
| | | | | | | | | | | | path, tpath and path_elements
| | * - switching Node class and NodeInfo/Binfo to using slotsDirk Baechle2015-02-261-194/+319
| | | | | | | | | | | | - memoizer subsystem now uses decorators instead of the metaclass approach
| * | Glob exclude parameter can now be a string or a list of stringsAlexandre Feblot2015-04-291-4/+5
| | |
| * | Add an exclude parameter to Glob(), to allow excluding some elements ↵Alexandre Feblot2015-04-251-16/+20
| |/ | | | | | | matching the main pattern
| * - a few simple refactorings and optimizationsDirk Baechle2015-02-041-11/+1
| |
| * - added new method rentry_exists_on_disk (check for physical files/dirs)Dirk Baechle2014-11-051-0/+33
| |
* | engine.SCons: More bytes/str fixes.Stefan Zimmermann2014-03-311-1/+1
| |