Python venv extension using Modulefile
Project description
venv-modulefile
Description
Tool to create Python complient environment from non-pythonic tools in a Python virtual environment.
It is based on Environment Module to modify the virtual environment.
The package offers several commands to build environment modules activated by the virtual environnment
Quick start
The following example adds foo/bar/baz
to LD_LIBRARY_PATH
when the environment is loaded
venvmod-initialize ${VIRTUAL_ENV}
venvmod-prepend-path ${VIRTUAL_ENV} LD_LIBRARY_PATH foo/bar/baz
Available commands
The list of available commands is the following:
-
venvmod-initialize
is the first command to call. It is expected before everithing as it upgrades the virtual environment with modulefile. -
The following commands modify the modulefile of the virtual environment:
venvmod-cmd-append-path
/venvmod-cmd-prepend-path
venvmod-cmd-module-load
:venvmod-cmd-module-use
venvmod-cmd-read-env
venvmod-cmd-remove-path
venvmod-cmd-setenv
venvmod-cmd-set-aliases
venvmod-cmd-source-sh
-
venvmod-add-appli
allows to create sub modulefile.--appli
option of the above commands permit to modify these modulefiles. -
venvmod-test-import
: tests the import of modules given as argument
See --help
option for cli description.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for venv_modulefile-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea6111ea7903fd9555cb2c757280a57f1a190d7c46cc976c544f87e00c11b84a |
|
MD5 | f0481175c9fdac7a8ef0f2ca05f016cf |
|
BLAKE2b-256 | 314db91805c172cc1b6beceb70a83b1a987591e1ef9156e08534a1b43a4a7cc0 |