2013-03-03 17:40:35 +01:00
|
|
|
#!/bin/sh
|
|
|
|
pip install .
|
2014-08-23 23:20:25 +02:00
|
|
|
pip install psutil netifaces
|
2013-03-03 17:40:35 +01:00
|
|
|
if python -c 'import sys; sys.exit(1 * (sys.version_info[0] != 2))' ; then
|
|
|
|
# Python 2
|
2014-07-10 17:29:56 +02:00
|
|
|
if python -c 'import platform, sys; sys.exit(1 - (platform.python_implementation() == "CPython"))' ; then
|
2014-12-08 06:42:08 +01:00
|
|
|
# CPython
|
2014-07-10 17:29:56 +02:00
|
|
|
pip install mercurial
|
|
|
|
pip install --allow-external bzr --allow-unverified bzr bzr
|
|
|
|
fi
|
2013-03-03 17:40:35 +01:00
|
|
|
if python -c 'import sys; sys.exit(1 * (sys.version_info[1] >= 7))' ; then
|
|
|
|
# Python 2.6
|
2013-03-09 13:16:00 +01:00
|
|
|
pip install unittest2 argparse
|
2014-08-06 16:06:54 +02:00
|
|
|
else
|
|
|
|
# Python 2.7
|
|
|
|
pip install ipython
|
2013-03-03 17:40:35 +01:00
|
|
|
fi
|
2014-08-06 16:12:59 +02:00
|
|
|
else
|
|
|
|
# Python 3
|
|
|
|
if python -c 'import sys; sys.exit(1 * (sys.version_info < (3, 3)))' ; then
|
|
|
|
# Python 3.3+
|
|
|
|
pip install ipython
|
|
|
|
fi
|
2013-03-03 17:40:35 +01:00
|
|
|
fi
|
2014-08-23 01:28:51 +02:00
|
|
|
sudo apt-get install -qq screen zsh tcsh mksh busybox socat
|
2014-01-23 15:33:33 +01:00
|
|
|
# Travis has too outdated fish. It cannot be used for tests.
|
|
|
|
# sudo apt-get install fish
|
2013-05-02 10:59:50 +02:00
|
|
|
true
|