1CDIST-TYPE__PACKAGE_PIP(7) cdist CDIST-TYPE__PACKAGE_PIP(7)
2
3
4
6 cdist-type__package_pip - Manage packages with pip
7
9 Pip is used in Python environments to install packages. It is also in‐
10 cluded in the python virtualenv environment.
11
13 None
14
16 name If supplied, use the name and not the object id as the package
17 name.
18
19 extra Extra optional dependencies which should be installed along the
20 selected package. Can be specified multiple times. Multiple ex‐
21 tras can be passed in one --extra as a comma-separated list.
22
23 Extra optional dependencies will be installed even when the base
24 package is already installed. Notice that the type will not re‐
25 move installed extras that are not explicitly named for the type
26 because pip does not offer a management for orphaned packages
27 and they may be used by other packages.
28
29 pip Instead of using pip from PATH, use the specific pip path.
30
31 state Either "present" or "absent", defaults to "present"
32
33 runas Run pip as specified user. By default it runs as root.
34
36 # Install a package
37 __package_pip pyro --state present
38
39 # Use pip in a virtualenv located at /root/shinken_virtualenv
40 __package_pip pyro --state present --pip /root/shinken_virtualenv/bin/pip
41
42 # Use pip in a virtualenv located at /foo/shinken_virtualenv as user foo
43 __package_pip pyro --state present --pip /foo/shinken_virtualenv/bin/pip --runas foo
44
45 # Install package with optional dependencies
46 __package_pip mautrix-telegram --extra speedups --extra webp_convert --extra hq_thumbnails
47 # the extras can also be specified comma-separated
48 __package_pip mautrix-telegram --extra speedups,webp_convert,hq_thumbnails --extra postgres
49
50 # or take all extras
51 __package_pip mautrix-telegram --extra all
52
54 cdist-type__package(7)
55
57 Nico Schottelius <nico-cdist--@--schottelius.org>
58 Matthias Stecher <matthiasstecher--@--gmx.de>
59
60
62 Copyright (C) 2012 Nico Schottelius, 2021 Matthias Stecher. You can re‐
63 distribute it and/or modify it under the terms of the GNU General Pub‐
64 lic License as published by the Free Software Foundation, either ver‐
65 sion 3 of the License, or (at your option) any later version.
66
68 ungleich GmbH 2021
69
70
71
72
737.0.0 Jul 31, 2022 CDIST-TYPE__PACKAGE_PIP(7)