This recipe generates activation script for zc.buildout environment.
Project description
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)
Fix Win32 bug, thanks to http://github.com/ochriste
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file evg.recipe.activate-0.5.tar.gz
.
File metadata
- Download URL: evg.recipe.activate-0.5.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 288101fbe238ea1be8721bddc7813241cf260ec86824f27e77ad248d600c0335 |
|
MD5 | 6b565b06180d8b182b9aca0ebf395cea |
|
BLAKE2b-256 | 7bf2ef4e69b926160be5aed8a25f901ce7f3069b9e67e3ecbfbe2108d56fa0e5 |