Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions recipes/igraph/get_platform.py

This file was deleted.

6 changes: 4 additions & 2 deletions recipes/igraph/recipe.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
b#!/bin/bash

# Recipe for the Python interface to igraph, a high-performance graph library in C: http://igraph.org/
#
Expand All @@ -18,7 +18,7 @@ RECIPE_igraph=$RECIPES_PATH/igraph


function prebuild_igraph() {
patch setup.py $RECIPE_igraph/setup.py.patch
true
}

function shouldbuild_igraph() {
Expand All @@ -29,6 +29,8 @@ function shouldbuild_igraph() {

function build_igraph() {
cd $BUILD_igraph
patch setup.py $RECIPE_igraph/setup.py.patch

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normally, the patch is done is the prebuild phase, as the build be recalled later, so double-patch will not work. Do another PR for that please :)

patch setup.cfg $RECIPE_igraph/setup.cfg.patch
push_arm

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
Expand Down
6 changes: 6 additions & 0 deletions recipes/igraph/setup.cfg.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
2,3c2,3
< include_dirs = ../../build/include:../../include:/usr/local/include:/usr/include
< library_dirs = ../../build/src/.libs:../../src/.libs:/usr/local/lib:/usr/lib
---
> include_dirs = ../../build/include:../../include
> library_dirs = ../../build/src/.libs:../../src/.libs