CHANGES: add a link to issue 890
[git-cola.git] / contrib / install-python2.6.yaml
blobf47b080cf5b4807580fd188ecc98518008ab8d7a
1 language: python
2 python:
3   - "2.6"
5 env:
6   - CC="gcc-4.8 -fPIC" CXX="g++-4.8 -fPIC" 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)" --enable-unicode=ucs4
26   - echo "_ssl _ssl.c -DUSE_SSL -DOPENSSL_NO_SSL2 -DOPENSSL_NO_EGD -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.3.zip"
39   - unzip -o setuptools-19.3.zip
40   - cd setuptools-19.3
41   - python setup.py install
42   - cd ..
43   # pip, virtualenv
44   - easy_install 'pip<10.0'
45   - pip install virtualenv
46   # for travis-build
47   - cd ../..
48   - ./local/python2.6/bin/virtualenv --no-pip --no-setuptools --no-wheel env26
49   - cd local/sandbox/setuptools-19.3
50   - ../../../env26/bin/python setup.py install
51   - cd ../../..
52   - ./env26/bin/easy_install 'pip<10.0'
53   - ./env26/bin/pip install argparse
54   - ./env26/bin/pip install pyyaml
55   - ./env26/bin/pip install pytest