Skip to content

Commit

Permalink
allow disabling hwloc
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Maas committed Nov 29, 2024
1 parent 303d729 commit 9e5e1f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python_build_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
CIBW_BUILD: cp3*-manylinux*
run: |
# run cmake to create pyproject.toml from pyproject.toml.in
cmake -B configure_python --preset=minimal -DKAHYPAR_SETUP_PYTHON=On -DKAHYPAR_TBB_DIR=$TBB_INSTALL_DIR
cmake -B configure_python --preset=minimal -DKAHYPAR_SETUP_PYTHON=On -DKAHYPAR_TBB_DIR=$TBB_INSTALL_DIR -DKAHYPAR_DISABLE_HWLOC=Off
rm -rf configure_python
python3 -m cibuildwheel --output-dir wheels
Expand All @@ -58,7 +58,7 @@ jobs:

- name: Install Dependencies
run: |
brew install tbb boost hwloc pipx
brew install tbb boost pipx
- name: Build Python Wheels
env:
Expand All @@ -68,7 +68,7 @@ jobs:
MACOSX_DEPLOYMENT_TARGET: 10.13
run: |
# run cmake to create pyproject.toml from pyproject.toml.in
cmake -B configure_python --preset=minimal -DKAHYPAR_SETUP_PYTHON=On -DKAHYPAR_TBB_DIR=$TBB_INSTALL_DIR
cmake -B configure_python --preset=minimal -DKAHYPAR_SETUP_PYTHON=On -DKAHYPAR_TBB_DIR=$TBB_INSTALL_DIR -DKAHYPAR_DISABLE_HWLOC=On
rm -rf configure_python
pipx run cibuildwheel --output-dir wheels
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ cmake.args = [
"-DKAHYPAR_DOWNLOAD_BOOST=ON",
"-DKAHYPAR_DOWNLOAD_TBB=ON",
"-DKAHYPAR_TBB_DIR=@KAHYPAR_TBB_DIR@",
"-DKAHYPAR_DISABLE_HWLOC=@KAHYPAR_DISABLE_HWLOC@",
]
install.components = ["MtKaHyPar_Python"]

Expand All @@ -48,7 +49,6 @@ repair-wheel-command = """
"""

[tool.cibuildwheel.macos]
before-build = "brew install hwloc"
repair-wheel-command = """
export DYLD_LIBRARY_PATH="@KAHYPAR_TBB_DIR@:$DYLD_LIBRARY_PATH"
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
Expand Down

0 comments on commit 9e5e1f0

Please sign in to comment.