ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/commands/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/commands/__pycache__/show.cpython-33.pyc

�
�2{Y�
c@snddlZddlmZddlmZddlmZGdd�de�Zdd�Zd	d
�Z	dS(iN(uCommand(ulogger(u
pkg_resourcescsJ|EeZdZdZdZdZdZ�fdd�Zdd�Z�S(	uShowCommandu6Show information about one or more installed packages.ushowu$
      %prog [options] <package> ...u*Show information about installed packages.cs^tt|�j||�|jjdddddddddd	�|jjd
|j�dS(Nu-fu--filesudestufilesuactionu
store_trueudefaultuhelpu7Show the full list of installed files for each package.iF(usuperuShowCommandu__init__ucmd_optsu
add_optionuFalseuparseruinsert_option_group(uselfuargsukw(u	__class__(u*/tmp/pip-bsqfwp-build/pip/commands/show.pyu__init__s		uShowCommand.__init__cCs=|stjd�dS|}t|�}t||j�dS(Nu.ERROR: Please provide a package name or names.(uloggeruwarnusearch_packages_infou
print_resultsufiles(uselfuoptionsuargsuqueryuresults((u*/tmp/pip-bsqfwp-build/pip/commands/show.pyuruns
uShowCommand.run(	u__name__u
__module__u__qualname__u__doc__unameuusageusummaryu__init__urun(u
__locals__((u	__class__u*/tmp/pip-bsqfwp-build/pip/commands/show.pyuShowCommandsuShowCommandccs�tdd�tjD��}x�|D]�}|j�}||kr#||}i|jd6|jd6|jd6dd�|j�D�d6}tj	j
|j|j�dd	�}tj	j|�r�||d
<n|Vq#q#WdS(u�
    Gather details from installed distributions. Print distribution name,
    version, location, and installed files. Installed files requires a
    pip generated 'installed-files.txt' in the distributions '.egg-info'
    directory.
    cSs%g|]}|jj�|f�qS((uproject_nameulower(u.0up((u*/tmp/pip-bsqfwp-build/pip/commands/show.pyu
<listcomp>,s	u(search_packages_info.<locals>.<listcomp>unameuversionulocationcSsg|]}|j�qS((uproject_name(u.0udep((u*/tmp/pip-bsqfwp-build/pip/commands/show.pyu
<listcomp>5s	urequiresu	.egg-infouinstalled-files.txtufilesN(
udictu
pkg_resourcesuworking_setuloweruproject_nameuversionulocationurequiresuosupathujoinuegg_nameuisfile(uqueryuinstalled_packagesunameunormalized_nameudistupackageufilelist((u*/tmp/pip-bsqfwp-build/pip/commands/show.pyusearch_packages_info$s$




	
	
usearch_packages_infocCs�x�|D]�}tjd�tjd|d�tjd|d�tjd|d�tjdd	j|d
��|rtjd�d|kr�x?t|d�D]}tjd
|j��q�Wq�tjd�qqWdS(uD
    Print the informations from installed distributions found.
    u---uName: %sunameuVersion: %suversionuLocation: %sulocationuRequires: %su, urequiresuFiles:ufilesu  %su!Cannot locate installed-files.txtN(uloggerunotifyujoinuopenustrip(u
distributionsulist_all_filesudistuline((u*/tmp/pip-bsqfwp-build/pip/commands/show.pyu
print_results@s


u
print_results(
uosupip.basecommanduCommandupip.loguloggerupip._vendoru
pkg_resourcesuShowCommandusearch_packages_infou
print_results(((u*/tmp/pip-bsqfwp-build/pip/commands/show.pyu<module>s

Zerion Mini Shell 1.0