Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/system/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/system/python_requirements_info.pyo

�
�Udac@`s!ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
Z
ddlZddlZe
Zy&ddlZddlmZeZWnek
r�nXdd
lmZiejd6ejd6ejd6ejd6ejd6Zd�Zedkre�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys

module: python_requirements_info
short_description: Show python path and assert dependency versions
description:
    - Get info about available Python requirements on the target host, including listing required libraries and gathering versions.
    - This module was called C(python_requirements_facts) before Ansible 2.9. The usage did not change.
version_added: "2.7"
options:
  dependencies:
    description: >
      A list of version-likes or module names to check for installation.
      Supported operators: <, >, <=, >=, or ==. The bare module name like
      I(ansible), the module with a specific version like I(boto3==1.6.1), or a
      partial version like I(requests>2) are all valid specifications.
author:
- Will Thames (@willthames)
- Ryan Scott Brown (@ryansb)
s�
- name: show python lib/site paths
  python_requirements_info:
- name: check for modern boto3 and botocore versions
  python_requirements_info:
    dependencies:
    - boto3>1.6
    - botocore<2
s�
python:
  description: path to python version used
  returned: always
  type: str
  sample: /usr/local/opt/python@2/bin/python2.7
python_version:
  description: version of python
  returned: always
  type: str
  sample: "2.7.15 (default, May  1 2018, 16:44:08)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)]"
python_system_path:
  description: List of paths python is looking for modules in
  returned: always
  type: list
  sample:
  - /usr/local/opt/python@2/site-packages/
  - /usr/lib/python/site-packages/
  - /usr/lib/python/site-packages/
valid:
  description: A dictionary of dependencies that matched their desired versions. If no version was specified, then I(desired) will be null
  returned: always
  type: dict
  sample:
    boto3:
      desired: null
      installed: 1.7.60
    botocore:
      desired: botocore<2
      installed: 1.10.60
mismatched:
  description: A dictionary of dependencies that did not satisfy the desired version
  returned: always
  type: dict
  sample:
    botocore:
      desired: botocore>2
      installed: 1.10.60
not_found:
  description: A list of packages that could not be imported at all, and are not installed
  returned: always
  type: dict
  sample:
  - boto4
  - requests
N(tLooseVersion(t
AnsibleModules<=s>=t<t>s==c		C`sGtdtdtdd��dt�}|jdkrL|jddd	�nts�|jd
ddtjd
tj	dtj
�ntjd�}tdgdidi�}xn|j
jd�p�gD]T}|j|�}|dkr|jd
dj|��n|j�\}}}|dk	rI|tkrI|jd
dj|��nytj|�j	}Wn(tjk
r�|dj|�q�nX|dkr�|dkr�i|d6dd6|d|<q�t|t|�t|��r�i|d6|d6|d|<q�i|d6|d6|d<q�W|jdtjd
tj	dtj
|�dS(Nt
argument_spectdependenciesttypetlisttsupports_check_modetpython_requirements_factssUThe 'python_requirements_facts' module has been renamed to 'python_requirements_info'tversions2.13tmsgs\Could not import "distutils" and "pkg_resources" libraries to introspect python environment.tpythontpython_versiontpython_system_paths0(^[a-zA-Z][a-zA-Z0-9_-]+)(==|[><]=?)?([0-9.]+)?$t	not_foundt
mismatchedtvalidsOFailed to parse version requirement '{0}'. Must be formatted like 'ansible>2.6'sVFailed to parse version requirement '{0}'. Operator must be one of >, <, <=, >=, or ==t	installedtdesired(R	tdicttTruet_namet	deprecatet
HAS_DISTUTILSt	fail_jsontsyst
executableRtpathtretcompiletparamstgettmatchtNonetformattgroupst
operationst
pkg_resourcestget_distributiontDistributionNotFoundtappendRt	exit_json(	tmodulet
pkg_dep_retresultstdepR)tpkgtopRtexisting((sS/usr/lib/python2.7/site-packages/ansible/modules/system/python_requirements_info.pytmainqsZ				
				t__main__(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNR%R"toperatortFalseR R.tdistutils.versionRRtImportErrortansible.module_utils.basicR	tletgetlttgtteqR-R:t__name__(((sS/usr/lib/python2.7/site-packages/ansible/modules/system/python_requirements_info.pyt<module>s8


/






	=

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]