mercoledì 14 novembre 2012

python 3.3 and virtualenv

Tech

As in pep-0405 Python 3 new virtualenv specs are now implemented in Python 3.3.

Install python3.3 and venv it 

 

Python 3.3 has those bleeding edge venvs, lets try them and bleed!



#!/bin/sh
# please add the source if needed
# it could need a package from experimental

set -e # exit in case of errors 

if grep -vqs "experimental main" ; then
    echo "deb http://ftp.de.debian.org/debian/ experimental main" | \
    sudo tee -a /etc/apt/sources.list > /dev/null
fi

sudo apt-get install python3.3
pyvenv-3.3 .pyvenv-3.3
. .pyvenv-3.3/bin/activate 
 
 

Install pyglet 

# pip install pyglet # if lucky and in the future
 
# maybe check for something >= 1.2 on http://www.pyglet.org/download.html#unstable
wget http://pyglet.googlecode.com/files/pyglet-1.2alpha1.tar.gz
cd pyglet-1.2alpha11
python setup.py install
 

  Install pip

curl -O http://python-distribute.org/distribute_setup.py
python distribute_setup.py
I dreamed now for

easy_install pip
 
but I had to do that uglyness below, I'm missing a prefix probably (I hope!)


mv .pyvenv-3.3/local/lib/python3.3/dist-packages/ .pyvenv-3.3/lib/
easy_install-3.3 pip

Is there something wrong here?

Nessun commento:

Posta un commento