From 71b696622a31744bbb40be244c7465f1efa8047c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Fri, 27 Feb 2015 14:32:56 +0100 Subject: [PATCH] python: patch distutils adjusting path in scripts' shebang MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- .../patches/170-distutils-do-not-adjust-path.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lang/python/patches/170-distutils-do-not-adjust-path.patch diff --git a/lang/python/patches/170-distutils-do-not-adjust-path.patch b/lang/python/patches/170-distutils-do-not-adjust-path.patch new file mode 100644 index 0000000000..49fe926294 --- /dev/null +++ b/lang/python/patches/170-distutils-do-not-adjust-path.patch @@ -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) -- 2.30.2