@@ -51,16 +51,33 @@ repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel} --exclude libcud
5151before-test = " pip install torch --index-url https://download.pytorch.org/whl/cpu"
5252
5353[tool .cibuildwheel .windows ]
54- # Activate VS environment so torch.compile can find the compiler.
55- before-test = ' call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"'
54+ # Activate VS environment and run extensive diagnostics
55+ before-test = '''
56+ echo "--- Diagnostics before vcvars64.bat ---"
57+ echo "PATH is:"
58+ echo %PATH%
59+ echo "Attempting to locate cl.exe:"
60+ where cl
61+ echo "Installed packages:"
62+ pip freeze
63+ echo "-----------------------------------------"
64+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
65+ echo "--- Diagnostics after vcvars64.bat ---"
66+ echo "PATH is:"
67+ echo %PATH%
68+ echo "INCLUDE is:"
69+ echo %INCLUDE%
70+ echo "LIB is:"
71+ echo %LIB%
72+ echo "Attempting to locate cl.exe:"
73+ where cl
74+ echo "Attempting to run cl.exe:"
75+ cl /help
76+ echo "--------------------------------------"
77+ '''
5678test-command = " pytest tests/test_scalar.py"
5779
5880[tool .cibuildwheel .macos ]
59- # Install libomp for linking during build and for runtime in the test env.
60- before-build = " brew install libomp"
61- before-test = " brew install libomp"
62- # Set flags to find and enable OpenMP during the build.
63- environment = { CFLAGS =" -Xclang -fopenmp -I$(brew --prefix libomp)/include" , LDFLAGS =" -L$(brew --prefix libomp)/lib" }
6481test-command = " pytest tests/test_scalar.py"
6582
6683[tool .scikit-build .sdist ]
0 commit comments