From fb8d6d70f7a6e172718d1d992b6f7fa325901a2a Mon Sep 17 00:00:00 2001 From: mattip Date: Sun, 8 Jun 2025 23:19:46 +0300 Subject: [PATCH] fix camke and README --- .github/workflows/windows.yml | 2 ++ README.md | 27 ++++++++++++++++++++++----- pyproject.toml | 2 +- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 4e284029..3d5a2be9 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -112,6 +112,8 @@ jobs: else rm -rf local/scipy_openblas64/32 fi + sed -e "s/bin/lib/" -i local/scipy_openblas64/lib/cmake/openblas/OpenBLASConfig.cmake + sed -e "s/dll/lib/" -i local/scipy_openblas64/lib/cmake/openblas/OpenBLASConfig.cmake if [[ "${INTERFACE64}" != "1" ]]; then mv local/scipy_openblas64 local/scipy_openblas32 # rewrite the name of the project to scipy-openblas32 diff --git a/README.md b/README.md index 1fa566e9..f1ba0ba2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,24 @@ -# OpenBLAS - -We build OpenBLAS on Travis-CI (for linux aarch64, ppc64, s390x) and github actions -for linux, windows, macOS x86_64 and macOS arm64. +# Wheels containing OpenBLAS + +1. The primary purposes of the scipy-openblas32 and scipy-openblas64 wheels are: + - (a) to use them as build and runtime dependencies in CI and local development for NumPy and SciPy + - (b) to be vendored into NumPy and SciPy wheels + - (c) possibly, in the future, being used as runtime dependencies for NumPy + and/or SciPy. +2. Other Python projects are also welcome to use these wheels for 1(a) and 1(b). + - Please note that there is no strong guarantee of backwards compatibility + for the symbol names nor the small Python API shipped in the wheels to + enable linking against the shared library. If you want to use them, you + should probably use `==` pins in the relevant CI/lock files, like NumPy + and SciPy also do. + +> [!WARNING] +> Please do not add a runtime dependency on these wheels if you're not +> NumPy or SciPy. This is not supported and likely to lead to breakage or symbol +> conflicts due to either changes in this repository or due to NumPy or SciPy +> starting to depend on a particular version of this package. + +# OpenBLAS library build process First, tarballs are built using `do_build_lib` in `tools/build_steps.sh` (on posix in a docker and drectly on macos) or `build_openblas.sh` on windows. @@ -34,4 +51,4 @@ project like SciPy or NumPy: ## Runtime - importing will load openblas into the executable and provide the openblas - symbols. + symbols to the exectuable. diff --git a/pyproject.toml b/pyproject.toml index ee5d57a0..5a2de781 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta" [project] name = "scipy-openblas64" # v0.3.29 -version = "0.3.29.265.1" +version = "0.3.29.265.2" requires-python = ">=3.7" description = "Provides OpenBLAS for python packaging" readme = "README.md"