Skip to main content

Cross-platform Python environment management.

Project description

cpenv

Cross-platform Python environment management.

Installation

pip install cpenv

Environment Variables

  • $CPENV_HOME - Path where environments will be created (default: ~/.cpenv)

  • $CPENV_ACTIVE - Path to active environment

  • $CPENV_APP - Path to active app module

Create

cpenv create test

Create an environment named test.

Activate

cpenv activate test

All activated environments are stored in a cache in ~/.cpenv/envcache.yml. First environments are looked up by name in CPENV_HOME path, then looked up in envcache.yml. This means you can store and activate environments by name regardless of where they are stored on the file system, so long as you activate them once by full path. The paths stored in the cache are validated each time you run cpenv.

Deactivate

Each environment runs in a subshell so deactivation is handled through the shell command exit.

Modules

Modules are sub environments used to configure DCC applications like Autodesk Maya and The Foundry’s Nuke. You can find two examples of Modules at http://github.com/cpenv/maya_module.git and http://github.com/cpenv/nuke_module.git. Each Module includes a module.yml file with a command to launch the application, environment variables, and any python dependencies the Module requires.

Create a Module

cpenv create --module maya2016 https://github.com/cpenv/maya_module.git

Adds the default maya Module to the active environment test. All Modules are installed to $CPENV_ACTIVE/modules.

Launch a Module

cpenv launch maya2016

Launches maya2016 Module using the command and arguments provided in the module.yml file. You can also pass additional args here:

::

cpenv launch maya2016 “/path/to/maya_file.mb”

Remove a Module

cpenv remove --module maya2016

Removing Virtual Environments

cpenv remove test

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

cpenv-0.2.32.zip (120.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cpenv-0.2.32-py2.py3-none-any.whl (118.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cpenv-0.2.32.zip.

File metadata

  • Download URL: cpenv-0.2.32.zip
  • Upload date:
  • Size: 120.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cpenv-0.2.32.zip
Algorithm Hash digest
SHA256 4b6b2f74a7e4c44bc3a1537aa7e624f75ed3d6d2307e8bc35ec463ab24869803
MD5 55381f8abb1bf11778f0b6d63c8fa12b
BLAKE2b-256 5ee877f9e9036357a7c950e40d571eb3d64f0ccb661f05b22471bf0cc438f565

See more details on using hashes here.

File details

Details for the file cpenv-0.2.32-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cpenv-0.2.32-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d5c2c1817c58752eb8a5047734bc1ca805fb3b629759c957eef5ed312570bef1
MD5 e29865bacf1dfd1f15cc68c116db9035
BLAKE2b-256 8e5e781d84165ee8b55f21d5d6ef69d6db2c0a66445e8a32d5adc325f2f92114

See more details on using hashes here.

Supported by

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