Commit Graph

57 Commits

Author SHA1 Message Date
Thomas Nagy 5a3a89b4de Stop adding incompatible task data into the same dict objects 2015-12-24 18:36:48 +01:00
Thomas Nagy 06c7c09681 Provide node.exists() to increase filesystem abstraction 2015-12-24 18:36:42 +01:00
Thomas Nagy 72fda8ae36 Reduce the size of the build pickle file 2015-12-24 18:36:38 +01:00
Thomas Nagy 281148b8eb Removed the old __eq__ and __hash__ which are not useful anymore in recent interpreters 2015-12-23 19:16:31 +01:00
Thomas Nagy e365a30215 Cache file hashes for performance reasons 2015-12-23 18:23:14 +01:00
Thomas Nagy 7681bddfb7 Remove Node.sig and Node.cache_sig 2015-12-23 17:55:44 +01:00
Thomas Nagy 2ab00f7f49 Removed Node.cache_sig 2015-12-23 17:55:44 +01:00
Thomas Nagy 8b74beb233 Removed the split functions from Node.py 2015-12-23 17:54:41 +01:00
Thomas Nagy 8113778aab
Undefined name 'unicode' in the new json methods 2015-11-21 17:17:16 +01:00
Thomas Nagy eb5aeb8715
The json module is available only in Python 2.6, so the import cannot be on the top-level 2015-11-20 18:06:36 +01:00
Matt Clarkson 8b71e16989 Add Node.write_json()
Allows for a python object to be serialized to disk as JSON easily. By
default the function pretty prints the JSON which makes the file easily
human readable. A compact representation of the JSON can be done with
'pretty = False'
2015-11-20 13:52:26 +00:00
Matt Clarkson 2c617a42f8 Add a Node.read_json() function
This allows an easy way to read a JSON file into a python object. It, by
default, on Python2 converts all strings to normal strings. This is the
common use case for simple JSON files. Files that have UTF8 codepoints
over the normal ASCII range can use the 'convert = False' argument.
2015-11-20 13:51:11 +00:00
Thomas Nagy 971b2d32b7
More Msys2 fun! 2015-10-16 22:45:27 +02:00
Thomas Nagy f28426594e
Cleanup: removed most unused variables and imports 2015-10-11 11:32:27 +02:00
Thomas Nagy 7f05ab7290
Optimizations 2015-03-08 18:30:57 +01:00
Thomas Nagy cca30e91f4
Re-use the functions defined in waflib/Utils.py 2015-03-07 02:29:42 +01:00
Thomas Nagy 20a1ed6146
Advanced example of library propagation in distnet 2014-11-22 11:53:13 +01:00
Thomas Nagy 803bbe6674
Issue 1504 - Use absolute paths if relative path requires drive letters 2014-10-28 20:59:36 +01:00
Thomas Nagy 620dea5fb7
Issue 1487 - there can be race conditions or other kinds of errors to ignore 2014-09-22 19:31:01 +02:00
Thomas Nagy cb030505af
Issue 1487 - delete files or folders only if they exist on the filesystem 2014-09-21 10:10:55 +02:00
Thomas Nagy 954056a782
Issue 1480 - force Node.children to the desired type 2014-09-20 14:29:16 +02:00
Thomas Nagy 2b5377cd87
Better support for UNC paths in external tools 2014-08-04 19:52:58 +02:00
Thomas Nagy 6bd7beb194
Enable case-insensitive Node lookup 2014-07-05 23:02:38 +02:00
Thomas Nagy c21317c727
Issue 1453 2014-05-19 21:32:24 +02:00
Thomas Nagy 65d25a9a69
Unmask as many exceptions as possible 2014-04-20 02:29:27 +02:00
Thomas Nagy e87782e58b removed Node.bld_base, used only once 2013-09-01 21:46:43 +02:00
Thomas Nagy 3f78d2223a Issue 1328 forgot to use the maxdepth argument in ant_glob() 2013-06-21 18:16:37 +02:00
Thomas Nagy e8eafe4b9b removed Node.search (use Node.search_node) and an old compiler_cc references 2013-05-26 21:43:27 +02:00
Thomas Nagy 6d570f08bd use os.remove instead of os.unlink for consistency 2013-05-18 19:51:45 +02:00
Thomas Nagy 345f6bc99f Issue 1278 2013-04-16 17:19:30 +02:00
Oliver Sauder 813a1aff14 Exclude auto-generated .intlcache
Signed-off-by: Thomas Nagy <tnagy1024@gmail.com>
2013-03-13 11:52:08 +01:00
Thomas Nagy 79e2901e4e typo in the API documentation 2012-12-01 17:36:53 +01:00
Thomas Nagy c14f00f4c1 Code mistakenly removed from the core classes 2012-09-26 18:41:58 +02:00
Thomas Nagy 5bc516a08d Dead code: __hash__ does return the id of the current object by default 2012-09-11 00:03:54 +02:00
Thomas Nagy b5c043ef49 optimization 2012-09-02 19:55:54 +02:00
Thomas Nagy 1d0f1c9b21 Python 3 makes the 'encoding' parameter mandatory on all I/O operations 2012-06-05 04:31:31 +02:00
Thomas Nagy df865701e2 Remove some redundant code from Node.py 2012-05-17 19:54:36 +02:00
Thomas Nagy 5d6c12be1f cleanup on the write functions 2012-05-17 13:49:09 +02:00
Thomas Nagy d931b656f8 let Node.delete evict the node in question 2012-05-06 10:43:56 +02:00
Thomas Nagy 264b0ab5f5 for consistency, make ant_glob case sensitive everywhere by default 2012-04-16 20:20:49 +02:00
andreww 0328aa6847 Make ant_glob case insensitive on Windows
ant_glob now takes an optional keyword argument, ignorecase. It
defaults to True on Windows and False elsewhere.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-04-16 20:18:22 +02:00
Thomas Nagy 898872699d removed the macro DLL_EXPORT for gcc/g++ on windows and cleaned up a few TODO entries 2012-04-07 10:54:40 +02:00
Thomas Nagy 81a2e68859 cleanup 2012-04-07 09:45:53 +02:00
Thomas Nagy c3067e0912 In the file copy, ensure that the parent folder is created 2012-04-02 01:56:24 +02:00
Thomas Nagy 3938a4ae70 for consistency x.search() -> x.search_node() 2012-02-19 10:15:31 +01:00
Thomas Nagy b3fcd71d50 Added Node.evict() 2012-02-12 15:36:57 +01:00
Thomas Nagy 779a93f07b missed one possible exception 2012-02-11 14:57:20 +01:00
Thomas Nagy 63d3442ad2 remove more except: lines 2012-02-11 14:43:07 +01:00
Thomas Nagy bfca082c42 Cleanup for waf 1.7 2012-02-04 19:39:45 +01:00
Thomas Nagy 5b577a9109 docs 2012-01-26 21:08:52 +01:00