|
|
|
@ -10,15 +10,16 @@ cdist-type__pyvenv - Create or remove python virtual environment |
|
|
|
|
|
|
|
|
|
DESCRIPTION |
|
|
|
|
----------- |
|
|
|
|
This cdist type allows you to create or remove python virtual environment using pyvenv. |
|
|
|
|
It assumes python >= 3.3 is already installed. Concrete package depends on concrete OS |
|
|
|
|
and/or OS version/distribution. |
|
|
|
|
This cdist type allows you to create or remove python virtual |
|
|
|
|
environment using pyvenv. |
|
|
|
|
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: |
|
|
|
|
-------------------------------------------------------------------------------- |
|
|
|
|
case "$__target_host" in |
|
|
|
|
localhost) |
|
|
|
|
__package python3 --state present |
|
|
|
|
require="__package/python3" __pyvenv /home/darko/testenv --owner darko --group darko --mode 740 --state present |
|
|
|
|
__package python3-venv --state present |
|
|
|
|
require="__package/python3-venv" __pyvenv /home/darko/testenv --owner darko --group darko --mode 740 --state present |
|
|
|
|
;; |
|
|
|
|
-------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|