| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
forms that IOError and OSError can take (taken from core.py).
|
|
|
|
|
| |
Also changed it so it doesn't barf if the path is already in native format
(ie. contains os.sep).
|
| |
|
|
|
|
|
| |
added a global '_environ_checked' so we know if it's already been
called.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
added 'abspath()' and 'extend()'.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
| |
eg. sunos5, linux2, irix5.
|
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
| |
might have been copied, regardless of the 'update' flag.
|
|
|
|
| |
Made handling OSError in 'mkpath()' more standard.
|
|
|
|
| |
make 'mkdir()' return list of directories created.
|
|
|
|
|
| |
for the 'bdist_dumb' command. Adapted, with tweakage, from the 'sdist'
command.
|
| |
|
|
|
|
|
| |
Tightened up some logic in 'native_path()'.
Added 'subst_vars()' and '_check_environ()'.
|
| |
|
|
|
|
| |
changed 'copy_file()' to use the native Mac file copy routine.
|
|
|
|
| |
slashes, and put back together again using the local directory separator.
|
|
|
|
| |
simpler implementation.
|
|
|
|
| |
Fixed all DistutilsFileError messages to wrap file/dir names in quotes.
|
| |
|
|
|
|
| |
platform, using 'os.uname()' or 'sys.platform'.
|
| |
|
|
|
|
| |
the 'missing' parameter.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
- 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 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!).
|
|
|
|
|
|
| |
Terminology change in 'newer()'.
Made 'copy_tree' respect dry_run flag a little better.
Added 'move_file()'.
|
|
|
|
| |
'chmod()' in 'copy_file()'.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|