diff --git a/setup.py b/setup.py index 40e65d4176e..67bf5b7b4a3 100644 --- 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 ]