Przeglądaj źródła

python: patch distutils adjusting path in scripts' shebang

When distutils are copying scripts, path to Python interpreter is adjusted.
This does not work well in OpenWrt buildroot, because the path is adjusted
to absolute path to host Python then. This patch simply disables the
adjusting of the path.

Signed-off-by: Jan Čermák <jan.cermak@nic.cz>
Jan Čermák 10 lat temu
rodzic
commit
71b696622a

+ 10
- 0
lang/python/patches/170-distutils-do-not-adjust-path.patch Wyświetl plik

@@ -0,0 +1,10 @@
1
+--- a/Lib/distutils/command/build_scripts.py
2
++++ b/Lib/distutils/command/build_scripts.py
3
+@@ -89,6 +89,7 @@ class build_scripts (Command):
4
+                     adjust = 1
5
+                     post_interp = match.group(1) or ''
6
+ 
7
++            adjust = 0
8
+             if adjust:
9
+                 log.info("copying and adjusting %s -> %s", script,
10
+                          self.build_dir)