doc/relnotes: fix formatting for the Fixes item
[git-cola.git] / contrib / install-python2.6.yaml
blobd15f8f6c9b893f1099c24a6f061b6b41f7cfba47
1 language: python
2 python:
3   - "2.6"
5 env:
6   - PATH="$PWD/local/python2.6/bin":"$PATH"
8 before_install:
9   - sudo apt-get install -y libreadline-gplv2-dev
10   - sudo apt-get install -y libsqlite3-dev zlib1g-dev libssl-dev
11   - sudo apt-get install -y libgdbm-dev tk-dev libncursesw5-dev
13 # setup setuptools, etc. for virtualenv
14 # This is intended to be used on a Debian sid system where python2.6
15 # is a minimal install without setuptools or virtualenv.
16 install:
17   - mkdir -p local/sandbox
18   - cd local/sandbox
19   # python 2.6
20   - wget "https://www.python.org/ftp/python/2.6.9/Python-2.6.9.tgz"
21   - tar xzf Python-2.6.9.tgz
22   - cd Python-2.6.9
23   # Debian sid disabled SSLv3
24   - sed -i -e "s,SSL_CTX_new(SSLv3_method()),NULL," Modules/_ssl.c
25   - ./configure --prefix="$(readlink -f ../../python2.6)"
26   - echo "_ssl _ssl.c -DUSE_SSL -I/usr/include/openssl -lssl -lcrypto" >Modules/Setup.local
27   - echo "crypt cryptmodule.c -lcrypt" >>Modules/Setup.local
28   - echo "_md5 md5module.c md5.c" >>Modules/Setup.local
29   - echo "_sha shamodule.c" >>Modules/Setup.local
30   - echo "_sha256 sha256module.c" >>Modules/Setup.local
31   - echo "_sha512 sha512module.c" >>Modules/Setup.local
32   - echo "readline readline.c -lreadline -ltermcap" >>Modules/Setup.local
33   - echo "zlib zlibmodule.c -lz" >>Modules/Setup.local
34   - make -j4
35   - make install
36   - cd ..
37   # setuptools
38   - wget "https://pypi.python.org/packages/source/s/setuptools/setuptools-19.4.zip"
39   - unzip -o setuptools-19.4.zip
40   - cd setuptools-19.4
41   - python setup.py install
42   - cd ..
43   # pip, virtualenv
44   - easy_install pip
45   - pip install virtualenv
46   # for travis-build
47   - cd ../..
48   - ./local/python2.6/bin/virtualenv env26
49   - ./env26/bin/pip install pyyaml
50   - ./env26/bin/pip install nose