Skip to content

Commit

Permalink
feat: Use conda-forge cross-compilation to improve the build process (#6
Browse files Browse the repository at this point in the history
)

* 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.
  • Loading branch information
matthewfeickert committed May 10, 2024
1 parent 742ceca commit 156f8b0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,25 @@ 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
- make
- patch
- swig
host:
- python-build # see comment in build script section
- cgal-cpp # headers and CGALv5
- gmp # shared library
- pip
Expand Down

0 comments on commit 156f8b0

Please sign in to comment.