Skip to content

Commit 6d6dfb4

Browse files
Fix Windows CMAKE_PREFIX_PATH path format and add debug output
1 parent 24b508f commit 6d6dfb4

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,15 @@ jobs:
5151
if: runner.os != 'Linux'
5252
run: |
5353
pixi install -e default
54-
echo "CMAKE_PREFIX_PATH=$PWD/.pixi/envs/default" >> $GITHUB_ENV
54+
# Convert path to native format for Windows
55+
if [ "$RUNNER_OS" == "Windows" ]; then
56+
CMAKE_PREFIX_PATH=$(cygpath -w "$PWD/.pixi/envs/default")
57+
else
58+
CMAKE_PREFIX_PATH="$PWD/.pixi/envs/default"
59+
fi
60+
echo "CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH" >> $GITHUB_ENV
5561
echo "CONDA_PREFIX=$PWD/.pixi/envs/default" >> $GITHUB_ENV
62+
echo "Debug: Set CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH"
5663
shell: bash
5764

5865
- name: Build wheels

pyproject-pypi.toml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ environment = { MOMENTUM_BUILD_WITH_FBXSDK = "OFF" }
278278
build-frontend = "pip; args: --no-build-isolation"
279279
# Install build dependencies before building (since we disabled build isolation)
280280
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
281283
pip install scikit-build-core pybind11 setuptools-scm
282284
pip install "torch>=2.8.0,<2.9" --index-url https://download.pytorch.org/whl/cpu
283285
"""

0 commit comments

Comments
 (0)