File: travis_setup.sh

package info (click to toggle)
python-bottle 0.12.15-2%2Bdeb10u2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,532 kB
  • sloc: python: 5,791; makefile: 68; sh: 63
file content (18 lines) | stat: -rwxr-xr-x 453 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -e
set -x

if test -n "$PY"; then
  # https://github.com/pycurl/pycurl/blob/master/tests/travis/setup.sh
  sudo add-apt-repository -y ppa:fkrull/deadsnakes
  sudo apt-get update
  sudo apt-get install python$PY-dev

  if test "$PY" = 2.5; then
    wget https://pypi.python.org/packages/source/s/simplejson/simplejson-3.6.3.tar.gz
    tar -xvzf simplejson-3.6.3.tar.gz
    cd simplejson-3.6.3
    sudo python$PY setup.py install
  fi
fi