Fix for bug #405007: prefix subdir to scripts in order to build in

a subdirectory.
This commit is contained in:
Andrew M. Kuchling 2001-02-28 22:49:26 +00:00
parent 8bad993dd3
commit 3da989c6bc
1 changed files with 4 additions and 0 deletions

View File

@ -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 ]