? command/.install_data.py.swp Index: dep_util.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/distutils/dep_util.py,v retrieving revision 1.7 diff -u -r1.7 dep_util.py --- dep_util.py 10 Nov 2004 22:23:14 -0000 1.7 +++ dep_util.py 26 Jan 2005 07:15:20 -0000 @@ -12,13 +12,15 @@ from distutils.errors import DistutilsFileError -def newer (source, target): +def newer (source, target, dry_run=0): """Return true if 'source' exists and is more recently modified than 'target', or if 'source' exists and 'target' doesn't. Return false if both exist and 'target' is the same age or younger than 'source'. Raise DistutilsFileError if 'source' does not exist. """ if not os.path.exists(source): + if dry_run: + return 1 raise DistutilsFileError, "file '%s' does not exist" % source if not os.path.exists(target): return 1 Index: util.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/distutils/util.py,v retrieving revision 1.76 diff -u -r1.76 util.py --- util.py 18 Jul 2004 06:14:42 -0000 1.76 +++ util.py 26 Jan 2005 07:15:21 -0000 @@ -444,7 +444,7 @@ cfile_base = os.path.basename(cfile) if direct: - if force or newer(file, cfile): + if force or newer(file, cfile, dry_run): log.info("byte-compiling %s to %s", file, cfile_base) if not dry_run: compile(file, cfile, dfile)