]> granicus.if.org Git - python/commitdiff
Do convert_path() on script paths (now PyXML builds out of the box
authorJust van Rossum <just@letterror.com>
Sun, 29 Jul 2001 21:39:18 +0000 (21:39 +0000)
committerJust van Rossum <just@letterror.com>
Sun, 29 Jul 2001 21:39:18 +0000 (21:39 +0000)
under MacOS.)

Lib/distutils/command/build_scripts.py

index 653b8d8ace9d5d77c80c22b036a5f569a8f8e221..611767e7bc3277cd31d27a04cb927d8703bb19f1 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
 first_line_re = re.compile(r'^#!.*python(\s+.*)?')
@@ -54,6 +55,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):