-
Notifications
You must be signed in to change notification settings - Fork 0
Scipy openblas #5
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 3 commits
03721bc
63613a3
2d749e7
e608e37
0d52a88
6105cd9
b4b7546
29e6082
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 |
|---|---|---|
|
|
@@ -6,14 +6,15 @@ build-backend = "setuptools.build_meta" | |
| name = "easysba" | ||
| version = "0.1.0" | ||
| description = "Python bindings for easySBA" | ||
| readme = "README.md" | ||
| requires-python = ">=3.11" | ||
| dependencies = ["numpy>=1.20"] | ||
|
|
||
| [tool.cibuildwheel] | ||
| build-frontend = "build" | ||
| skip = "*-musllinux* *-win32" | ||
| test-skip = "*" | ||
|
|
||
| # Default environment for Linux | ||
| environment = { EASYSBA_LAPACK_LIBS = "openblas" } | ||
|
|
||
| [tool.cibuildwheel.linux] | ||
|
|
@@ -22,14 +23,12 @@ before-all = "yum -y install openblas-devel lapack-devel" | |
| [tool.cibuildwheel.macos] | ||
| environment = { EASYSBA_USE_ACCELERATE = "1", EASYSBA_LAPACK_LIBS = "" } | ||
|
|
||
| # [tool.cibuildwheel.windows] | ||
| # environment = { EASYSBA_LAPACK_LIBS = "openblas" } | ||
|
|
||
| [tool.cibuildwheel.windows] | ||
| # Install delvewheel to bundle the DLL into the wheel | ||
| before-build = "pip install delvewheel" | ||
| repair-wheel-command = "delvewheel repair --add-path C:\\vcpkg\\installed\\x64-windows\\bin -w {dest_dir} {wheel}" | ||
| # 1. Install scipy-openblas (the lib) and delvewheel (to bundle the DLL) | ||
| before-build = "pip install scipy-openblas delvewheel" | ||
|
||
|
|
||
| # 2. Extract paths from scipy-openblas and set them for the compiler | ||
| environment = { EASYSBA_LAPACK_LIBS="openblas", INCLUDE="$(python -c \"import scipy_openblas; print(scipy_openblas.get_include_dir())\");$INCLUDE", LIB="$(python -c \"import scipy_openblas; print(scipy_openblas.get_lib_dir())\");$LIB" } | ||
|
||
|
|
||
| [tool.cibuildwheel.windows.environment] | ||
| # Match the filename vcpkg actually produces: libopenblas | ||
| EASYSBA_LAPACK_LIBS = "libopenblas" | ||
| # 3. Repair the wheel: this bundles openblas.dll into the .whl file | ||
| repair-wheel-command = "delvewheel repair --add-path $(python -c \"import scipy_openblas; print(scipy_openblas.get_lib_dir())\") -w {dest_dir} {wheel}" | ||
|
alexlib marked this conversation as resolved.
Outdated
|
||
Uh oh!
There was an error while loading. Please reload this page.