2012-02-08 21:05:48 +00:00
|
|
|
cdist-type__package_pip(7)
|
2012-02-13 13:28:30 +00:00
|
|
|
==========================
|
2016-05-20 06:50:56 +00:00
|
|
|
Manage packages with pip
|
2012-02-08 21:05:48 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
Nico Schottelius <nico-cdist--@--schottelius.org>
|
2012-02-08 21:05:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
Pip is used in Python environments to install packages.
|
|
|
|
It is also included in the python virtualenv environment.
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
2012-10-07 15:51:15 +00:00
|
|
|
None
|
2012-02-08 21:05:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
name
|
2012-02-08 21:16:09 +00:00
|
|
|
If supplied, use the name and not the object id as the package name.
|
2012-02-08 21:05:48 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
pip
|
2012-02-08 21:16:09 +00:00
|
|
|
Instead of using pip from PATH, use the specific pip path.
|
2012-02-08 21:05:48 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
state
|
2012-11-07 18:22:02 +00:00
|
|
|
Either "present" or "absent", defaults to "present"
|
2012-10-07 15:51:15 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
runas
|
2016-04-11 17:21:11 +00:00
|
|
|
Run pip as specified user. By default it runs as root.
|
|
|
|
|
2012-02-08 21:05:48 +00:00
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
# Install a package
|
|
|
|
__package_pip pyro --state present
|
2012-02-08 21:05:48 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Use pip in a virtualenv located at /root/shinken_virtualenv
|
|
|
|
__package_pip pyro --state present --pip /root/shinken_virtualenv/bin/pip
|
2016-04-11 17:21:11 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Use pip in a virtualenv located at /foo/shinken_virtualenv as user foo
|
|
|
|
__package_pip pyro --state present --pip /foo/shinken_virtualenv/bin/pip --runas foo
|
2012-02-08 21:05:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2016-05-20 06:50:56 +00:00
|
|
|
- `cdist-type(7) <cdist-type.html>`_
|
|
|
|
- `cdist-type__package(7) <cdist-type__package.html>`_
|
2012-02-08 21:05:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2012 Nico Schottelius. Free use of this software is
|
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|