Skip to content

Commit 7181789

Browse files
committed
rename wheels
1 parent bab3887 commit 7181789

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.github/workflows/posix.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,12 @@ jobs:
120120
121121
- uses: actions/upload-artifact@v3
122122
with:
123+
name: openblas
123124
path: libs/openblas*.tar.gz
124125

125126
- uses: actions/upload-artifact@v3
126-
if: matrix.plat == 'i686' || matrix.INTERFACE64 == '1'
127127
with:
128+
name: wheels
128129
path: dist/scipy_openblas*.whl
129130

130131
- name: Upload

.github/workflows/windows.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ jobs:
4141
# https://sourceforge.net/p/msys2/discussion/general/thread/b7dfdac8/#3939
4242
if ( "${{ matrix.plat }}" -eq "x86") {
4343
echo "PLAT=i686" >> $env:GITHUB_ENV
44+
echo "WHEEL_PLAT=win32" >> $env:GITHUB_ENV
4445
echo "MSYSTEM=MINGW32" >> $env:GITHUB_ENV
4546
echo "LDFLAGS=-static -static-libgcc" >> $env:GITHUB_ENV
4647
echo "BUILD_BITS=32" >> $env:GITHUB_ENV
4748
} else {
4849
echo "PLAT=x86_64" >> $env:GITHUB_ENV
50+
echo "WHEEL_PLAT=x86_64" >> $env:GITHUB_ENV
4951
echo "MSYSTEM=UCRT64" >> $env:GITHUB_ENV
5052
echo "LDFLAGS=-lucrt -static -static-libgcc" >> $env:GITHUB_ENV
5153
echo "BUILD_BITS=64" >> $env:GITHUB_ENV
@@ -108,8 +110,10 @@ jobs:
108110
sed -e "s/openblas_get_config64_/openblas_get_config/" -i local/scipy_openblas32/__init__.py
109111
sed -e "s/openblas64/openblas32/" -i local/scipy_openblas32/__main__.py
110112
fi
111-
113+
112114
python -m pip wheel -w dist -vv .
115+
# move the mis-named scipy_openblas64-none-any.whl to a platform-specific name
116+
for f in dist/*.whl; do mv $f "${f/%any.whl/$WHEEL_PLAT.whl}"; done
113117
114118
- name: Set up different Python
115119
uses: actions/setup-python@v4
@@ -119,10 +123,12 @@ jobs:
119123

120124
- uses: actions/upload-artifact@v3
121125
with:
126+
name: openblas
122127
path: builds/openblas*.zip
123128

124129
- uses: actions/upload-artifact@v3
125130
with:
131+
name: wheels
126132
path: dist/scipy_openblas*.whl
127133

128134
- name: Test 64-bit interface wheel

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "scipy_openblas64"
11-
version = "0.3.23"
11+
version = "0.3.23.293"
1212
requires-python = ">=3.7"
1313
description = "Provides OpenBLAS for python packaging"
1414
readme = "README.md"

travis-ci/build_wheel.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ python3.7 -m pip wheel -w dist -vv .
5050

5151
if [ $(uname) == "Darwin" ]; then
5252
python3.7 -m pip install delocate
53-
delocate-wheel dist/*.whl
53+
# move the mis-named scipy_openblas64-none-any.whl to a platform-specific name
54+
for f in dist/*.whl; do mv $f "${f/%any.whl/macosx_10_9_$PLAT.whl}"; done
55+
delocate-wheel -v dist/*.whl
5456
else
5557
auditwheel repair -w dist dist/*.whl
58+
rm dist/scipy_openblas*-none-any.whl
5659
fi
5760

5861
if [ "${PLAT}" == "arm64" ]; then

0 commit comments

Comments
 (0)