Commit 3c161b40 authored by Just van Rossum's avatar Just van Rossum

Do convert_path() on script paths (now PyXML builds out of the box

under MacOS.)
parent f6fcc8f5
...@@ -9,6 +9,7 @@ __revision__ = "$Id$" ...@@ -9,6 +9,7 @@ __revision__ = "$Id$"
import sys, os, re import sys, os, re
from distutils.core import Command from distutils.core import Command
from distutils.dep_util import newer from distutils.dep_util import newer
from distutils.util import convert_path
# check if Python is called on the first line with this expression # check if Python is called on the first line with this expression
first_line_re = re.compile(r'^#!.*python(\s+.*)?') first_line_re = re.compile(r'^#!.*python(\s+.*)?')
...@@ -54,6 +55,7 @@ class build_scripts (Command): ...@@ -54,6 +55,7 @@ class build_scripts (Command):
self.mkpath(self.build_dir) self.mkpath(self.build_dir)
for script in self.scripts: for script in self.scripts:
adjust = 0 adjust = 0
script = convert_path(script)
outfile = os.path.join(self.build_dir, os.path.basename(script)) outfile = os.path.join(self.build_dir, os.path.basename(script))
if not self.force and not newer(script, outfile): if not self.force and not newer(script, outfile):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment