Skip to content

Commit 6f32deb

Browse files
authored
Merge pull request #135 from mattip/wheel-name
wheel name must be scipy-openblas not scipy_openblas
2 parents 7556eb1 + 83955ce commit 6f32deb

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
fi
105105
if [[ "${INTERFACE64}" != "1" ]]; then
106106
mv local/scipy_openblas64 local/scipy_openblas32
107-
# rewrite the name of the project to scipy_openblas32
107+
# rewrite the name of the project to scipy-openblas32
108108
# this is a hack, but apparently there is no other way to change the name
109109
# of a pyproject.toml project
110110
sed -e "s/openblas64/openblas32/" -i pyproject.toml

pyproject.toml

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

99
[project]
10-
name = "scipy_openblas64"
11-
version = "0.3.26.0.2"
10+
name = "scipy-openblas64"
11+
version = "0.3.26.0.3"
1212
requires-python = ">=3.7"
1313
description = "Provides OpenBLAS for python packaging"
1414
readme = "README.md"
@@ -21,6 +21,7 @@ classifiers = [
2121
# ]
2222
# maintainers = [
2323
# ]
24+
license = {file = "LICENSE.txt"}
2425

2526
[project.urls]
2627
homepage = "https://github.com/MacPython/openblas-libs"

tools/build_wheel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ "$?" != "0" ]; then
1010
# inside docker
1111
cd /openblas
1212
fi
13-
PYTHON=python3.9
13+
PYTHON=${PYTHON:-python3.9}
1414

1515
mkdir -p local/openblas
1616
mkdir -p dist

tools/local_build.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
# Replicate the workflow from posix.yml locally on posix
22
# This may bitrot, compare it to the original file before using
33

4+
set -e
45

56
# Set extra env
6-
if [ "uname -m" == "x86_64" ]; then
7+
if [[ $(uname -m) == "x86_64" ]]; then
8+
echo got x86_64
79
export TRAVIS_OS_NAME=ubuntu-latest
810
export PLAT=x86_64
911
# export PLAT=i86
1012
DOCKER_TEST_IMAGE=multibuild/xenial_${PLAT}
13+
elif [[ $(uname -m) == arm64 ]]; then
14+
echo got arm64
15+
exit -1
1116
else
17+
echo got nothing
18+
exit -1
1219
export TRAVIS_OS_NAME=osx
1320
export LDFLAGS="-L/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib"
1421
export LIBRARY_PATH="-L/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib"
1522
export PLAT=x86_64
1623
# export PLAT=arm64
1724
export SUFFIX=gf_c469a42
18-
1925
fi
2026
export REPO_DIR=OpenBLAS
2127
export OPENBLAS_COMMIT="v0.3.26"
@@ -32,6 +38,9 @@ function install_virtualenv {
3238
}
3339

3440
function build_openblas {
41+
if [[ -z VIRTUAL_ENV ]]; then
42+
echo "must be run in a virtualenv"
43+
fi
3544
# Build OpenBLAS
3645
set -xeo pipefail
3746
if [ "$PLAT" == "arm64" ]; then
@@ -56,4 +65,4 @@ function build_openblas {
5665
}
5766

5867
# install_virtualenv
59-
# build_openblas
68+
build_openblas

tools/upload_to_anaconda_staging.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ upload_wheels() {
1313
VERSION=$(git describe --tags --abbrev=8)
1414
popd
1515

16+
# if only rename was built-in to bash...
17+
for f in dist/*.whl; do cp $f "${f/scipy_openblas/scipy-openblas}"; done
1618
if [ "$OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN" != "" ]; then
1719
echo "Uploading OpenBLAS $VERSION to anaconda.org/multibuild-wheels-staging"
1820

1921
anaconda -t $OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN upload \
2022
--no-progress --force -u multibuild-wheels-staging \
21-
dist/scipy_openblas*.whl
23+
dist/scipy-openblas*.whl
2224

2325
fi
2426
if [ "$ANACONDA_SCIENTIFIC_PYTHON_UPLOAD" == "" ]; then
@@ -28,7 +30,7 @@ upload_wheels() {
2830

2931
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
3032
--no-progress --force -u scientific-python-nightly-wheels \
31-
dist/scipy_openblas*.whl
33+
dist/scipy-openblas*.whl
3234

3335
tarballs=$(ls -d builds/openblas*.zip libs/openblas*.tar.gz 2>/dev/null)
3436
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \

0 commit comments

Comments
 (0)