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

View file

@ -79,6 +79,10 @@ def build_extensions(self):
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 ]