Skip to content

Commit 5fa6124

Browse files
committed
Patch during prebuild rather than regular build
1 parent 4e295fd commit 5fa6124

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

recipes/igraph/recipe.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ RECIPE_igraph=$RECIPES_PATH/igraph
1818

1919

2020
function prebuild_igraph() {
21-
true
21+
try patch $BUILD_igraph/setup.py $RECIPE_igraph/setup.py.patch
22+
try patch $BUILD_igraph/setup.cfg $RECIPE_igraph/setup.cfg.patch
2223
}
2324

2425
function shouldbuild_igraph() {
@@ -29,8 +30,6 @@ function shouldbuild_igraph() {
2930

3031
function build_igraph() {
3132
cd $BUILD_igraph
32-
patch setup.py $RECIPE_igraph/setup.py.patch
33-
patch setup.cfg $RECIPE_igraph/setup.cfg.patch
3433
push_arm
3534

3635
try $HOSTPYTHON setup.py build_ext -I"$BUILD_PATH/python-install/include/igraph:$ANDROIDNDK/sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi/include" -L"$BUILD_PATH/python-install/lib:$ANDROIDNDK/sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi" -l gnustl_static -p arm-gnueabi install

0 commit comments

Comments
 (0)