forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtravis_script_python.sh
More file actions
executable file
·53 lines (36 loc) · 1.03 KB
/
Copy pathtravis_script_python.sh
File metadata and controls
executable file
·53 lines (36 loc) · 1.03 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env bash
set -e
PYTHON_DIR=$TRAVIS_BUILD_DIR/python
# Re-use conda installation from C++
export MINICONDA=$HOME/miniconda
export PATH="$MINICONDA/bin:$PATH"
export PARQUET_HOME=$MINICONDA
# Share environment with C++
pushd $CPP_BUILD_DIR
source setup_build_env.sh
popd
pushd $PYTHON_DIR
python_version_tests() {
PYTHON_VERSION=$1
CONDA_ENV_NAME="pyarrow-test-${PYTHON_VERSION}"
conda create -y -q -n $CONDA_ENV_NAME python=$PYTHON_VERSION
source activate $CONDA_ENV_NAME
python --version
which python
# faster builds, please
conda install -y nomkl
# Expensive dependencies install from Continuum package repo
conda install -y pip numpy pandas cython
# conda install -y parquet-cpp
conda install -y arrow-cpp -c apache/channel/dev
# Other stuff pip install
pip install -r requirements.txt
export ARROW_HOME=$ARROW_CPP_INSTALL
python setup.py build_ext \
--inplace
python -m pytest -vv -r sxX pyarrow
}
# run tests for python 2.7 and 3.5
python_version_tests 2.7
python_version_tests 3.5
popd