]> granicus.if.org Git - python/commitdiff
Fix for bug #405007: prefix subdir to scripts in order to build in
authorAndrew M. Kuchling <amk@amk.ca>
Wed, 28 Feb 2001 22:49:26 +0000 (22:49 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Wed, 28 Feb 2001 22:49:26 +0000 (22:49 +0000)
    a subdirectory.

setup.py

index 40e65d4176e23dbfdf4855b987620be06c9bff99..67bf5b7b4a324dea84fe2d7f40f98bbef5d017ca 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -79,6 +79,10 @@ class PyBuildExt(build_ext):
         srcdir = os.path.normpath(srcdir)
         moddir = os.path.normpath(moddir)
 
+        # Fix up the paths for scripts, too
+        self.distribution.scripts = [os.path.join(srcdir, filename)
+                                     for filename in self.distribution.scripts]
+
         for ext in self.extensions[:]:
             ext.sources = [ os.path.join(moddir, filename)
                             for filename in ext.sources ]