Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | In 'get_platform()', handle so-called POSIX systems that don't have | Greg Ward | 2000-09-30 | 1 | -1/+1 | |
| | | | | 'uname()' -- specifically NeXTSTEP. | |||||
* | Standardize whitespace in function calls. | Greg Ward | 2000-09-26 | 1 | -12/+12 | |
| | ||||||
* | Added 'strtobool()' function: convert strings like "yes", "1", | Greg Ward | 2000-09-25 | 1 | -0/+15 | |
| | | | | "no", "0", etc. to true/false. | |||||
* | Fix 'convert_path()' so it returns immediately under Unix -- prevents blowing | Greg Ward | 2000-09-22 | 1 | -5/+5 | |
| | | | | | up when the pathname starts with '/', which is needed when converting installation directories in the "install" command. | |||||
* | Corran Webster: fix 'change_root()' to handle Mac OS paths. | Greg Ward | 2000-09-21 | 1 | -1/+7 | |
| | ||||||
* | Revamped 'get_platform()' to try and do something reasonably smart on | Greg Ward | 2000-09-15 | 1 | -4/+42 | |
| | | | | POSIX platforms, ie. get a little more detail than 'sys.platform' gives. | |||||
* | Fix so 'split_quoted()' handles any whitespace delimiter (not just space). | Greg Ward | 2000-08-08 | 1 | -2/+2 | |
| | ||||||
* | Drop the 'extend()' function -- old 1.5.1 compatibility hack that | Greg Ward | 2000-08-05 | 1 | -20/+0 | |
| | | | | | wasn't actually used anywhere. Drop the "from xxx_util import*" backwards compability hacks. | |||||
* | Added the 'execute()' function (moved here from cmd.py with minor tweakage). | Greg Ward | 2000-08-02 | 1 | -0/+26 | |
| | ||||||
* | Ditched 'abspath()' -- don't need 1.5.1 compatability hacks anymore. | Greg Ward | 2000-08-02 | 1 | -10/+0 | |
| | ||||||
* | Fixed a grab-bag of typos spotted by Rob Hooft. | Greg Ward | 2000-07-27 | 1 | -2/+2 | |
| | ||||||
* | typos fixed by Rob Hooft | Jeremy Hylton | 2000-06-28 | 1 | -1/+1 | |
| | ||||||
* | Added 'split_quoted()' function to deal with strings that are quoted in | Greg Ward | 2000-06-24 | 1 | -0/+67 | |
| | | | | | Unix shell-like syntax (eg. in Python's Makefile, for one thing -- now that I have this function, I'll probably allow quoted strings in config files too. | |||||
* | 'get_platform()' now just returns 'sys.platform' on all platforms. | Greg Ward | 2000-06-18 | 1 | -12/+4 | |
| | ||||||
* | Added 'grok_environment_error()' function to deal with the various | Greg Ward | 2000-06-17 | 1 | -0/+20 | |
| | | | | forms that IOError and OSError can take (taken from core.py). | |||||
* | Renamed 'native_path()' to 'convert_path()'. | Greg Ward | 2000-05-31 | 1 | -8/+4 | |
| | | | | | Also changed it so it doesn't barf if the path is already in native format (ie. contains os.sep). | |||||
* | Fixed 'change_root() to work at all on Windows, and to work correctly on Unix. | Greg Ward | 2000-05-31 | 1 | -10/+10 | |
| | ||||||
* | Made 'check_environ()' "public" by stripping the leading underscore; | Gregory P. Smith | 2000-05-12 | 1 | -2/+9 | |
| | | | | | added a global '_environ_checked' so we know if it's already been called. | |||||
* | Added 'change_root()' to forcibly slap a new root directory onto a pathname, | Greg Ward | 2000-04-27 | 1 | -0/+26 | |
| | | | | | | even if it's already absolute. Currently only implemented for Unix; I'm not entirely sure of the right thing to do for DOS/Windows, and have no clue what to do for Mac OS. | |||||
* | Lyle Johnson: fixed broken logic in 'native_path()'. | Greg Ward | 2000-04-25 | 1 | -7/+7 | |
| | ||||||
* | Merged in Python 1.5.1 compatibility changes from the 0.1.3 branch: | Greg Ward | 2000-04-22 | 1 | -0/+24 | |
| | | | | added 'abspath()' and 'extend()'. | |||||
* | Cleaned up/simplified error-handling: | Greg Ward | 2000-04-15 | 1 | -4/+4 | |
| | | | | | | | | | | | | | - DistutilsOptionError is now documented as it's actually used, ie. to indicate bogus option values (usually user options, eg. from the command-line) - added DistutilsSetupError to indicate errors that definitely arise in the setup script - got rid of DistutilsValueError, and changed all usage of it to either DistutilsSetupError or ValueError as appropriate - simplified a bunch of option get/set methods in Command and Distribution classes -- just pass on AttributeError most of the time, rather than turning it into something else | |||||
* | Reorganization: ripped util.py to shreds, creating in the process: | Greg Ward | 2000-04-04 | 1 | -664/+7 | |
| | | | | | | | | | - file_util.py: operations on single files - dir_util.py: operations on whole directories or directory trees - dep_util.py: simple timestamp-based dependency analysis - archive_util.py: creation of archive (tar, zip, ...) files The functions left in util.py are miscellany that don't fit in any of the new files. | |||||
* | Fixed 'make_archive()' to explicitly turn of compression when format is "tar". | Greg Ward | 2000-03-31 | 1 | -0/+1 | |
| | ||||||
* | Tweaked 'get_platform()' to include the first character of the OS release: | Greg Ward | 2000-03-31 | 1 | -4/+2 | |
| | | | | eg. sunos5, linux2, irix5. | |||||
* | Added 'create_tree()'. | Greg Ward | 2000-03-31 | 1 | -25/+135 | |
| | | | | | | | | | | | Changes to 'copy_file()': * added support for making hard links and symlinks * noted that it silently clobbers existing files when copying, but blows up if destination exists when linking -- hmmm... * error message tweak Added 'base_name' parameter to 'make_tarball()' and 'make_zipfile()'. Added 'make_archive()' -- wrapper around 'make_tarball()' or 'make_zipfile()' to take care of the archive "root directory". | |||||
* | Changed 'copy_tree()' so it returns the list of all files that were copied or | Greg Ward | 2000-03-29 | 1 | -11/+12 | |
| | | | | might have been copied, regardless of the 'update' flag. | |||||
* | Documented Bastian's patch. | Greg Ward | 2000-03-29 | 1 | -7/+9 | |
| | | | | Made handling OSError in 'mkpath()' more standard. | |||||
* | Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>: | Greg Ward | 2000-03-29 | 1 | -3/+5 | |
| | | | | make 'mkdir()' return list of directories created. | |||||
* | Added 'make_tarball()' and 'make_zipfile()' functions in preparation | Greg Ward | 2000-03-29 | 1 | -2/+90 | |
| | | | | | for the 'bdist_dumb' command. Adapted, with tweakage, from the 'sdist' command. | |||||
* | Import fix. | Greg Ward | 2000-03-23 | 1 | -1/+1 | |
| | ||||||
* | Improved an error message in 'mkpath()'. | Greg Ward | 2000-03-22 | 1 | -7/+47 | |
| | | | | | Tightened up some logic in 'native_path()'. Added 'subst_vars()' and '_check_environ()'. | |||||
* | Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>: added 'remove_tree()'. | Greg Ward | 2000-03-18 | 1 | -1/+20 | |
| | ||||||
* | Patch from Corran Webster <cwebster@nevada.edu> (tweaked for style by me): | Greg Ward | 2000-03-07 | 1 | -0/+11 | |
| | | | | changed 'copy_file()' to use the native Mac file copy routine. | |||||
* | Added 'native_path()' for use on pathnames from the setup script: split on | Greg Ward | 2000-03-07 | 1 | -0/+28 | |
| | | | | slashes, and put back together again using the local directory separator. | |||||
* | Rewrote 'newer_pairwise(): more natural (and incompatible) interface, | Greg Ward | 2000-03-06 | 1 | -12/+13 | |
| | | | | simpler implementation. | |||||
* | Fixed 'mkpath()' to accept empty string silently (it's just the current dir). | Greg Ward | 2000-03-03 | 1 | -9/+11 | |
| | | | | Fixed all DistutilsFileError messages to wrap file/dir names in quotes. | |||||
* | Changed '__rcsid__' to '__revision__'. | Greg Ward | 2000-03-02 | 1 | -1/+1 | |
| | ||||||
* | Added 'get_platform()' to construct a string that identifies the current | Greg Ward | 2000-03-01 | 1 | -1/+19 | |
| | | | | platform, using 'os.uname()' or 'sys.platform'. | |||||
* | Fixed broken list extend in 'copy_tree()'. | Greg Ward | 2000-01-30 | 1 | -2/+2 | |
| | ||||||
* | 'newer_group()' can now deal with missing files, in a way specified by | Greg Ward | 2000-01-09 | 1 | -2/+17 | |
| | | | | the 'missing' parameter. | |||||
* | Fixed 'mkpath()' to normalize the path right off the bat -- cleans up | Greg Ward | 1999-10-03 | 1 | -5/+7 | |
| | | | | | | | the code a bit and should make it work under Windows even with trailing backslash. Fixed a couple of docstrings. Added comment about 'make_file()' possibly being redundant and unnecessary. | |||||
* | More tweaks to 'mkpath()': | Greg Ward | 1999-09-29 | 1 | -0/+5 | |
| | | | | | | - deal with empty tail from os.path.split() (eg. from trailing slash, or backslash, or whatever) - check PATH_CREATED hash inside loop as well | |||||
* | Added 'write_file()' function. | Greg Ward | 1999-09-21 | 1 | -1/+22 | |
| | | | | | | | Added global cache PATH_CREATED used by 'mkpath()' to ensure it doesn't try to create the same path more than once in a session (and, more importantly, to ensure that it doesn't print "creating X" more than once for each X per session!). | |||||
* | Added 'newer_pairwise()' and 'newer_group()'. | Greg Ward | 1999-09-13 | 1 | -16/+133 | |
| | | | | | | Terminology change in 'newer()'. Made 'copy_tree' respect dry_run flag a little better. Added 'move_file()'. | |||||
* | On David Ascher's recommendation: reversed order of 'utime()' and | Greg Ward | 1999-06-08 | 1 | -2/+5 | |
| | | | | 'chmod()' in 'copy_file()'. | |||||
* | The 'copy_file()' and 'copy_tree()' functions in util.py now have | Greg Ward | 1999-05-02 | 1 | -12/+30 | |
| | | | | | | | meaningful return values: respectively, whether the copy was done, and the list of files that were copied. This meant some trivial changes in core.py as well: the Command methods that mirror 'copy_file()' and 'copy_tree()' have to pass on their return values. | |||||
* | Added 'dry_run' flag to most functions (to support the "shadow methods" | Greg Ward | 1999-04-04 | 1 | -15/+28 | |
| | | | | | | | | that wrap them in the Command class). Fixed 'copy_file()' to use '_copy_file_contents()', not 'copyfile()' from shutil module -- no reference to shutil anymore. Added "not copying" announcement in 'copy_file()'. Wee comment fix. | |||||
* | First checkin of real Distutils code. | Greg Ward | 1999-03-22 | 1 | -0/+245 | |