Skip to content

Commit fef51e6

Browse files
Add debug output for CMAKE_PREFIX_PATH and simplify cibuildwheel workflow
- Add debug echo for CMAKE_PREFIX_PATH in macOS before-build - Remove workflow-level CIBW_ENVIRONMENT overrides, rely on pyproject.toml - The {project} placeholder in pyproject.toml should be expanded by cibuildwheel
1 parent ff86e70 commit fef51e6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,7 @@ jobs:
5858
- name: Build wheels
5959
uses: pypa/cibuildwheel@v2.22.0
6060
# Configuration is in pyproject.toml (generated from pyproject-pypi.toml.j2)
61-
env:
62-
# Override environment for macOS/Windows to use cibuildwheel's {project} placeholder
63-
# {project} expands to the project directory path at build time
64-
CIBW_ENVIRONMENT_MACOS: "CMAKE_PREFIX_PATH={project}/.pixi/envs/default MOMENTUM_BUILD_WITH_FBXSDK=OFF"
65-
CIBW_ENVIRONMENT_WINDOWS: "CMAKE_PREFIX_PATH={project}/.pixi/envs/default MOMENTUM_BUILD_WITH_FBXSDK=OFF"
61+
# CMAKE_PREFIX_PATH is set via environment in pyproject.toml using {project} placeholder
6662

6763
- uses: actions/upload-artifact@v4
6864
with:

pyproject-pypi.toml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ build-frontend = "pip; args: --no-build-isolation"
260260
before-build = """
261261
pip install scikit-build-core pybind11 setuptools-scm
262262
pip install "torch>=2.8.0,<2.9" --index-url https://download.pytorch.org/whl/cpu
263+
# Set CMAKE_PREFIX_PATH explicitly
264+
export CMAKE_PREFIX_PATH="{project}/.pixi/envs/default"
265+
echo "CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH"
263266
"""
264267
environment = { CMAKE_PREFIX_PATH = "{project}/.pixi/envs/default", MOMENTUM_BUILD_WITH_FBXSDK = "OFF" }
265268

0 commit comments

Comments
 (0)