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.
Metadata
Release files for evg.recipe.activate 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| evg.recipe.activate-0.5.tar.gz | 4.7 kB | Without provenance | Details |
Release files / evg.recipe.activate-0.5.tar.gz
| Download URL | evg.recipe.activate-0.5.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
288101fbe238ea1be8721bddc7813241cf260ec86824f27e77ad248d600c0335
|
|
BLAKE2b-256 checksum How to use checksums |
7bf2ef4e69b926160be5aed8a25f901ce7f3069b9e67e3ecbfbe2108d56fa0e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for evg.recipe.activate 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.