Skip to content

Commit a82f2d0

Browse files
authored
Merge pull request #255 from mattip/neoverse2
update to 0.3.31-126-g55b16e59
2 parents 720868d + 6c399ae commit a82f2d0

4 files changed

Lines changed: 19 additions & 11 deletions

File tree

OpenBLAS

ci-repair-wheel.sh

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,22 @@ else
2121

2222
# Add an RPATH to libgfortran:
2323
# https://github.com/pypa/auditwheel/issues/451
24-
if [ "$MB_ML_LIBC" == "musllinux" ]; then
25-
apk add zip
26-
else
27-
yum install -y zip
28-
fi
29-
unzip $1/*.whl "*libgfortran*"
24+
# Use zipfile since the manylinux images do not have `zip`
25+
python3 -c "
26+
import re, sys, zipfile, pathlib
27+
whl = next(pathlib.Path(sys.argv[1]).glob('*.whl'))
28+
with zipfile.ZipFile(whl, 'a') as z:
29+
members = [m for m in z.namelist() if re.search(r'libgfortran', m)]
30+
z.extractall(members=members)
31+
" "$1"
3032
patchelf --force-rpath --set-rpath '$ORIGIN' */lib/libgfortran*
31-
zip $1/*.whl */lib/libgfortran*
33+
python3 -c "
34+
import sys, zipfile, pathlib, glob
35+
whl = next(pathlib.Path(sys.argv[1]).glob('*.whl'))
36+
with zipfile.ZipFile(whl, 'a') as z:
37+
for f in glob.glob('*/lib/libgfortran*'):
38+
z.write(f)
39+
" "$1"
3240
mkdir -p /output
3341
# copy libs/openblas*.tar.gz to dist/
3442
cp libs/openblas*.tar.gz /output/

openblas_commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.3.31-22-g5ffbf38b
1+
v0.3.31-126-g55b16e59

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "scipy-openblas64"
11-
# v0.3.31-22-g5ffbf38b
12-
version = "0.3.31.22.1"
11+
# v0.3.31-126-g55b16e59
12+
version = "0.3.31.126.0"
1313
requires-python = ">=3.7"
1414
description = "Provides OpenBLAS for python packaging"
1515
readme = "README.md"

0 commit comments

Comments
 (0)