PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli

⇐ retour index

pip -t: A simple and transparent alternative to virtualenv

jeudi 2 juillet 2015 à 18:13

"""
TL;DR

Often, virtualenv is overkill for the basic task of installing project dependencies and keeping them isolated. We present a simple alternative consisting of:

   adding ./.pip to your PYTHONPATH
   using pip install -t .pip to install modules locally
   executing python from your project's root directory
"""
Bien sûr, le nom du dossier ".pip" est arbitraire.
Quand on se rend dedans on peut ensuite faire ceci:
"""
source env/bin/active
pip install <tonsuperpaquet>
deactivate
"""
Tout simplement.
Bien penser à setter le PYTHONPATH avec le dossier de travail utilisé (".pip" dans l'exemple présent)
(Permalink)



Often, virtualenv is overkill for the basic task of installing project dependencies and keeping them isolated. We present a simple alternative
(Permalink)