python: $PREFIX/bin/sh instead of /system/bin/sh
authorFredrik Fornwall <fredrik@fornwall.net>
Wed, 2 Dec 2015 10:55:58 +0000 (05:55 -0500)
committerFredrik Fornwall <fredrik@fornwall.net>
Wed, 2 Dec 2015 10:55:58 +0000 (05:55 -0500)
packages/python/build.sh
packages/python/subprocess.py.patch

index 444580f..f1ff975 100644 (file)
@@ -7,7 +7,7 @@ TERMUX_PKG_HOSTBUILD=true
 
 _MAJOR_VERSION=3.5
 TERMUX_PKG_VERSION=${_MAJOR_VERSION}.0
-TERMUX_PKG_BUILD_REVISION=3
+TERMUX_PKG_BUILD_REVISION=4
 TERMUX_PKG_SRCURL=http://www.python.org/ftp/python/${TERMUX_PKG_VERSION}/Python-${TERMUX_PKG_VERSION}.tar.xz
 
 # The flag --with(out)-pymalloc (disable/enable specialized mallocs) is enabled by default and causes m suffix versions of python.
index 41d399a..0fb6a50 100644 (file)
@@ -6,7 +6,7 @@ diff -u -r ../Python-3.4.1/Lib/subprocess.py ./Lib/subprocess.py
  
              if shell:
 -                args = ["/bin/sh", "-c"] + args
-+                args = ["/system/bin/sh", "-c"] + args
++                args = ["@TERMUX_PREFIX@/bin/sh", "-c"] + args
                  if executable:
                      args[0] = executable