From 156f8b034bdfed4b80ecd4cb31842e7760aed6a1 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Fri, 10 May 2024 18:04:46 -0500 Subject: [PATCH] feat: Use conda-forge cross-compilation to improve the build process (#6) * Use the cross-compilation selector, '[build_platform != target_platform]', to simplify the build process by just doing a pip install. - c.f. https://conda-forge.org/docs/maintainer/knowledge_base/#details-about-cross-compiled-python-packages * Add the cross-python and python build dependency. * Remove the python-build host dependency. * Bump the build number. --- recipe/meta.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 8844cfd..882bde9 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -14,21 +14,18 @@ source: - 0002-Patch-fastjet-contrib-Makefile.in.patch build: - number: 4 + number: 5 skip: true # [not linux] script: - # Use 'python -m build' to build a wheel first to avoid having the overlinking - # check fail by looking in the wrong CPython build_artifacts directory. - # It is unclear if this is something that conda-forge should know how to avoid - # or if this could be fixed by improvements in the fastjet build system. - - {{ PYTHON }} -m build --no-isolation . - - {{ PYTHON }} -m pip install --verbose --verbose ./dist/fastjet-*.whl + - {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation requirements: build: - {{ compiler('c') }} - {{ compiler('cxx') }} - {{ stdlib("c") }} + - cross-python_{{ target_platform }} # [build_platform != target_platform] + - python # [build_platform != target_platform] - autoconf - automake - libtool @@ -36,7 +33,6 @@ requirements: - patch - swig host: - - python-build # see comment in build script section - cgal-cpp # headers and CGALv5 - gmp # shared library - pip