o
G%@i* @ sz d dl Z d dlZd dlZd dlmZmZmZmZmZ d dl m
Z
G dd deZG dd deeeZG dd d eeZ
dS )
N)PluginRedHatPluginDebianPluginUbuntuPlugin PluginOpt)
RHELPolicyc @ s, e Zd ZdZdZdZdZdZdZdd Z d S )
PythonznCaptures information on the installed python runtime(s), as well as
python modules installed via pip.
zPython runtimepython)system)r z python -Vc C sX | j | jdd | d}|d dkr(|d dd D ]}| | d qd S d S ) Nzpython-version)suggest_filenamezwhereis pip -bstatusr output z -v list installed)add_cmd_outputpython_versionexec_cmdsplit)selfpipspip r ;/usr/lib/python3/dist-packages/sos/report/plugins/python.pysetup! s
zPython.setupN)
__name__
__module____qualname____doc__
short_descplugin_nameprofilespackagesr r r r r r r s r c @ s e Zd ZdZdZdS )UbuntuPython
python3 -V)python3N)r r r r r r r r r r! . s r! c sD e Zd ZdZdZeddddgZ fddZd d
Zdd Z Z
S )
RedHatPythona In addition to the base information, on Red Hat family distributions the
python plugin also supports the 'hashes' option. If enabled, this plugin
will generate a json-formatted listing of all pyfiles within the
distribution-standard python package installation locations.
)r python36python2r# zplatform-pythonhashesFz#collect hashes for all python files)defaultdescc s<