Skip to content

Commit

Permalink
Invoke correct Python when cross-compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Mar 29, 2023
1 parent dd3678f commit 4461633
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
set -ex
# clean any cython-generated .c/.cpp files (as used by "make clean")
find . -name "*.pyx" -exec ./tools/rm_pyx_assoc_c_cpp.sh {} \;
meson setup ${MESON_ARGS} builddir/
${PYTHON} -m pip install . -vv
meson setup ${MESON_ARGS} builddir/ || (cat builddir/meson-logs/meson-log.txt && exit 1)
$PYTHON -m build -w -n -x -Cbuilddir=builddir
pip install dist/scikit-image*.whl
4 changes: 2 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ requirements:
# https://docs.conda.io/projects/conda-build/en/stable/resources/define-metadata.html#requirements-section
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- {{ compiler("c") }}
- {{ compiler("cxx") }}
host: # target platform emulator
- python
- numpy
Expand All @@ -35,6 +33,8 @@ requirements:
- packaging >=20.0
- clang # [win]
- libclang-cpp # [win]
- {{ compiler("c") }}
- {{ compiler("cxx") }}
run:
- python
- {{ pin_compatible('numpy') }}
Expand Down

0 comments on commit 4461633

Please sign in to comment.