summaryrefslogtreecommitdiff
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2001-07-29 21:39:18 +0000
committerJust van Rossum <just@letterror.com>2001-07-29 21:39:18 +0000
commit3c161b4017765b424bc04a43ceb6009970257c41 (patch)
treeded8369d15ead63587d0e7219d0df4d25b09f0fd /Lib/distutils/command
parentf6fcc8f5c7f448c92fd7ae75cb235906e7a81daa (diff)
downloadcpython-3c161b4017765b424bc04a43ceb6009970257c41.tar.gz
Do convert_path() on script paths (now PyXML builds out of the box
under MacOS.)
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/build_scripts.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py
index 653b8d8ace..611767e7bc 100644
--- a/Lib/distutils/command/build_scripts.py
+++ b/Lib/distutils/command/build_scripts.py
@@ -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):