Преглед на файлове

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 години
родител
ревизия
71b696622a
променени са 1 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 10
    0
      lang/python/patches/170-distutils-do-not-adjust-path.patch

+ 10
- 0
lang/python/patches/170-distutils-do-not-adjust-path.patch Целия файл

@@ -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)