ios: Strip iOS build, only use pyo

This commit is contained in:
Christopher Denter 2011-05-12 11:54:22 +02:00
parent d10c74de74
commit 6d84192210
1 changed files with 9 additions and 1 deletions

View File

@ -18,12 +18,20 @@ ios:
-mkdir extralibs
-ln -s ../python-for-iphone/Python-2.6.5/python
-rm -rdf iosbuild/
mkdir iosbuild
echo "First build ========================================"
-$(HOSTPYTHON) setup.py build
echo "cythoning =========================================="
find . -name *.pyx -exec cython {} \;
echo "Second build ======================================="
$(HOSTPYTHON) setup.py build
$(HOSTPYTHON) setup.py install -O2 --root iosbuild
# Strip away the large stuff
find iosbuild/ | grep -E '*\.(py|pyc|so\.o|so\.a|so\.libs)$$' | xargs rm
-rm -rdf "../python-for-iphone/Python-2.6.5/_install/lib/python2.6/site-packages/kivy"
# Copy to python for iOS installation
cp -R "iosbuild/usr/local/lib/python2.6/site-packages/kivy" "../python-for-iphone/Python-2.6.5/_install/lib/python2.6/site-packages"
pdf:
$(MAKE) -C doc latex && make -C doc/build/latex all-pdf