skip to navigation
skip to content

Not Logged In

projex_envy 1.1

Latest Version: 1.2

envy is a simple virtual environment package management system.  It allows
a developer to setup a full virutal environment description as a zip package for
distribution on top of the Virtual Environment framework.

== Installation ==

#. Install Python (download from [http://www.python.org])
#. Install setuptools (download from [https://pypi.python.org/pypi/setuptools])
#. Install virtualenv (easy_install virtualenv)
#. Install envy (easy_install projex_envy)

== Basic Usage ==

#. Define the system environment variable for your project home:

    |$> # example: set PY{VER}_VENV_HOME=/path/to/my/home
    |$> set PY27_VENV_HOME=~/env/py27/
    |$> set PY31_VENV_HOME=~/evn/py31/

#. Run the envy.py script from your $PYTHON_HOME/Scripts path:

    |$> # create a new environment
    |$> envy.py create test
    |$> # create a new environment with a starter file
    |$> envy.py create starttest --starter=/path/to/starter.zip
    |$> # list your environments
    |$> envy.py listenv
    |test
    |starttest
    |$> # switch to the given environment
    |$> envy.py switch test
    |$> # change directories to the given environment
    |$> envy.py goto test

== Working with Starter Files ==

Starter files are a way to define virutal environments with pre-populated
dependencies.  They support the ability to run pre and post scripts for
processing, as well as batch installation commands, executable execution, and
simple copy/paste directory systems.  The structure for the starter files is:

{name}.zip/
    /Bin            # runs easy_install all compatible EXE files within folder
    /Include        # copy from {name}.zip to $VIRTUAL_ENV/Include
    /Lib            # copy from {name}.zip to $VIRTUAL_ENV/Lib
    /Scripts        # copy from {name}.zip to $VIRTUAL_ENV/Scripts
    install.txt     # define multiple installation commands in one text file
                    # e.g: easy_install -Z django
                    #    : easy_install -Z requests
                    #    : ...
    pre.py          # python script to be executed before the other installation
                    # commands begin
    post.py         # python script to be executed after all installation
                    # commands complete

== Envy & IDE's ==

To run from an editor, you simply need to define the path to the Python
executable when running your command, and define a couple of environment
variables:

set $VIRTUAL_ENV=$PY27_VENV_HOME/test
set $PYTHON_HOME=
$PY27_VENV_HOME/test/Scripts/python.exe /path/to/my/script.py
$PY27_VENV_HOME/test/Scripts/python.exe -m pdb /path/to/my/script.py
 
File Type Py Version Uploaded on Size
projex_envy-1.1-py2.7.egg (md5) Python Egg 2.7 2014-02-05 5KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 71 downloads in the last week
  • 559 downloads in the last month