-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup_cluster_scipy_cluster.sh
executable file
·36 lines (28 loc) · 1.25 KB
/
setup_cluster_scipy_cluster.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# source configuration
source setup_cluster_conf.sh || exit $?
# Source virtual environment
source $VENV_ACTIVATE || exit $?
# Install NumPy
export ATLAS=$ATLAS_PREFIX
$PIP_WHEEL_CLUSTER_NUMPY numpy -v || exit $?
$PIP_INSTALL_CLUSTER_NUMPY numpy || exit $?
$PIP_INSTALL_CLUSTER numpy -v || exit $?
python -c 'import numpy; numpy.show_config()' || exit $?
python -c 'import numpy; numpy.test()' || exit $?
# Install SciPy
$PIP_WHEEL_CLUSTER_SCIPY scipy -v || exit $?
$PIP_INSTALL_CLUSTER_SCIPY 'scipy>=0.18' || exit $?
python -c 'import scipy; scipy.show_config()' || exit $?
# Fix SciPy issue https://github.com/scipy/scipy/issues/5197
# (fixed as of scipy 0.18)
# sed -i '/assert_array_almost_equal_nulp(mstats.kurtosis(.*$/{$!{N;s/\(assert_array_almost_equal_nulp(mstats.kurtosis.*\n[[:blank:]]*\)\(stats.kurtosis(\)/# \1# \2/}}' $VENV_PREFIX/lib/python3.4/site-packages/scipy/stats/tests/test_mstats_basic.py
python -c 'import scipy; scipy.test()' || exit $?
# Install Cython
$PIP_WHEEL_CLUSTER_GENERAL cython -v || exit $?
$PIP_INSTALL_CLUSTER_GENERAL cython || exit $?
# Install h5py
export HDF5_DIR=$HDF_PREFIX
$PIP_WHEEL_CLUSTER_HDF --no-deps h5py -v || exit $?
$PIP_INSTALL_CLUSTER_HDF h5py || exit $?
python -c 'import h5py; h5py.run_tests()' || exit $?