]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Just's fix in 1.10: call convert_path for scripts too. Needed for mac
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 30 Jul 2001 09:56:31 +0000 (09:56 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 30 Jul 2001 09:56:31 +0000 (09:56 +0000)
2.1.1, and should do no harm to 2.1.2 (on the odd chance that will
happen).

Lib/distutils/command/build_scripts.py

index ee7f4e2d1e7b3d66cb06fdbf296a48784b769874..28742bb746e4e33606b1a6cde47886ce2f2a7ba4 100644 (file)
@@ -9,6 +9,7 @@ __revision__ = "$Id$"
 import sys, os, re
 from distutils.core import Command
 from distutils.dep_util import newer
+from distutils.util import convert_path
 
 # check if Python is called on the first line with this expression.
 # This expression will leave lines using /usr/bin/env alone; presumably
@@ -56,6 +57,7 @@ class build_scripts (Command):
         self.mkpath(self.build_dir)
         for script in self.scripts:
             adjust = 0
+            script = convert_path(script)
             outfile = os.path.join(self.build_dir, os.path.basename(script))
 
             if not self.force and not newer(script, outfile):