| 1 | #!/bin/sh |
| 2 | |
| 3 | # manual download of get-pip.py on OSX because TLS1.2+ is required |
| 4 | # source: pyfound.blogspot.com/2017/01/time-to-upgrade-your-python-tls-v12.html |
| 5 | # install pip, virtualenv and plyer deps to virtualenv |
| 6 | if [ "$TRAVIS_OS_NAME" = "osx" ] |
| 7 | then |
| 8 | curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py |
| 9 | |
| 10 | if [ "$PY" = "3" ] |
| 11 | then |
| 12 | sudo python3 get-pip.py |
| 13 | else |
| 14 | sudo python get-pip.py |
| 15 | fi |
| 16 | |
| 17 | if [ "$PY" = "3" ] |
| 18 | then |
| 19 | pip3 install --user virtualenv |
| 20 | python3 -m virtualenv env |
| 21 | else |
| 22 | pip install --user virtualenv |
| 23 | python -m virtualenv env |
| 24 | fi |
| 25 | |
| 26 | # activate virtualenv |
| 27 | source env/bin/activate |
| 28 | |
| 29 | # install requirements from PyPI |
| 30 | pip install --upgrade --requirement devrequirements.txt |
| 31 | |
| 32 | # install PyOBJus from source (master branch) |
| 33 | pip install https://github.com/kivy/pyobjus/zipball/master |
| 34 | fi |