Skip to content

Instantly share code, notes, and snippets.

@jfroche
Created November 21, 2013 15:27
Show Gist options
  • Save jfroche/7583571 to your computer and use it in GitHub Desktop.
Save jfroche/7583571 to your computer and use it in GitHub Desktop.
Deb Packaging custom python 2.7 using checkinstall
#!/bin/bash
set -ex
sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline6-dev libssl-dev libdb-dev checkinstall -y
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
tar -xzf Python-2.7.6.tgz
cd Python-2.7.6
./configure --prefix=/opt/python27 --enable-shared
make
sudo checkinstall --install=no --pkgname=python27 --pkgversion=2.7.6 --pkgrelease=3 --nodoc --maintainer=jfroche@affinitic.be --default make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment