Greg Ward
044b7c15c9
Changed 'copy_tree()' so it returns the list of all files that were copied or
...
might have been copied, regardless of the 'update' flag.
2000-03-29 03:27:45 +00:00
Greg Ward
739d06689d
Documented Bastian's patch.
...
Made handling OSError in 'mkpath()' more standard.
2000-03-29 02:56:34 +00:00
Greg Ward
da4d1aef4e
Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>:
...
make 'mkdir()' return list of directories created.
2000-03-29 02:53:02 +00:00
Greg Ward
7c1a6d4777
Added 'make_tarball()' and 'make_zipfile()' functions in preparation
...
for the 'bdist_dumb' command. Adapted, with tweakage, from the 'sdist'
command.
2000-03-29 02:48:40 +00:00
Greg Ward
a7540bd043
Import fix.
2000-03-23 04:39:16 +00:00
Greg Ward
1b4ede5f24
Improved an error message in 'mkpath()'.
...
Tightened up some logic in 'native_path()'.
Added 'subst_vars()' and '_check_environ()'.
2000-03-22 00:22:44 +00:00
Greg Ward
b98fe36c46
Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>: added 'remove_tree()'.
2000-03-18 15:42:22 +00:00
Greg Ward
911d86693b
Patch from Corran Webster <cwebster@nevada.edu> (tweaked for style by me):
...
changed 'copy_file()' to use the native Mac file copy routine.
2000-03-07 03:34:16 +00:00
Greg Ward
5091929c2c
Added 'native_path()' for use on pathnames from the setup script: split on
...
slashes, and put back together again using the local directory separator.
2000-03-07 03:27:08 +00:00
Greg Ward
9552665436
Rewrote 'newer_pairwise(): more natural (and incompatible) interface,
...
simpler implementation.
2000-03-06 03:44:32 +00:00
Greg Ward
96182d7b68
Fixed 'mkpath()' to accept empty string silently (it's just the current dir).
...
Fixed all DistutilsFileError messages to wrap file/dir names in quotes.
2000-03-03 03:00:02 +00:00
Greg Ward
3ce77fd05e
Changed '__rcsid__' to '__revision__'.
2000-03-02 01:49:45 +00:00
Greg Ward
585df89f60
Added 'get_platform()' to construct a string that identifies the current
...
platform, using 'os.uname()' or 'sys.platform'.
2000-03-01 14:40:15 +00:00
Greg Ward
a002edc85b
Fixed broken list extend in 'copy_tree()'.
2000-01-30 19:57:48 +00:00
Greg Ward
7b7679eb79
'newer_group()' can now deal with missing files, in a way specified by
...
the 'missing' parameter.
2000-01-09 22:48:59 +00:00
Greg Ward
f3b997a7f0
Fixed 'mkpath()' to normalize the path right off the bat -- cleans up
...
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.
1999-10-03 20:50:41 +00:00
Greg Ward
cd1486fff1
More tweaks to 'mkpath()':
...
- deal with empty tail from os.path.split() (eg. from trailing slash,
or backslash, or whatever)
- check PATH_CREATED hash inside loop as well
1999-09-29 12:14:16 +00:00
Greg Ward
ac1424a9ce
Added 'write_file()' function.
...
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!).
1999-09-21 18:37:51 +00:00
Greg Ward
138ce653cc
Added 'newer_pairwise()' and 'newer_group()'.
...
Terminology change in 'newer()'.
Made 'copy_tree' respect dry_run flag a little better.
Added 'move_file()'.
1999-09-13 03:09:38 +00:00
Greg Ward
5116f90ece
On David Ascher's recommendation: reversed order of 'utime()' and
...
'chmod()' in 'copy_file()'.
1999-06-08 17:05:21 +00:00
Greg Ward
884df454b2
The 'copy_file()' and 'copy_tree()' functions in util.py now have
...
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.
1999-05-02 21:42:05 +00:00
Greg Ward
e765a3bb61
Added 'dry_run' flag to most functions (to support the "shadow methods"
...
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.
1999-04-04 02:54:20 +00:00
Greg Ward
2689e3ddce
First checkin of real Distutils code.
1999-03-22 14:52:19 +00:00