Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit cfab7ac

Browse files
authored
Merge pull request #104 from isuruf/universal2
build universal2 wheel
2 parents 08c1bb6 + bea046f commit cfab7ac

File tree

7 files changed

+20
-12
lines changed

7 files changed

+20
-12
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ after_success:
8686
ANACONDA_ORG="multibuild-wheels-staging";
8787
TOKEN=${NUMPY_STAGING_UPLOAD_TOKEN};
8888
fi
89-
- pip install git+https://github.com/Anaconda-Server/anaconda-client;
89+
- pip install git+https://github.com/Anaconda-Server/anaconda-client[email protected];
9090
- if [ -n "${TOKEN}" ] ; then
9191
anaconda -t ${TOKEN} upload -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl;
9292
fi

azure-pipelines.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,14 @@ jobs:
106106
- template: azure/posix.yml
107107
parameters:
108108
name: macOS
109-
vmImage: macOS-10.14
109+
vmImage: macOS-10.15
110110
matrix:
111111
py_3.7_64:
112112
MB_PYTHON_VERSION: "3.7"
113113
py_3.8_64:
114114
MB_PYTHON_VERSION: "3.8"
115+
py_3.9_universal2:
116+
MB_PYTHON_VERSION: "3.9"
117+
PLAT: universal2
115118
py_3.9_64:
116119
MB_PYTHON_VERSION: "3.9"

azure/posix.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ jobs:
5959
displayName: Define build env variables
6060
6161
- bash: |
62-
set -e
62+
set -ex
6363
echo $BUILD_COMMIT
64+
6465
pip install virtualenv wheel
6566
BUILD_DEPENDS="$CYTHON_BUILD_DEP"
6667
@@ -77,7 +78,7 @@ jobs:
7778
displayName: Build wheel
7879
7980
- bash: |
80-
set -e
81+
set -ex
8182
source multibuild/common_utils.sh
8283
source multibuild/travis_steps.sh
8384
source extra_functions.sh

config.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@
44
if [ $(uname) == "Linux" ]; then IS_LINUX=1; fi
55
source gfortran-install/gfortran_utils.sh
66

7+
function _build_wheel {
8+
build_libs
9+
build_bdist_wheel $@
10+
}
11+
712
function build_wheel {
8-
local lib_plat=$PLAT
913
if [ -n "$IS_OSX" ]; then
1014
install_gfortran
1115
fi
1216
echo gcc --version
1317
echo `gcc --version`
14-
build_libs $lib_plat
1518
# Fix version error for development wheels by using bdist_wheel
16-
build_bdist_wheel $@
19+
wrap_wheel_builder _build_wheel $@
1720
}
1821

1922
function build_libs {
@@ -26,8 +29,9 @@ function build_libs {
2629
$PYTHON_EXE -mpip install urllib3
2730
$PYTHON_EXE -c"import platform; print('platform.uname().machine', platform.uname().machine)"
2831
basedir=$($PYTHON_EXE numpy/tools/openblas_support.py)
29-
$use_sudo cp -r $basedir/lib/* /usr/local/lib
30-
$use_sudo cp $basedir/include/* /usr/local/include
32+
$use_sudo cp -r $basedir/lib/* $BUILD_PREFIX/lib
33+
$use_sudo cp $basedir/include/* $BUILD_PREFIX/include
34+
export OPENBLAS=$BUILD_PREFIX
3135
}
3236

3337
function get_test_cmd {

gfortran-install

numpy

Submodule numpy updated 1461 files

0 commit comments

Comments
 (0)