1CDIST-TYPE__PYVENV(7) cdist CDIST-TYPE__PYVENV(7)
2
3
4
6 cdist-type__pyvenv - Create or remove python virtual environment
7
9 This cdist type allows you to create or remove python virtual environ‐
10 ment using pyvenv on python3 -m venv. It assumes pyvenv is already in‐
11 stalled. Concrete package depends on concrete OS and/or OS version/dis‐
12 tribution. Ensure this for e.g. in your init manifest as in the fol‐
13 lowing example:
14
16 None
17
19 state Either "present" or "absent", defaults to "present"
20
21 group Group to chgrp to
22
23 mode Unix permissions, suitable for chmod
24
25 owner User to chown to
26
27 pyvenv Use this specific pyvenv
28
29 venvparams
30 Specific parameters to pass to pyvenv invocation
31
33 __pyvenv /home/services/djangoenv
34
35 # Use specific pyvenv
36 __pyvenv /home/foo/fooenv --pyvenv /usr/local/bin/pyvenv-3.4
37
38 # Create python virtualenv for user foo.
39 __pyvenv /home/foo/fooenv --group foo --owner foo
40
41 # Create python virtualenv with specific parameters.
42 __pyvenv /home/services/djangoenv --venvparams "--copies --system-site-packages"
43
45 Darko Poljak <darko.poljak--@--gmail.com>
46
48 Copyright (C) 2016 Darko Poljak. Free use of this software is granted
49 under the terms of the GNU General Public License v3 or later (GPLv3+).
50
52 ungleich GmbH 2021
53
54
55
56
577.0.0 Jul 31, 2022 CDIST-TYPE__PYVENV(7)