pip-system-package-installed
Example:
# Install version '1.6.0' of the 'cookiecutter' Python package system-wide. - pip-system-package-installed: package: cookiecutter==1.6.0
Description
Install a Python package system-wide, using root permissions.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
string | -- | The Python library to install or the url (bzr+,hg+,git+,svn+) of the remote packages. Required |
Examples
Example 1
Install version '1.6.0' of the 'cookiecutter' Python package system-wide.
Code
- pip-system-package-installed: package: cookiecutter==1.6.0
Code
doc: short_help: Install Python packages system-wide. help: | Install a Python package system-wide, using root permissions. examples: - title: Install version '1.6.0' of the 'cookiecutter' Python package system-wide. vars: package: cookiecutter==1.6.0 args: package: doc: short_help: The Python library to install or the url (bzr+,hg+,git+,svn+) of the remote packages. type: string required: true empty: false frecklets: - pip-system-packages-installed: packages: - '{{:: package ::}}'
frecklecute pip-system-package-installed --help Usage: frecklecute pip-system-package-installed [OPTIONS] Install a Python package system-wide, using root permissions. Options: --package PACKAGE The Python library to install or the url (bzr+,hg+,git+,svn+) of the remote packages. [required] --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.pip_system_package_installed.PipSystemPackageInstalled # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class PipSystemPackageInstalled(AutoPycklet): """Install a Python package system-wide, using root permissions. Args: package: The Python library to install or the url (bzr+,hg+,git+,svn+) of the remote packages. """ FRECKLET_ID = "pip-system-package-installed" package: str = None def __post_init__(self): super(PipSystemPackageInstalled, self).__init__(var_names=["package"]) frecklet_class = PipSystemPackageInstalled
# -*- coding: utf-8 -*- # # module path: pycklets.pip_system_package_installed.PipSystemPackageInstalled # from pyckles import AutoPycklet class PipSystemPackageInstalled(AutoPycklet): """Install a Python package system-wide, using root permissions. Args: package: The Python library to install or the url (bzr+,hg+,git+,svn+) of the remote packages. """ FRECKLET_ID = "pip-system-package-installed" def __init__(self, package=None): super(PipSystemPackageInstalled, self).__init__(var_names=["package"]) self._package = package @property def package(self): return self._package @package.setter def package(self, package): self._package = package frecklet_class = PipSystemPackageInstalled