File tree 4 files changed +41
-4
lines changed 4 files changed +41
-4
lines changed Original file line number Diff line number Diff line change @@ -516,7 +516,6 @@ function run_distribute() {
516
516
try rm -rf distutils/tests
517
517
try rm -rf email/test
518
518
try rm -rf bsddb/test
519
- try rm -rf distutils
520
519
try rm -rf config/libpython* .a
521
520
try rm -rf config/python.o
522
521
try rm -rf curses
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ VERSION_setuptools=0.6c11
4
+ URL_setuptools=http://pypi.python.org/packages/source/s/setuptools/setuptools-$VERSION_setuptools .tar.gz
5
+ DEPS_setuptools=(python)
6
+ MD5_setuptools=7df2a529a074f613b509fb44feefe74e
7
+ BUILD_setuptools=$BUILD_PATH /setuptools/$( get_directory $URL_setuptools )
8
+ RECIPE_setuptools=$RECIPES_PATH /setuptools
9
+
10
+ function prebuild_setuptools() {
11
+ true
12
+ }
13
+
14
+ function build_setuptools() {
15
+
16
+ if [ -d " $BUILD_PATH /python-install/lib/python2.7/site-packages/setuptools" ]; then
17
+ return
18
+ fi
19
+
20
+ cd $BUILD_setuptools
21
+
22
+ push_arm
23
+ # build setuptools for android
24
+ try $BUILD_hostpython /hostpython setup.py install -O2 --root=$BUILD_PATH /python-install --install-lib=lib/python2.7/site-packages
25
+
26
+ # build setuptools for python-for-android
27
+ try $BUILD_hostpython /hostpython setup.py install -O2 --root=$BUILD_hostpython --install-lib=Lib/site-packages
28
+ pop_arm
29
+ }
30
+
31
+ function postbuild_setuptools() {
32
+ true
33
+ }
Original file line number Diff line number Diff line change @@ -23,12 +23,15 @@ function build_twisted() {
23
23
export LDFLAGS=" $LDFLAGS -L$LIBS_PATH "
24
24
export LDSHARED=" $LIBLINK "
25
25
26
+ export PYTHONPATH=$BUILD_hostpython /Lib/site-packages
27
+
26
28
# fake try to be able to cythonize generated files
27
29
$BUILD_PATH /python-install/bin/python.host setup.py build_ext
28
30
try find . -iname ' *.pyx' -exec cython {} \;
29
31
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
30
32
try find build/lib.* -name " *.o" -exec $STRIP {} \;
31
- try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
33
+
34
+ try $BUILD_hostpython /hostpython setup.py install -O2 --root=$BUILD_PATH /python-install --install-lib=lib/python2.7/site-packages
32
35
33
36
try rm -rf $BUILD_PATH /python-install/lib/python* /site-packages/twisted/test
34
37
try rm -rf $BUILD_PATH /python-install/lib/python* /site-packages/twisted/* /test
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function prebuild_zope() {
13
13
14
14
function build_zope() {
15
15
16
- if [ -d " $BUILD_PATH /python-install/lib/python2.7/site-packages/zope" ]; then
16
+ if [ -d " $BUILD_PATH /python-install/lib/python2.7/site-packages/zope/interface " ]; then
17
17
return
18
18
fi
19
19
@@ -23,8 +23,10 @@ function build_zope() {
23
23
24
24
export LDFLAGS=" $LDFLAGS -L$LIBS_PATH "
25
25
export LDSHARED=" $LIBLINK "
26
+ export PYTHONPATH=$BUILD_hostpython /Lib/site-packages
27
+
28
+ try $BUILD_hostpython /hostpython setup.py install -O2 --root=$BUILD_PATH /python-install --install-lib=lib/python2.7/site-packages
26
29
27
- try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
28
30
try rm -rf $BUILD_PATH /python-install/lib/python* /site-packages/zope/interface/tests
29
31
try rm -rf $BUILD_PATH /python-install/lib/python* /site-packages/zope/interface/* .txt
30
32
You can’t perform that action at this time.
0 commit comments