6 - CC="gcc-4.8 -fPIC" CXX="g++-4.8 -fPIC" PATH="$PWD/local/python2.6/bin":"$PATH"
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.
17 - mkdir -p local/sandbox
20 - wget "https://www.python.org/ftp/python/2.6.9/Python-2.6.9.tgz"
21 - tar xzf Python-2.6.9.tgz
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
38 - wget "https://pypi.python.org/packages/source/s/setuptools/setuptools-19.3.zip"
39 - unzip -o setuptools-19.3.zip
41 - python setup.py install
44 - easy_install 'pip<10.0'
45 - pip install virtualenv
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
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