Skip to main content

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)

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

evg.recipe.activate-0.5.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file evg.recipe.activate-0.5.tar.gz.

File metadata

File hashes

Hashes for evg.recipe.activate-0.5.tar.gz
Algorithm Hash digest
SHA256 288101fbe238ea1be8721bddc7813241cf260ec86824f27e77ad248d600c0335
MD5 6b565b06180d8b182b9aca0ebf395cea
BLAKE2b-256 7bf2ef4e69b926160be5aed8a25f901ce7f3069b9e67e3ecbfbe2108d56fa0e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page