Skip to content

Instantly share code, notes, and snippets.

@glarrain
Forked from lukaslundgren/python27_on_debian.sh
Created December 13, 2012 20:37
Show Gist options
  • Select an option

  • Save glarrain/4279584 to your computer and use it in GitHub Desktop.

Select an option

Save glarrain/4279584 to your computer and use it in GitHub Desktop.

Revisions

  1. glarrain revised this gist Dec 13, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion python27_on_debian.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev
    sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev

    wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
    tar xz Python-2.7.3.tgz
  2. glarrain revised this gist Dec 13, 2012. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions python27_on_debian.sh
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,4 @@ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
    sudo python2.7 distribute_setup.py
    sudo python2.7 get-pip.py


    sudo easy_install-2.7 virtualenv

    sudo pip-2.7 install virtualenv virtualenvwrapper
  3. glarrain revised this gist Dec 13, 2012. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions python27_on_debian.sh
    Original file line number Diff line number Diff line change
    @@ -10,9 +10,10 @@ sudo make altinstall
    python2.7

    curl -O http://python-distribute.org/distribute_setup.py
    curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
    sudo python2.7 distribute_setup.py
    sudo python2.7 get-pip.py


    wget http://peak.telecommunity.com/dist/ez_setup.py
    sudo python2.7 ez_setup.py
    sudo easy_install-2.7 virtualenv

  4. glarrain revised this gist Dec 13, 2012. 1 changed file with 6 additions and 7 deletions.
    13 changes: 6 additions & 7 deletions python27_on_debian.sh
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,16 @@
    sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev

    wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
    tar -xzf Python-2.7.3.tgz
    tar xz Python-2.7.3.tgz
    cd Python-2.7.3

    ./configure --prefix=/usr --enable-shared
    ./configure
    make
    sudo make install
    cd ..
    sudo make altinstall
    python2.7

    sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.6 20
    sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10
    sudo update-alternatives --set python /usr/bin/python2.6
    curl -O http://python-distribute.org/distribute_setup.py
    sudo python2.7 distribute_setup.py

    wget http://peak.telecommunity.com/dist/ez_setup.py
    sudo python2.7 ez_setup.py
  5. @lukaslundgren lukaslundgren created this gist May 11, 2012.
    19 changes: 19 additions & 0 deletions python27_on_debian.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev

    wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
    tar -xzf Python-2.7.3.tgz
    cd Python-2.7.3

    ./configure --prefix=/usr --enable-shared
    make
    sudo make install
    cd ..

    sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.6 20
    sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10
    sudo update-alternatives --set python /usr/bin/python2.6

    wget http://peak.telecommunity.com/dist/ez_setup.py
    sudo python2.7 ez_setup.py
    sudo easy_install-2.7 virtualenv