@@ -17,13 +17,8 @@ if [[ "$(uname)" == "Linux" && -n "$LC_ALL" ]]; then
1717 echo
1818fi
1919
20+ MINICONDA_DIR=" $HOME /miniconda3"
2021
21- if [ ` uname -m` = ' aarch64' ]; then
22- MINICONDA_DIR=" $HOME /archiconda3"
23- IS_SUDO=" sudo"
24- else
25- MINICONDA_DIR=" $HOME /miniconda3"
26- fi
2722
2823if [ -d " $MINICONDA_DIR " ]; then
2924 echo
4641 exit 1
4742fi
4843
49- if [ ` uname -m` = ' aarch64' ]; then
50- wget -q " https://github.com/Archiconda/build-tools/releases/download/0.2.3/Archiconda3-0.2.3-Linux-aarch64.sh" -O archiconda.sh
51- chmod +x archiconda.sh
52- $IS_SUDO apt-get install python-dev
53- $IS_SUDO apt-get install python3-pip
54- $IS_SUDO apt-get install lib$ARCHICONDA_PYTHON -dev
55- $IS_SUDO apt-get install xvfb
56- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH :/usr/lib:/usr/local/lib:/usr/local/bin/python
57- ./archiconda.sh -b
58- echo " chmod MINICONDA_DIR"
59- $IS_SUDO chmod -R 777 $MINICONDA_DIR
60- $IS_SUDO cp $MINICONDA_DIR /bin/* /usr/bin/
61- $IS_SUDO rm /usr/bin/lsb_release
44+ if [ " ${TRAVIS_CPU_ARCH} " == " arm64" ]; then
45+ CONDA_URL=" https://github.com/conda-forge/miniforge/releases/download/4.8.2-1/Miniforge3-4.8.2-1-Linux-aarch64.sh" ;
6246else
63- wget -q " https://repo.continuum.io/miniconda/Miniconda3-latest-$CONDA_OS .sh" -O miniconda.sh
64- chmod +x miniconda.sh
65- ./miniconda.sh -b
47+ CONDA_URL=" https://repo.continuum.io/miniconda/Miniconda3-latest-$CONDA_OS .sh" ;
6648fi
49+ wget -q $CONDA_URL -O miniconda.sh;
50+ chmod +x miniconda.sh
51+
52+ # Installation path is required for ARM64 platform as miniforge script installs in path $HOME/miniforge3.
53+ ./miniconda.sh -b -p $MINICONDA_DIR
6754
6855export PATH=$MINICONDA_DIR /bin:$PATH
6956
7562echo " update conda"
7663conda config --set ssl_verify false
7764conda config --set quiet true --set always_yes true --set changeps1 false
78- $IS_SUDO conda install pip # create conda to create a historical artifact for pip & setuptools
79- $IS_SUDO conda update -n base conda
65+ conda install pip conda # create conda to create a historical artifact for pip & setuptools
66+ conda update -n base conda
8067
8168echo " conda info -a"
8269conda info -a
@@ -116,18 +103,8 @@ conda list
116103conda remove --all -q -y -n pandas-dev
117104
118105echo
119- if [ ` uname -m` = ' aarch64' ]; then
120- $IS_SUDO chmod -R 777 $MINICONDA_DIR
121- $IS_SUDO conda install botocore
122- $IS_SUDO conda install numpy
123- $IS_SUDO conda install python-dateutil=2.8.0
124- $IS_SUDO conda install hypothesis
125- $IS_SUDO conda install pytz
126- $IS_SUDO chmod -R 777 $MINICONDA_DIR
127- fi
128-
129106echo " conda env create -q --file=${ENV_FILE} "
130- time $IS_SUDO conda env create -q --file=" ${ENV_FILE} "
107+ time conda env create -q --file=" ${ENV_FILE} "
131108
132109
133110if [[ " $BITS32 " == " yes" ]]; then
@@ -141,17 +118,13 @@ source activate pandas-dev
141118echo
142119echo " remove any installed pandas package"
143120echo " w/o removing anything else"
144- $IS_SUDO conda remove pandas -y --force || true
145- if [ ` uname -m` = ' aarch64' ]; then
146- $IS_SUDO $ARCHICONDA_PYTHON -m pip uninstall -y pandas || true
147- else
148- pip uninstall -y pandas || true
149- fi
121+ conda remove pandas -y --force || true
122+ pip uninstall -y pandas || true
150123
151124echo
152125echo " remove postgres if has been installed with conda"
153126echo " we use the one from the CI"
154- $IS_SUDO conda remove postgresql -y --force || true
127+ conda remove postgresql -y --force || true
155128
156129echo
157130echo " remove qt"
@@ -165,10 +138,7 @@ conda list pandas
165138# Make sure any error below is reported as such
166139
167140echo " [Build extensions]"
168- if [ ` uname -m` = ' aarch64' ]; then
169- sudo chmod -R 777 /home/travis/.ccache
170- fi
171- python setup.py build_ext -q -i
141+ python setup.py build_ext -q -i -j2
172142
173143# TODO: Some of our environments end up with old versions of pip (10.x)
174144# Adding a new enough version of pip to the requirements explodes the
@@ -177,40 +147,21 @@ python setup.py build_ext -q -i
177147# - py35_compat
178148# - py36_32bit
179149echo " [Updating pip]"
180- if [ ` uname -m` = ' aarch64' ]; then
181- sudo chmod -R 777 /home/travis/archiconda3/envs/pandas-dev/lib/$ARCHICONDA_PYTHON /site-packages
182- $IS_SUDO $ARCHICONDA_PYTHON -m pip install pytest-forked
183- $IS_SUDO $ARCHICONDA_PYTHON -m pip install pytest-xdist
184- $IS_SUDO $ARCHICONDA_PYTHON -m pip install --no-deps -U pip wheel setuptools
185- sudo chmod -R 777 $MINICONDA_DIR
186- else
187- python -m pip install --no-deps -U pip wheel setuptools
188- fi
150+ python -m pip install --no-deps -U pip wheel setuptools
189151
190152echo " [Install pandas]"
191- if [ ` uname -m` = ' aarch64' ]; then
192- $IS_SUDO chmod -R 777 $MINICONDA_DIR
193- $IS_SUDO $ARCHICONDA_PYTHON -m pip install numpy
194- $IS_SUDO $ARCHICONDA_PYTHON -m pip install hypothesis
195- $IS_SUDO chmod -R 777 /home/travis/.cache/
196- $IS_SUDO $ARCHICONDA_PYTHON -m pip install --no-build-isolation -e .
197- else
198- python -m pip install --no-build-isolation -e .
199- fi
153+ python -m pip install --no-build-isolation -e .
200154
201155echo
202156echo " conda list"
203157conda list
204158
205159# Install DB for Linux
160+
206161if [[ -n ${SQL: 0} ]]; then
207162 echo " installing dbs"
208- if [ ` uname -m` = ' aarch64' ]; then
209- sudo systemctl start mysql
210- else
211- psql -c ' create database pandas_nosetest;' -U postgres
212- fi
213163 mysql -e ' create database pandas_nosetest;'
164+ psql -c ' create database pandas_nosetest;' -U postgres
214165else
215166 echo " not using dbs on non-linux Travis builds or Azure Pipelines"
216167fi
0 commit comments