Skip to content

Commit 5b76f89

Browse files
committed
bump wheel version, add license files, minor fixes (from review)
1 parent b9a655f commit 5b76f89

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

.github/workflows/windows.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
rm local/scipy_openblas64/lib/*.a
9797
rm local/scipy_openblas64/lib/*.exp
9898
rm local/scipy_openblas64/lib/*.def
99+
rm -rf local/scipy_openblas64/lib/pkgconfig
99100
if [[ -d local/scipy_openblas64/64 ]]; then
100101
rm -rf local/scipy_openblas64/64
101102
else
@@ -110,7 +111,7 @@ jobs:
110111
sed -e "s/openblas_get_config64_/openblas_get_config/" -i local/scipy_openblas32/__init__.py
111112
sed -e "s/openblas64/openblas32/" -i local/scipy_openblas32/__main__.py
112113
fi
113-
114+
cat tools/LICENSE_win32.txt >> LICENSE.txt
114115
python -m pip wheel -w dist -vv .
115116
# move the mis-named scipy_openblas64-none-any.whl to a platform-specific name
116117
for f in dist/*.whl; do mv $f "${f/%any.whl/$WHEEL_PLAT.whl}"; done

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ script:
8888
- build_lib "$PLAT" "$INTERFACE64"
8989
- libc=${MB_ML_LIBC:-manylinux}
9090
- docker_image=quay.io/pypa/${libc}${MB_ML_VER}_${PLAT}
91-
- docker run --rm -e INTERFACE64="${INTERFACE64}" -v $(pwd):/openblas $docker_image /bin/bash -xe /openblas/travis-ci/build_wheel.sh
91+
- docker run --rm -e INTERFACE64="${INTERFACE64}" \
92+
-e MB_ML_LIBC="${MB_ML_LIBC}" \
93+
-v $(pwd):/openblas $docker_image \
94+
/bin/bash -xe /openblas/travis-ci/build_wheel.sh
9295

9396
after_success:
9497
# Upload libraries to the shared staging area on anaconda.org

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.293"
11+
version = "0.3.23.293.1"
1212
requires-python = ">=3.7"
1313
description = "Provides OpenBLAS for python packaging"
1414
readme = "README.md"

travis-ci/build_wheel.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,29 @@ if [ "$?" != "0" ]; then
1010
# inside docker
1111
cd /openblas
1212
fi
13+
PYTHON=python3.7
1314

1415
mkdir -p local/openblas
1516
mkdir -p dist
16-
python3.7 -m pip install wheel auditwheel
17+
$PYTHON -m pip install wheel auditwheel
1718

1819
# This will fail if there is more than one file in libs
1920
tar -C local/scipy_openblas64 --strip-components=2 -xf libs/openblas*.tar.gz
2021

2122
# do not package the static libs and symlinks, only take the shared object
2223
find local/scipy_openblas64/lib -maxdepth 1 -type l -delete
2324
rm local/scipy_openblas64/lib/*.a
25+
# Do not package the pkgconfig stuff, use the wheel functionality instead
26+
rm -rf local/scipy_openblas64/lib/pkgconfig
2427
# cleanup from a possible earlier run of the script
2528
rm -f local/scipy_openblas64/lib/libopenblas_python.so
2629
mv local/scipy_openblas64/lib/libopenblas* local/scipy_openblas64/lib/libopenblas_python.so
2730

28-
if [ $(uname) != "Darwin" ]; then
31+
if [ $(uname) == "Darwin" ]; then
32+
cat tools/LICENSE_osx.txt >> LICENSE.txt
33+
else
2934
patchelf --set-soname libopenblas_python.so local/scipy_openblas64/lib/libopenblas_python.so
30-
elif [ "{PLAT}" == "arm64" ]; then
31-
source multibuild/osx_utils.sh
32-
macos_arm64_cross_build_setup
35+
cat tools/LICENSE_linux.txt >> LICENSE.txt
3336
fi
3437

3538
if [ "${INTERFACE64}" != "1" ]; then
@@ -48,12 +51,12 @@ if [ "${INTERFACE64}" != "1" ]; then
4851
fi
4952

5053
rm -rf dist/*
51-
python3.7 -m pip wheel -w dist -vv .
54+
$PYTHON -m pip wheel -w dist -vv .
5255

5356
if [ $(uname) == "Darwin" ]; then
54-
python3.7 -m pip install delocate
57+
$PYTHON -m pip install delocate
5558
# move the mis-named scipy_openblas64-none-any.whl to a platform-specific name
56-
if [ "{PLAT}" == "arm64" ]; then
59+
if [ "${PLAT}" == "arm64" ]; then
5760
for f in dist/*.whl; do mv $f "${f/%any.whl/macosx_11_0_$PLAT.whl}"; done
5861
else
5962
for f in dist/*.whl; do mv $f "${f/%any.whl/macosx_10_9_$PLAT.whl}"; done

0 commit comments

Comments
 (0)