Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install evg.recipe.activate

How to install evg.recipe.activate

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install evg.recipe.activate
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.5 Available View build log
Windows (64-bit)
0.5 Available View build log
Mac OS X (10.5+)
0.5 Available View build log
Linux (32-bit)
0.5 Available View build log
Linux (64-bit)
0.5 Available View build log
 
License
ZPL 2.1
Lastest release
version 0.5 on Jan 5th, 2011

evg.recipe.activate

This recipe can be used to create an activation script for zc.buildout environment.

You can see an example of how to use the recipe below:

>>> data = """
... [buildout]
... parts = activate
...
... [activate]
... recipe = evg.recipe.activate
... """
>>> touch('buildout.cfg', data=data)
>>> sh('bin/buildout -vvvvvv install activate')

Run buildout. Then on POSIX systems you can do:

$ source bin/activate

This will change your $PATH to point to the virtualenv bin/ directory. You have to use source because it changes the environment in-place. After activating an environment you can use the function deactivate to undo the changes:

(buildout) $ deactivate

The activate script will also modify your shell prompt to indicate which environment is currently active.

Supported options

The recipe supports the following options:

activate
The name of the script created in the bin folder. This script is the equivalent of the activate virtualenv. It defaults to activate.
deactivate
The name of the function to deactivate environment. It defaults to deactivate.
name
The name of the environment. It will use buildout directory name by default.
platform
The name of paltform to generate scripts. It will be detected by default. Possible values are: posix, win32, cygwin and jython.
0.4 (2010-06-07)
0.3 (2010-04-13)
  • Added the name option to set prompt name.
  • Added the platform option to select which kind of scripts will be generated.
  • Added Windows support.
0.2 (2010-04-12)
  • Add CHANGES.txt to MANIFEST.in.
0.1 (2010-04-12)
  • Generate activation script for zc.buildout environment on POSIX systems.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:3

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.