Skip to content

Commit

Permalink
rename wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Sep 13, 2023
1 parent bab3887 commit 7181789
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,12 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: openblas
path: libs/openblas*.tar.gz

- uses: actions/upload-artifact@v3
if: matrix.plat == 'i686' || matrix.INTERFACE64 == '1'
with:
name: wheels
path: dist/scipy_openblas*.whl

- name: Upload
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ jobs:
# https://sourceforge.net/p/msys2/discussion/general/thread/b7dfdac8/#3939
if ( "${{ matrix.plat }}" -eq "x86") {
echo "PLAT=i686" >> $env:GITHUB_ENV
echo "WHEEL_PLAT=win32" >> $env:GITHUB_ENV
echo "MSYSTEM=MINGW32" >> $env:GITHUB_ENV
echo "LDFLAGS=-static -static-libgcc" >> $env:GITHUB_ENV
echo "BUILD_BITS=32" >> $env:GITHUB_ENV
} else {
echo "PLAT=x86_64" >> $env:GITHUB_ENV
echo "WHEEL_PLAT=x86_64" >> $env:GITHUB_ENV
echo "MSYSTEM=UCRT64" >> $env:GITHUB_ENV
echo "LDFLAGS=-lucrt -static -static-libgcc" >> $env:GITHUB_ENV
echo "BUILD_BITS=64" >> $env:GITHUB_ENV
Expand Down Expand Up @@ -108,8 +110,10 @@ jobs:
sed -e "s/openblas_get_config64_/openblas_get_config/" -i local/scipy_openblas32/__init__.py
sed -e "s/openblas64/openblas32/" -i local/scipy_openblas32/__main__.py
fi
python -m pip wheel -w dist -vv .
# move the mis-named scipy_openblas64-none-any.whl to a platform-specific name
for f in dist/*.whl; do mv $f "${f/%any.whl/$WHEEL_PLAT.whl}"; done
- name: Set up different Python
uses: actions/setup-python@v4
Expand All @@ -119,10 +123,12 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: openblas
path: builds/openblas*.zip

- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/scipy_openblas*.whl

- name: Test 64-bit interface wheel
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "scipy_openblas64"
version = "0.3.23"
version = "0.3.23.293"
requires-python = ">=3.7"
description = "Provides OpenBLAS for python packaging"
readme = "README.md"
Expand Down
5 changes: 4 additions & 1 deletion travis-ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ python3.7 -m pip wheel -w dist -vv .

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

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

0 comments on commit 7181789

Please sign in to comment.