cdist-type__pyvenv7
Create or remove python virtual environment
Overview
This cdist type allows you to create or remove python virtual environment using pyvenv on python3 -m venv. It assumes pyvenv is already installed. Concrete package depends on concrete OS and/or OS version/distribution. Ensure this for e.g. in your init manifest as in the following example:
Required parameters
None
Optional parameters
|
Either "present" or "absent", defaults to "present" |
|---|---|
|
Group to chgrp to |
|
Unix permissions, suitable for chmod |
|
User to chown to |
|
Use this specific pyvenv |
|
Specific parameters to pass to pyvenv invocation |
Examples
__pyvenv /home/services/djangoenv # Use specific pyvenv __pyvenv /home/foo/fooenv --pyvenv /usr/local/bin/pyvenv-3.4 # Create python virtualenv for user foo. __pyvenv /home/foo/fooenv --group foo --owner foo # Create python virtualenv with specific parameters. __pyvenv /home/services/djangoenv --venvparams "--copies --system-site-packages"
Copying
Copyright (C) 2016 Darko Poljak. Free use of this software is granted under the terms of the GNU General Public License v3 or later (GPLv3+).
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.