Skip to content

Commit 99ed227

Browse files
committed
better test for not compiling kivy and PIL again
1 parent 6d6f15c commit 99ed227

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

recipes/kivy/recipe.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ function prebuild_kivy() {
1919
}
2020

2121
function build_kivy() {
22-
cd $BUILD_kivy
23-
24-
# if the last step have been done, avoid all
25-
if [ -f .done ]; then
22+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/kivy" ]; then
2623
return
2724
fi
28-
25+
26+
cd $BUILD_kivy
27+
2928
push_arm
3029

3130
export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
@@ -39,7 +38,6 @@ function build_kivy() {
3938

4039
try rm -rf $BUILD_PATH/python-install/lib/python*/site-packages/kivy/tools
4140

42-
touch .done
4341
pop_arm
4442
}
4543

recipes/pil/recipe.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@ function prebuild_pil() {
3030
}
3131

3232
function build_pil() {
33+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/PIL" ]; then
34+
return
35+
fi
36+
3337
cd $BUILD_pil
3438

3539
push_arm
3640

3741
LIBS="$SRC_PATH/obj/local/$ARCH"
3842
export CFLAGS="$CFLAGS -I$JNI_PATH/png -I$JNI_PATH/jpeg"
3943
export LDFLAGS="$LDFLAGS -L$LIBS -lm -lz"
40-
try $BUILD_PATH/python-install/bin/python.host setup.py install
41-
try find build/lib.* -name "*.o" -exec $STRIP {} \;
44+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
4245

4346
pop_arm
4447
}

0 commit comments

Comments
 (0)