File tree Expand file tree Collapse file tree 5 files changed +21
-9
lines changed Expand file tree Collapse file tree 5 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104
104
fi
105
105
if [[ "${INTERFACE64}" != "1" ]]; then
106
106
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
108
108
# this is a hack, but apparently there is no other way to change the name
109
109
# of a pyproject.toml project
110
110
sed -e "s/openblas64/openblas32/" -i pyproject.toml
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ requires = [
7
7
build-backend = " setuptools.build_meta"
8
8
9
9
[project ]
10
- name = " scipy_openblas64 "
11
- version = " 0.3.26.0.2 "
10
+ name = " scipy-openblas64 "
11
+ version = " 0.3.26.0.3 "
12
12
requires-python = " >=3.7"
13
13
description = " Provides OpenBLAS for python packaging"
14
14
readme = " README.md"
@@ -21,6 +21,7 @@ classifiers = [
21
21
# ]
22
22
# maintainers = [
23
23
# ]
24
+ license = {file = " LICENSE.txt" }
24
25
25
26
[project .urls ]
26
27
homepage = " https://github.com/MacPython/openblas-libs"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ if [ "$?" != "0" ]; then
10
10
# inside docker
11
11
cd /openblas
12
12
fi
13
- PYTHON=python3.9
13
+ PYTHON=${PYTHON :- python3.9}
14
14
15
15
mkdir -p local/openblas
16
16
mkdir -p dist
Original file line number Diff line number Diff line change 1
1
# Replicate the workflow from posix.yml locally on posix
2
2
# This may bitrot, compare it to the original file before using
3
3
4
+ set -e
4
5
5
6
# Set extra env
6
- if [ " uname -m" == " x86_64" ]; then
7
+ if [[ $( uname -m) == " x86_64" ]]; then
8
+ echo got x86_64
7
9
export TRAVIS_OS_NAME=ubuntu-latest
8
10
export PLAT=x86_64
9
11
# export PLAT=i86
10
12
DOCKER_TEST_IMAGE=multibuild/xenial_${PLAT}
13
+ elif [[ $( uname -m) == arm64 ]]; then
14
+ echo got arm64
15
+ exit -1
11
16
else
17
+ echo got nothing
18
+ exit -1
12
19
export TRAVIS_OS_NAME=osx
13
20
export LDFLAGS=" -L/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib"
14
21
export LIBRARY_PATH=" -L/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib"
15
22
export PLAT=x86_64
16
23
# export PLAT=arm64
17
24
export SUFFIX=gf_c469a42
18
-
19
25
fi
20
26
export REPO_DIR=OpenBLAS
21
27
export OPENBLAS_COMMIT=" v0.3.26"
@@ -32,6 +38,9 @@ function install_virtualenv {
32
38
}
33
39
34
40
function build_openblas {
41
+ if [[ -z VIRTUAL_ENV ]]; then
42
+ echo " must be run in a virtualenv"
43
+ fi
35
44
# Build OpenBLAS
36
45
set -xeo pipefail
37
46
if [ " $PLAT " == " arm64" ]; then
@@ -56,4 +65,4 @@ function build_openblas {
56
65
}
57
66
58
67
# install_virtualenv
59
- # build_openblas
68
+ build_openblas
Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ upload_wheels() {
13
13
VERSION=$( git describe --tags --abbrev=8)
14
14
popd
15
15
16
+ # if only rename was built-in to bash...
17
+ for f in dist/* .whl; do cp $f " ${f/ scipy_openblas/ scipy-openblas} " ; done
16
18
if [ " $OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN " != " " ]; then
17
19
echo " Uploading OpenBLAS $VERSION to anaconda.org/multibuild-wheels-staging"
18
20
19
21
anaconda -t $OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN upload \
20
22
--no-progress --force -u multibuild-wheels-staging \
21
- dist/scipy_openblas * .whl
23
+ dist/scipy-openblas * .whl
22
24
23
25
fi
24
26
if [ " $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD " == " " ]; then
@@ -28,7 +30,7 @@ upload_wheels() {
28
30
29
31
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
30
32
--no-progress --force -u scientific-python-nightly-wheels \
31
- dist/scipy_openblas * .whl
33
+ dist/scipy-openblas * .whl
32
34
33
35
tarballs=$( ls -d builds/openblas* .zip libs/openblas* .tar.gz 2> /dev/null)
34
36
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
You can’t perform that action at this time.
0 commit comments