Skip to content

Commit 8bb8a5e

Browse files
authored
Merge pull request #200 from Harishmcw/build_steps_win_arm64
Skip extra linker flags on Windows ARM64 in get_pkg_config()
2 parents a9daa2a + 18e8a99 commit 8bb8a5e

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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`
1+
- [ ] 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)

local/scipy_openblas64/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pathlib import Path
88
import sys
99
from textwrap import dedent
10-
10+
import platform
1111

1212
_HERE = Path(__file__).resolve().parent
1313

@@ -68,8 +68,11 @@ def get_pkg_config(use_preloading=False):
6868
``f"-L{get_library()}" so that at runtime this module must be imported before
6969
the target module
7070
"""
71+
machine = platform.machine().lower()
72+
extralib = ""
7173
if sys.platform == "win32":
72-
extralib = "-defaultlib:advapi32 -lgfortran -lquadmath"
74+
if machine != "arm64":
75+
extralib = "-defaultlib:advapi32 -lgfortran -lquadmath"
7376
libs_flags = f"-L${{libdir}} -l{get_library()}"
7477
else:
7578
extralib = f"-lm -lpthread -lgfortran -lquadmath -L${{libdir}} -l{get_library()}"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99
[project]
1010
name = "scipy-openblas64"
1111
# v0.3.29
12-
version = "0.3.29.265.0"
12+
version = "0.3.29.265.1"
1313
requires-python = ">=3.7"
1414
description = "Provides OpenBLAS for python packaging"
1515
readme = "README.md"

0 commit comments

Comments
 (0)