Fix for bug #405007: prefix subdir to scripts in order to build in
a subdirectory.
This commit is contained in:
parent
8bad993dd3
commit
3da989c6bc
4
setup.py
4
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 ]
|
||||
|
|
Loading…
Reference in New Issue