summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2023-05-05 08:25:09 +0300
committermattip <matti.picus@gmail.com>2023-05-05 08:25:09 +0300
commitd8576ca2f92b73b179261cb65cd39ce3fc9bb083 (patch)
tree489c52e1b82010b823aaf47ba5a22b767338a15d /tools
parent39aee7593354422c7b7bfdfa72ae4bae305c4324 (diff)
downloadnumpy-d8576ca2f92b73b179261cb65cd39ce3fc9bb083.tar.gz
BLD: update to OpenBLAS 0.3.23, fix
Diffstat (limited to 'tools')
-rw-r--r--tools/openblas_support.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/tools/openblas_support.py b/tools/openblas_support.py
index 6eafb8106..fd8c6a97a 100644
--- a/tools/openblas_support.py
+++ b/tools/openblas_support.py
@@ -13,8 +13,8 @@ from tempfile import mkstemp, gettempdir
from urllib.request import urlopen, Request
from urllib.error import HTTPError
-OPENBLAS_V = '0.3.21'
-OPENBLAS_LONG = 'v0.3.21'
+OPENBLAS_V = '0.3.23'
+OPENBLAS_LONG = 'v0.3.23'
BASE_LOC = 'https://anaconda.org/multibuild-wheels-staging/openblas-libs'
BASEURL = f'{BASE_LOC}/{OPENBLAS_LONG}/download'
SUPPORTED_PLATFORMS = [
@@ -102,6 +102,9 @@ def download_openblas(target, plat, ilp64):
if osname == "linux":
suffix = get_linux(arch)
typ = 'tar.gz'
+ elif osname == "musllinux":
+ suffix = get_musllinux(arch)
+ typ = 'tar.gz'
elif plat == 'macosx-x86_64':
suffix = 'macosx_10_9_x86_64-gf_c469a42.tar.gz'
typ = 'tar.gz'
@@ -296,15 +299,11 @@ def test_setup(plats):
if not target:
raise RuntimeError(f'Could not setup {plat}')
print('success with', plat, ilp64)
- if osname == 'win':
- if not target.endswith('.a'):
- raise RuntimeError("Not .a extracted!")
- else:
- files = glob.glob(os.path.join(target, "lib", "*.a"))
- if not files:
- raise RuntimeError("No lib/*.a unpacked!")
+ files = glob.glob(os.path.join(target, "lib", "*.a"))
+ if not files:
+ raise RuntimeError("No lib/*.a unpacked!")
finally:
- if target is not None:
+ if target:
if os.path.isfile(target):
os.unlink(target)
else: