1
1
#! /bin/bash
2
2
3
+ # Exit the script immediately if a command exits with a non-zero status,
4
+ # and print commands and their arguments as they are executed.
5
+ set -ex
6
+
3
7
uname -a
4
8
free -m
5
9
df -h
6
10
ulimit -a
7
11
8
- if [ -n " $DOWNLOAD_OPENBLAS " ]; then
9
- pwd
10
- ls -ltrh
11
- target=$( python tools/openblas_support.py)
12
- sudo cp -r $target /lib/* /usr/lib
13
- sudo cp $target /include/* /usr/include
14
- fi
15
-
16
12
mkdir builds
17
13
pushd builds
18
14
@@ -22,16 +18,38 @@ pip install -U virtualenv
22
18
23
19
if [ -n " $USE_DEBUG " ]
24
20
then
25
- virtualenv --python=python3-dbg venv
21
+ virtualenv --python=$( which python3-dbg) venv
26
22
else
27
23
virtualenv --python=python venv
28
24
fi
29
25
30
26
source venv/bin/activate
31
27
python -V
28
+ gcc --version
32
29
33
30
popd
34
31
35
- pip install --upgrade pip setuptools
36
- pip install -r test_requirements.txt
32
+ pip install --upgrade pip
33
+
34
+ # 'setuptools', 'wheel' and 'cython' are build dependencies. This information
35
+ # is stored in pyproject.toml, but there is not yet a standard way to install
36
+ # those dependencies with, say, a pip command, so we'll just hard-code their
37
+ # installation here. We only need to install them separately for the cases
38
+ # where numpy is installed with setup.py, which is the case for the Travis jobs
39
+ # where the environment variables USE_DEBUG or USE_WHEEL are set. When pip is
40
+ # used to install numpy, pip gets the build dependencies from pyproject.toml.
41
+ # A specific version of cython is required, so we read the cython package
42
+ # requirement using `grep cython test_requirements.txt` instead of simply
43
+ # writing 'pip install setuptools wheel cython'.
44
+ # urllib3 is needed for openblas_support
45
+ pip install setuptools wheel urllib3 ` grep cython test_requirements.txt`
46
+
47
+ if [ -n " $DOWNLOAD_OPENBLAS " ]; then
48
+ pwd
49
+ target=$( python tools/openblas_support.py)
50
+ sudo cp -r $target /lib/* /usr/lib
51
+ sudo cp $target /include/* /usr/include
52
+ fi
53
+
54
+
37
55
if [ -n " $USE_ASV " ]; then pip install asv; fi
0 commit comments