Merge pull request #962 from sairon/python-fix-distutils-adjusting-path
python: patch distutils adjusting path in scripts' shebang
This commit is contained in:
commit
056f0002b1
1 changed files with 10 additions and 0 deletions
10
lang/python/patches/170-distutils-do-not-adjust-path.patch
Normal file
10
lang/python/patches/170-distutils-do-not-adjust-path.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/Lib/distutils/command/build_scripts.py
|
||||||
|
+++ b/Lib/distutils/command/build_scripts.py
|
||||||
|
@@ -89,6 +89,7 @@ class build_scripts (Command):
|
||||||
|
adjust = 1
|
||||||
|
post_interp = match.group(1) or ''
|
||||||
|
|
||||||
|
+ adjust = 0
|
||||||
|
if adjust:
|
||||||
|
log.info("copying and adjusting %s -> %s", script,
|
||||||
|
self.build_dir)
|
Loading…
Reference in a new issue