Skip to content

Commit b71ca3a

Browse files
author
Ryan Northey
committed
added setuptools recipe
1 parent 8ab6ebb commit b71ca3a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

recipes/setuptools/recipe.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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_PATH/hostpython/Python-2.7.2/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_PATH/hostpython/Python-2.7.2/hostpython setup.py install -O2 --root=$BUILD_PATH/hostpython/Python-2.7.2 --install-lib=Lib/site-packages
28+
pop_arm
29+
}
30+
31+
function postbuild_setuptools() {
32+
true
33+
}

0 commit comments

Comments
 (0)