File tree Expand file tree Collapse file tree 2 files changed +11
-49
lines changed Expand file tree Collapse file tree 2 files changed +11
-49
lines changed Original file line number Diff line number Diff line change 11#! /bin/env bash
22
3- export IGRAPH_CMAKE_EXTRA_ARGS="
4- ${CMAKE_ARGS} \
5- -GNinja \
6- -DCMAKE_BUILD_TYPE=Release \
7- -DCMAKE_INSTALL_PREFIX=${SRC_DIR} /vendor/install/igraph \
8- -DCMAKE_C_FLAGS=\" ${CFLAGS} \" \
9- -DCMAKE_CPP_FLAGS=\" ${CPPFLAGS} \" \
10- -DCMAKE_CXX_FLAGS=\" ${CXXFLAGS} \" \
11- -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
12- -DF2C_EXTERNAL_ARITH_HEADER=${F2C_EXTERNAL_ARITH_HEADER} \
13- -DIGRAPH_USE_INTERNAL_BLAS=0 \
14- -DIGRAPH_USE_INTERNAL_LAPACK=0 \
15- -DIGRAPH_USE_INTERNAL_ARPACK=0 \
16- -DIGRAPH_USE_INTERNAL_GLPK=0 \
17- -DIGRAPH_USE_INTERNAL_CXSPARSE=0 \
18- -DIGRAPH_USE_INTERNAL_GMP=0 \
19- -DBUILD_SHARED_LIBS=OFF \
20- -DIGRAPH_ENABLE_LTO=AUTO \
21- -DIGRAPH_ENABLE_TLS=1 \
22- -DBLAS_LIBRARIES=\" ${PREFIX} /lib/libblas${SHLIB_EXT} \" \
23- -DLAPACK_LIBRARIES=\" ${PREFIX} /lib/liblapack${SHLIB_EXT} \"
24- "
3+ # Build python-igraph against the externally provided libigraph from conda-forge
4+ # Use pkg-config to discover headers and libraries.
5+ export IGRAPH_USE_PKG_CONFIG=1
6+
7+ # Ensure pkg-config can find igraph.pc from the host env
8+ export PKG_CONFIG_PATH=" ${PREFIX} /lib/pkgconfig:${PKG_CONFIG_PATH} "
259
2610${PYTHON} -m pip install --no-deps --no-build-isolation --ignore-installed . -vvv
Original file line number Diff line number Diff line change @@ -14,45 +14,25 @@ source:
1414
1515build :
1616 number : 3
17- script_env :
18- - F2C_EXTERNAL_ARITH_HEADER={{ RECIPE_DIR }}/arith_arm64.h # [arm64]
19-
20- run_exports :
21- - {{ pin_subpackage("python-igraph", max_pin="x.x") }}
2217
2318requirements :
2419 build :
2520 - python # [build_platform != target_platform]
2621 - cross-python_{{ target_platform }} # [build_platform != target_platform]
27- - libtool # [unix]
2822 - {{ compiler('c') }}
2923 - {{ stdlib("c") }}
3024 - {{ compiler('cxx') }}
31- # just to make cmake happy
32- - bison # [osx and arm64]
33- - cmake
34- - ninja
35- - make # [not win]
3625 - pkg-config # [not win]
26+ - cmake # [win]
27+ - ninja # [win]
3728 host :
38- - glpk
39- - libxml2-devel
40- - arpack # [not win]
41- - gmp
42- - libblas
43- - liblapack
4429 - python
4530 - pip
4631 - setuptools >=64,<72.2.0
47- - zlib
32+ - igraph >=0.10,<0.11
4833 run :
49- - glpk
50- - libxml2-devel
51- - arpack # [not win]
52- - gmp
53- - texttable >=1.6.2
5434 - python
55- - igraph >=0.10,<0.11
35+ - texttable >=1.6.2
5636
5737test :
5838 source_files :
6848about :
6949 home : https://igraph.org/python/
7050 license : GPL-2.0-or-later
71- license_file :
72- - LICENSE
73- - vendor/source/igraph/ACKNOWLEDGEMENTS.md
51+ license_file : LICENSE
7452 summary : High performance graph data structures and algorithms
7553 dev_url : https://github.com/igraph/python-igraph
7654 doc_url : https://igraph.org/python/#docs
You can’t perform that action at this time.
0 commit comments