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

Commit 55ffcb8

Browse files
committed
WIP: revamp travis.yml for pypy, aarch64
1 parent 11d6d89 commit 55ffcb8

File tree

6 files changed

+100
-157
lines changed

6 files changed

+100
-157
lines changed

.travis.yml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
env:
2+
global:
3+
- REPO_DIR=numpy
4+
# Also see DAILY_COMMIT below
5+
- BUILD_COMMIT=e94cec800304a6a467cf90ce4e7d3e207770b4b4
6+
- BUILD_DEPENDS=cython==0.29.16
7+
- TEST_DEPENDS="pytest hypothesis cffi pytz"
8+
# Commit when running from daily branch
9+
- DAILY_COMMIT=master
10+
- EXTRA_ARGV="'--disable-pytest-warnings'"
11+
12+
language: python
13+
dist: bionic
14+
services: docker
15+
os: linux
16+
17+
jobs:
18+
include:
19+
- os: linux
20+
arch: x86_64
21+
env:
22+
- PLAT=aarch64
23+
- MB_ML_VER=2010
24+
- MB_PYTHON_VERSION=pypy-3.6
25+
- os: osx
26+
env:
27+
- PLAT=x86_64
28+
- MB_PYTHON_VERSION=pypy-3.6
29+
- MB_PYTHON_OSX_VER=10.9
30+
- os: linux
31+
arch: arm64
32+
env:
33+
- PLAT=aarch64
34+
- MB_ML_VER=2014
35+
- MB_PYTHON_VERSION=3.6
36+
- DEBUG_PRINT=1
37+
- os: linux
38+
arch: arm64
39+
env:
40+
- PLAT=aarch64
41+
- MB_ML_VER=2014
42+
- MB_PYTHON_VERSION=3.8
43+
- DEBUG_PRINT=1
44+
- os: linux
45+
arch: arm64
46+
env:
47+
- PLAT=aarch64
48+
- MB_ML_VER=2014
49+
- MB_PYTHON_VERSION=3.7
50+
- DEBUG_PRINT=1
51+
52+
before_install:
53+
- if [ "$TRAVIS_BRANCH" == "master" ]; then
54+
CONTAINER="pre-release";
55+
BUILD_COMMIT=${DAILY_COMMIT:-$BUILD_COMMIT};
56+
NPY_RELAXED_STRIDES_DEBUG=1;
57+
else
58+
CONTAINER=wheels;
59+
fi
60+
# Set DEBUG_PRINT environment variable in settings
61+
- if [ -n "${DEBUG_PRINT}" ]; then set -x; fi
62+
- source multibuild/common_utils.sh
63+
- source multibuild/travis_steps.sh
64+
- source extra_functions.sh
65+
- before_install
66+
67+
install:
68+
# Maybe get and clean and patch source
69+
- clean_code $REPO_DIR $BUILD_COMMIT
70+
- ./patch_code.sh $REPO_DIR
71+
- build_wheel $REPO_DIR $PLAT
72+
73+
script:
74+
- install_run $PLAT
75+
76+
after_success:
77+
# trigger an upload to the shared ecosystem
78+
# infrastructure at: https://anaconda.org/scipy-wheels-nightly
79+
# for cron jobs only (restricted to master branch once
80+
# per week)
81+
# The tokens are set from
82+
# https://travis-ci.org/github/MacPython/numpy-wheels/settings
83+
# originally generated at
84+
# anaconda.org/scipy-wheels-nightly/settings/access
85+
- if [ "$TRAVIS_BRANCH" == "master" ]; then
86+
ANACONDA_ORG="scipy-wheels-nightly";
87+
TOKEN=${NUMPY_NIGHTLY_UPLOAD_TOKEN}
88+
else
89+
ANACONDA_ORG="multibuild-wheels-staging";
90+
TOKEN=${NUMPY_STAGING_UPLOAD_TOKEN}
91+
fi
92+
- pip install git+https://github.com/Anaconda-Server/anaconda-client
93+
- anaconda -t ${TOKEN} upload u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl;

.travis.yml.back

-113
This file was deleted.

config.sh

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function build_wheel {
1212
# For manylinux2010 builds with manylinux1 openblas builds
1313
$use_sudo yum install -y libgfortran-4.4.7
1414
fi
15+
echo gcc --version
16+
echo `gcc --version`
1517
build_libs $lib_plat
1618
# Fix version error for development wheels by using bdist_wheel
1719
build_bdist_wheel $@

env_vars.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# Environment variables for build
3-
OPENBLAS_VERSION="v0.3.7"
3+
OPENBLAS_VERSION="v0.3.5-605-gc815b8fb" # the 0.3.5 is misleading, this is 0.3.8dev
44
MACOSX_DEPLOYMENT_TARGET=10.9
55
CFLAGS="-std=c99 -fno-strict-aliasing"
66
# Macos's linker doesn't support stripping symbols
@@ -13,3 +13,6 @@ if [ "$(uname)" != "Darwin" ]; then
1313
# the current version of manybuild pass "-strip-all" to CPPFLAGS and FFLAGS
1414
STRIP_FLAGS=""
1515
fi
16+
# For verbosity: report where each command came from
17+
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
18+
set -x

openblas_support.py

-42
This file was deleted.

0 commit comments

Comments
 (0)