diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 2408eb83..f73235c5 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1 +1 @@ -- [ ] I updated the version in pyproject.toml and made sure it matches `git describe --tags --abbrev=8` in OpenBLAS at the `OPENBLAS_COMMIT` +- [ ] I updated the package version in pyproject.toml and made sure the first 3 numbers match `git describe --tags --abbrev=8` in OpenBLAS at the `OPENBLAS_COMMIT`. If I did not update `OPENBLAS_COMMIT`, I incremented the wheel build number (i.e. 0.3.29.0.0 to 0.3.29.0.1) diff --git a/local/scipy_openblas64/__init__.py b/local/scipy_openblas64/__init__.py index 5fdec55a..3d34ef76 100644 --- a/local/scipy_openblas64/__init__.py +++ b/local/scipy_openblas64/__init__.py @@ -7,7 +7,7 @@ from pathlib import Path import sys from textwrap import dedent - +import platform _HERE = Path(__file__).resolve().parent @@ -68,8 +68,11 @@ def get_pkg_config(use_preloading=False): ``f"-L{get_library()}" so that at runtime this module must be imported before the target module """ + machine = platform.machine().lower() + extralib = "" if sys.platform == "win32": - extralib = "-defaultlib:advapi32 -lgfortran -lquadmath" + if machine != "arm64": + extralib = "-defaultlib:advapi32 -lgfortran -lquadmath" libs_flags = f"-L${{libdir}} -l{get_library()}" else: extralib = f"-lm -lpthread -lgfortran -lquadmath -L${{libdir}} -l{get_library()}" diff --git a/pyproject.toml b/pyproject.toml index 7b2fa54c..ee5d57a0 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.0" +version = "0.3.29.265.1" requires-python = ">=3.7" description = "Provides OpenBLAS for python packaging" readme = "README.md"