-
Notifications
You must be signed in to change notification settings - Fork 0
Fix Windows builds: handle scipy-openblas64 ILP64 interface and MSVC incompatibilities #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f9b160e
933e15f
9b0992a
1ea9b91
47f665d
72b8a88
c052b3f
62d24c5
c2ea444
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| . |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,48 +7,53 @@ extern "C" { | |||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| typedef int lapack_int; | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| // On Windows with scipy-openblas64, symbols have scipy_ prefix and 64_ suffix | ||||||||||||||||||||||||||||||||
| #if defined(_WIN32) || defined(_WIN64) | ||||||||||||||||||||||||||||||||
| #define FORTRAN_WRAPPER(name) scipy_##name##64_ | ||||||||||||||||||||||||||||||||
| #else | ||||||||||||||||||||||||||||||||
| #define FORTRAN_WRAPPER(name) name##_ | ||||||||||||||||||||||||||||||||
|
Comment on lines
+10
to
14
|
||||||||||||||||||||||||||||||||
| // On Windows with scipy-openblas64, symbols have scipy_ prefix and 64_ suffix | |
| #if defined(_WIN32) || defined(_WIN64) | |
| #define FORTRAN_WRAPPER(name) scipy_##name##64_ | |
| #else | |
| #define FORTRAN_WRAPPER(name) name##_ | |
| // On Windows with scipy-openblas64, symbols have scipy_ prefix and 64_ suffix. | |
| // Enable this mangling only when explicitly requested via build macros. | |
| #if defined(_WIN32) || defined(_WIN64) | |
| #if defined(EASYSBA_USE_SCIPY_OPENBLAS64) || defined(EASYSBA_LAPACK_ILP64) | |
| #define FORTRAN_WRAPPER(name) scipy_##name##64_ | |
| #else | |
| #define FORTRAN_WRAPPER(name) name##_ | |
| #endif | |
| #else | |
| #define FORTRAN_WRAPPER(name) name##_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inline
python -cone-liner has nested quoting and positionalsys.argvusage, which is easy to break when edited and hard to troubleshoot in CI logs. A more maintainable approach is to move this logic into a small repository script (or a dedicated module entry point) and invoke that fromrepair-wheel-command, keeping the TOML simple and reducing quoting/escaping risk.