Skip to content

Commit 8966f0f

Browse files
Fix CMAKE_PREFIX_PATH - remove before-build export that was overwriting correct path
The {project} placeholder only works in cibuildwheel's environment configuration, not in shell scripts like before-build. The export statement was overwriting the correctly expanded CMAKE_PREFIX_PATH from the environment config.
1 parent fef51e6 commit 8966f0f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pyproject-pypi.toml.j2

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ 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"
266263
"""
267264
environment = { CMAKE_PREFIX_PATH = "{project}/.pixi/envs/default", MOMENTUM_BUILD_WITH_FBXSDK = "OFF" }
268265

0 commit comments

Comments
 (0)