Skip to content

Commit 0802430

Browse files
committed
updating build recipe
1 parent 19af5a9 commit 0802430

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.travis/before_install

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,21 @@ sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers
1414
if [ "${PYTHON_VERSION}" == "2" ];
1515
then
1616
wget https://repo.continuum.io/archive/Anaconda2-5.0.0.1-Linux-x86_64.sh
17-
sudo bash Anaconda2-5.0.0.1-Linux-x86_64.sh -b -p /opt/anaconda2 && sudo chown -R 0755 /opt/anaconda2
18-
PATH=/opt/anaconda3/bin:$PATH
17+
sudo bash Anaconda2-5.0.0.1-Linux-x86_64.sh -b -p /opt/conda && sudo chown -R 0755 /opt/conda
18+
PATH=/opt/conda/bin:$PATH
1919
rm Anaconda2-5.0.0.1-Linux-x86_64.sh
2020
export PATH
2121
else
2222
wget https://repo.continuum.io/archive/Anaconda3-5.0.0.1-Linux-x86_64.sh
23-
sudo bash Anaconda3-5.0.0.1-Linux-x86_64.sh -b -p /opt/anaconda3 && sudo chown -R 0755 /opt/anaconda3
24-
PATH=/opt/anaconda3/bin:$PATH
23+
sudo bash Anaconda3-5.0.0.1-Linux-x86_64.sh -b -p /opt/conda && sudo chown -R 0755 /opt/conda
24+
PATH=/opt/conda/bin:$PATH
2525
rm Anaconda3-5.0.0.1-Linux-x86_64.sh
2626
export PATH
2727
fi
2828

2929
# Install python dependencies
30+
/opt/conda/bin/pip install --upgrade pip && \
31+
/opt/conda/bin/pip install requests
3032
which python
3133

3234
python setup.py sdist && python setup.py install

0 commit comments

Comments
 (0)