Préparatifs

  • Installer la librairie readline-dev

sudo apt-get install libreadline5-dev

Configuration, compilation et installation de Python

  • Télécharger la dernière version de Python sur le site officiel (http://www.python.org/download/).
  • Décompresser l'archive dans un repertoire.

tar -xvzf Python-2.5.tgz

  • Configurer Python avec le repertoire d'installation

cd Python-2.5/
./configure --prefix=/home/<user>/sandbox/DevWeb_Python

  • Compiler Python

make

  • Installer Python

make install

Installation de itools

  • Télécharger la dernière version de itools sur le site officiel (http://www.ikaaro.org/itools).
  • Décompresser l'archive dans un repertoire.

tar -xvzf itools-0.14.6.tar.gz

  • Installer le package avec le Python installé précedament.

cd itools-0.14.6/
/home/<user>/sandbox/DevWeb_Python/bin/python setup.py install

Mettre en place un cms vierge

  • Créer un projet vierge

/home/<user>/sandbox/DevWeb_Python/bin/icms-make-package DevWeb_Python

  • Installer le projet

cd DevWeb_Python
/home/<user>/sandbox/DevWeb_Python/bin/python setup.py install

  • Initialiser la base de données

cd /home/<user>/sandbox/DevWeb_Python/
./bin/icms-init -r DevWeb_Python -p 8080 -w admin DevWeb_Python

  • Lancer le serveur web

./bin/icms-start DevWeb_Python

Initialiser un dépot git

  • Installer cogito

sudo apt-get install cogito

  • Initialiser le dépot

cd /home/<user>/Desktop/DevWeb_Python/DevWeb_Python/
cg-init