We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9daa2a commit e1822c2Copy full SHA for e1822c2
local/scipy_openblas64/__init__.py
@@ -7,7 +7,7 @@
7
from pathlib import Path
8
import sys
9
from textwrap import dedent
10
-
+import platform
11
12
_HERE = Path(__file__).resolve().parent
13
@@ -68,8 +68,11 @@ def get_pkg_config(use_preloading=False):
68
``f"-L{get_library()}" so that at runtime this module must be imported before
69
the target module
70
"""
71
+ machine = platform.machine().lower()
72
+ extralib = ""
73
if sys.platform == "win32":
- extralib = "-defaultlib:advapi32 -lgfortran -lquadmath"
74
+ if machine != "arm64":
75
+ extralib = "-defaultlib:advapi32 -lgfortran -lquadmath"
76
libs_flags = f"-L${{libdir}} -l{get_library()}"
77
else:
78
extralib = f"-lm -lpthread -lgfortran -lquadmath -L${{libdir}} -l{get_library()}"
0 commit comments