Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions ci-repair-wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,19 @@ with zipfile.ZipFile(whl, 'a') as z:
python3 -c "
import sys, zipfile, pathlib, glob
whl = next(pathlib.Path(sys.argv[1]).glob('*.whl'))
with zipfile.ZipFile(whl, 'a') as z:
for f in glob.glob('*/lib/libgfortran*'):
z.write(f)
" "$1"
patched = {f: pathlib.Path(f).read_bytes() for f in glob.glob('*/lib/libgfortran*')}

# Read all original entries, replacing patched one
entries = {}
with zipfile.ZipFile(whl, 'r') as z:
for item in z.infolist():
entries[item] = patched.get(item.filename, z.read(item.filename))

# Rewrite the archive
with zipfile.ZipFile(whl, 'w', compression=zipfile.ZIP_DEFLATED) as z:
for item, data in entries.items():
z.writestr(item, data)
" "$1"
mkdir -p /output
# copy libs/openblas*.tar.gz to dist/
cp libs/openblas*.tar.gz /output/
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "scipy-openblas64"
# v0.3.31-126-g55b16e59
version = "0.3.31.126.0"
version = "0.3.31.126.1"
requires-python = ">=3.7"
description = "Provides OpenBLAS for python packaging"
readme = "README.md"
Expand Down
Loading