I am using virtualenv to package up an installation of a python application for testing in the continuous integration server, Jenkins.
To install virtualenv:
sudo pip install virtualenv
To use virtualenv:
PYENV_HOME=.pyenv/From then on, everything is in that environment until the deactivate command is issued:
virtualenv --no-site-packages $PYENV_HOME
. $PYENV_HOME/bin/activate
(.pyenv) [ed@localhost ~]$ deactivate
In order to ensure that the application will work on any production machine, the complete set of requirements are loaded by a build script, which launches the python setup.py for the application.
There is a good discussion of virtualenv in the Hitchhikers Guide to Python.
See the vittrualenv docs for more info.
Great Article
ReplyDeleteB.Tech Final Year Projects for CSE in Python
FInal Year Project Centers in Chennai
Python Training in Chennai
Python Training in Chennai