Commit 65db6ad
committed
Fix Windows CI failures: MSVC-specific settings and debug prelude
- Remove /pthread from Windows CMAKE_CXX_FLAGS (MSVC doesn't support it)
- Replace with /O2 /EHsc for proper MSVC optimization and exception handling
- Add CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>DLL
- Add CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE for static lib placement
- Add CIBW_TEST_COMMAND_WINDOWS with debug prelude to diagnose import issues
- Use backslashes in pytest path on Windows (pytest {project}\\tests -vv)
Debug prelude will print:
- Python version and platform
- python_prtree installation directory
- Package contents (to verify PRTree*.pyd exists)
- Import success/failure with full traceback
These changes address Windows-specific packaging issues while maintaining
compatibility with Linux/macOS builds. All 123 tests pass locally.1 parent ff48f6a commit 65db6ad
3 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
0 commit comments