fixes bad path resolution in Python setup.py (zlib.h is not located into /usr/include anymore.)

This commit is contained in:
Mathieu Virbel 2013-10-25 17:33:47 +02:00
parent 71a81a6924
commit 7f247d4af3
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- Python-2.7.1/setup.py.orig 2013-10-25 17:28:03.000000000 +0200
+++ Python-2.7.1/setup.py 2013-10-25 17:27:56.000000000 +0200
@@ -87,7 +87,7 @@
f = os.path.join(sysroot, dir[1:], filename)
if os.path.exists(f):
- return [dir]
+ return [os.path.dirname(f)]
# Not found anywhere
return None

View file

@ -38,6 +38,7 @@ echo "Building for iOS ======================================================="
# patch python to cross-compile
try patch -p1 < $KIVYIOSROOT/src/python_files/Python-$IOS_PYTHON_VERSION-xcompile.patch
try patch -p1 < $KIVYIOSROOT/src/python_files/Python-$IOS_PYTHON_VERSION-setuppath.patch
# set up environment variables for cross compilation
#export CPPFLAGS="-I$IOSSDKROOT/usr/lib/gcc/arm-apple-darwin11/4.2.1/include/ -I$IOSSDKROOT/usr/include/"