Skip to content

Commit a64cd45

Browse files
Fix Windows before-build to use bash syntax (cibuildwheel uses bash on Windows)
1 parent 6d6dfb4 commit a64cd45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyproject-pypi.toml.j2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,10 @@ environment = { MOMENTUM_BUILD_WITH_FBXSDK = "OFF" }
277277
# Disable build isolation to ensure CMAKE_PREFIX_PATH is properly passed to CMake
278278
build-frontend = "pip; args: --no-build-isolation"
279279
# Install build dependencies before building (since we disabled build isolation)
280+
# Note: cibuildwheel runs before-build scripts in bash even on Windows, so use bash syntax
280281
before-build = """
281-
echo Debug: CMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH%
282-
dir %CMAKE_PREFIX_PATH%\\Library\\lib\\cmake\\Ceres 2>nul || echo Ceres cmake dir not found
282+
echo "Debug: CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH"
283+
ls -la "$CMAKE_PREFIX_PATH/Library/lib/cmake/Ceres" 2>/dev/null || echo "Ceres cmake dir not found"
283284
pip install scikit-build-core pybind11 setuptools-scm
284285
pip install "torch>=2.8.0,<2.9" --index-url https://download.pytorch.org/whl/cpu
285286
"""

0 commit comments

Comments
 (0)