diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-02-28 22:49:26 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-02-28 22:49:26 (GMT) |
commit | 3da989c6bc0c80bd75547dbd8efc5a9deb29eff5 (patch) | |
tree | 0ce76ab56bb17e4a6e3d5d1c99154c9199bad556 | |
parent | 8bad993dd375fdcd87ebfa661ffefb91e7f0d89b (diff) | |
download | cpython-3da989c6bc0c80bd75547dbd8efc5a9deb29eff5.zip cpython-3da989c6bc0c80bd75547dbd8efc5a9deb29eff5.tar.gz cpython-3da989c6bc0c80bd75547dbd8efc5a9deb29eff5.tar.bz2 |
Fix for bug #405007: prefix subdir to scripts in order to build in
a subdirectory.
-rw-r--r-- | setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 ] |