From: Jack Jansen Date: Mon, 30 Jul 2001 09:56:31 +0000 (+0000) Subject: Just's fix in 1.10: call convert_path for scripts too. Needed for mac X-Git-Tag: v2.1.2c1~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b25f35a80efd0aa797ad372c50a382230da1d52;p=thirdparty%2FPython%2Fcpython.git Just's fix in 1.10: call convert_path for scripts too. Needed for mac 2.1.1, and should do no harm to 2.1.2 (on the odd chance that will happen). --- diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py index ee7f4e2d1e7b..28742bb746e4 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. # 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):