ok

Mini Shell

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

�
�2{Y)Gc@s\ddlmZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZddl
mZmZmZmZmZddlmZmZmZmZmZmZmZddlmZddlmZddlm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0dd	l1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9dd
l:m;Z;ddl
m<Z<ddl=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHddlIZJdd
lImKZKmLZLmMZMddlNmOZOmPZPdd�ZQGdd�deR�ZSGdd�deR�ZTGdd�deR�ZUdd�ZVejWdejX�ZYeZeZeZeZdd�Z[dd�Z\dd�Z]d d!�Z^eZd"d#�Z_Gd$d%�d%eR�Z`Gd&d'�d'eR�ZaGd(d)�d)eR�ZbdS(*i(u
FeedParserN(uchange_root(ubin_pyurunning_under_virtualenvuPIP_DELETE_MARKER_FILENAMEuwrite_delete_marker_fileubin_user(uInstallationErroruUninstallationErroruUnsupportedWheeluBestVersionAlreadyInstalleduInvalidWheelFilenameuDistributionNotFounduPreviousBuildDirError(uvcs(ulogger(udisplay_pathurmtreeuaskuask_path_existsu
backup_diruis_installable_diruis_localu
dist_is_localudist_in_usersiteudist_in_site_packagesurenamesunormalize_pathu
egg_link_pathumake_path_relativeucall_subprocessu
is_prereleaseunormalize_name(uurlparseuurllibuuses_pycacheuConfigParserustring_typesu	HTTPErroruget_python_versionub(uLink(ubuild_prefix(u
PipSessionuget_file_contentuis_urluurl_to_pathupath_to_urluis_archive_fileuunpack_vcs_linku
is_vcs_urluis_file_urluunpack_file_urluunpack_http_url(umove_wheel_filesuWheelu	wheel_ext(u
pkg_resourcesusixcCs�t|d��}|j�}WdQXdtjd�dg}x:|D]2}y|j|�}Wntk
rswCYnXPqCWt|�tks�t	�|S(uQReturn the contents of *filename*.

    Try to decode the file contents with utf-8, the preffered system encoding
    (e.g., cp1252 on some Windows machines) and latin1, in that order. Decoding
    a byte string with latin1 will never raise an error. In the worst case, the
    returned string will contain some garbage characters.

    urbNuutf-8ulatin1F(
uopenureadulocaleugetpreferredencodinguFalseudecodeuUnicodeDecodeErrorutypeubytesuAssertionError(ufilenameufpudatau	encodingsuenc((u /tmp/pip-bsqfwp-build/pip/req.pyuread_text_file's	

uread_text_filecBso|EeZdZdMdNdMdNdOdMdMdNdOdd�	ZedMdMdd��ZedMdMdd��Z	dd�Z
d	d
�ZdOdd�Zd
d�Z
edd��Zedd��Zedd��ZdNdd�ZdZdd�Zdd�Zdd�Zdd�Zed d!��Zejd"�Zfd#d$�Zed%d&��Zed'd(��Zd)d*�ZdOd+d,�Z dNd-d.�Z!d/d0�Z"d1d2�Z#d3d4�Z$d5d6�Z%fdMdMd7d8�Z&d9d:�Z'fd;d<�Z(d=d>�Z)d?d@�Z*edAdB��Z+edCdD��Z,dEdF�Z-dGdH�Z.dMdMdIdJ�Z/edKdL��Z0dMS(PuInstallRequirementcCsLf|_t|t�r9tjj|�}|j|_n||_||_||_||_	|	dkrri}	n|	|_||_||_
d|_d|_d|_d|_d|_||_d|_d|_d|_d|_|
|_||_|rd|_n=|jdk	r?tdd�|jjD��|_n	d|_dS(NcSs0g|]&}t|d�o)|ddk�qS(iiu!=(u
is_prerelease(u.0ux((u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>ls	u/InstallRequirement.__init__.<locals>.<listcomp>FT(uextrasu
isinstanceustring_typesu
pkg_resourcesuRequirementuparseurequ
comes_fromu
source_dirueditableuNoneueditable_optionsuurluas_eggu_egg_info_pathusatisfied_byuconflicts_withu_temp_build_diru
_is_bundleuupdateuinstall_succeededuuninstalleduFalseu
use_user_siteu
target_dirufrom_bundleu	pycompileuTrueuprereleasesuanyuspecs(uselfurequ
comes_fromu
source_dirueditableuurluas_egguupdateuprereleasesueditable_optionsufrom_bundleu	pycompile((u /tmp/pip-bsqfwp-build/pip/req.pyu__init__As<																					%uInstallRequirement.__init__c	
Cs�t||�\}}}|jd�r6t|�}nd}|||d|ddd|d|dd�}|dk	r�||_n|S(Nufile:u
source_dirueditableuurlueditable_optionsuprereleasesT(uparse_editableu
startswithuurl_to_pathuNoneuTrueuextras(	uclsueditable_requ
comes_fromudefault_vcsunameuurluextras_overrideu
source_dirures((u /tmp/pip-bsqfwp-build/pip/req.pyu
from_editableps	u InstallRequirement.from_editablec	Cs�d	}|j�}d	}tjjtjj|��}d	}t|�rWt|�}n�tjj|�r�tjj	|ks�|j
d�r�t|�s�td|��ntt
|��}nFt|�rtjj|�s�tjd|�ntt
|��}n|r�|d	kr�|j}|j}|jdkrstjd|�rst
tjjtjj|j���}n|jtkr�t|j�}|j�s�td|j��q�q�n|}|||d|d|�S(
u�Creates an InstallRequirement from a name, which might be a
        requirement, directory containing 'setup.py', filename, or URL.
        u.u;Directory %r is not installable. File 'setup.py' not found.uARequirement %r looks like a filename, but the file does not existufileu\.\./u-%s is not a supported wheel on this platform.uurluprereleasesN(uNoneustripuosupathunormpathuabspathuis_urluLinkuisdirusepu
startswithuis_installable_diruInstallationErrorupath_to_urluis_archive_fileuisfileuloggeruwarnuurl_without_fragmentuegg_fragmentuschemeureusearchuextu	wheel_extuWheelufilenameu	supporteduUnsupportedWheel(	uclsunameu
comes_fromuprereleasesuurlurequpathulinkuwheel((u /tmp/pip-bsqfwp-build/pip/req.pyu	from_line�s43		!*uInstallRequirement.from_linecCs�|jr8t|j�}|jrA|d|j7}qAn	|j}|jdk	rm|dt|jj�7}n|jr�t|jt	�r�|j}n|jj
�}|r�|d|7}q�n|S(Nu from %su in %su
 (from %s)(urequstruurlusatisfied_byuNoneudisplay_pathulocationu
comes_fromu
isinstanceustring_typesu	from_path(uselfusu
comes_from((u /tmp/pip-bsqfwp-build/pip/req.pyu__str__�s				uInstallRequirement.__str__cCsv|jdkrdSt|j�}|jrrt|jt�rI|j}n|jj�}|rr|d|7}qrn|S(Nu->(urequNoneustru
comes_fromu
isinstanceustring_typesu	from_path(uselfusu
comes_from((u /tmp/pip-bsqfwp-build/pip/req.pyu	from_path�s	uInstallRequirement.from_pathcCs�|jdk	r|jS|jdkrJtjdd�|_||_|jS|jre|jj�}n	|j}t	j
j|�s�t|�nt	j
j
||�S(Nu-buildupip-(u_temp_build_diruNoneurequtempfileumkdtempu_ideal_build_dirueditableunameuloweruosupathuexistsu_make_build_dirujoin(uselfu	build_diruunpackuname((u /tmp/pip-bsqfwp-build/pip/req.pyubuild_location�s			
u!InstallRequirement.build_locationcCs8|jdk	rdS|jdk	s(t�|js7t�|j}|j}|`|jrj|jj�}n	|j}t	j
j||�}t	j
j|�s�t
jd|�t|�nt	j
j|�r�tdt|���nt
jd|t|�t|�f�tj||�||_||_d|_dS(ukIf the build location was a temporary directory, this will move it
        to a new more permanent locationNuCreating directory %su<A package already exists in %s; please remove it to continueu,Moving package %s from %s to new location %s(u
source_diruNoneurequAssertionErroru_temp_build_diru_ideal_build_dirueditableunameuloweruosupathujoinuexistsuloggerudebugu_make_build_diruInstallationErrorudisplay_pathushutilumoveu_egg_info_path(uselfuold_locationu
new_build_dirunameunew_location((u /tmp/pip-bsqfwp-build/pip/req.pyucorrect_build_location�s0				
			u)InstallRequirement.correct_build_locationcCs|jdkrdS|jjS(N(urequNoneuproject_name(uself((u /tmp/pip-bsqfwp-build/pip/req.pyuname�suInstallRequirement.namecCs&|jdkrdStj|jj�S(N(urequNoneuurllibuquoteuunsafe_name(uself((u /tmp/pip-bsqfwp-build/pip/req.pyuurl_namesuInstallRequirement.url_namec
Cs�yddl}Wntk
r0td��YnXd}|jrtd|jkrttjj|j|jd|�}ntjj|j|�}tj	r�t
|tj�r�|jt
j��}n|S(NiuBsetuptools must be installed to install from a source distributionusetup.pyusubdirectory(u
setuptoolsuImportErroruInstallationErrorueditable_optionsuosupathujoinu
source_dirusixuPY2u
isinstanceu	text_typeuencodeusysugetfilesystemencoding(uselfu
setuptoolsu
setup_fileusetup_py((u /tmp/pip-bsqfwp-build/pip/req.pyusetup_pys

uInstallRequirement.setup_pycCs�|jst�|jr8tjd|j|jf�ntjd|j|jf�tjd7_z>|jdkr�tj	j
tj	j|jd��r�ttj	j|jd��n|j
}|jdt|j��}|jdt|j��}tjd	|d
g}|js|r&g}nFtj	j|jd�}tj	j|�s`tj|�nddg}t||d
|jd|jdddtjdd�Wdtjd8_X|js�tjjd|j��|_|j�ndS(Nu2Running setup.py (path:%s) egg_info for package %su7Running setup.py (path:%s) egg_info for package from %siu
distributeu
setuptoolsudistribute.egg-infou__SETUP_PY__u__PKG_NAME__u-cuegg_infoupip-egg-infou
--egg-baseucwdu
filter_stdoutushow_stdoutu
command_levelucommand_descupython setup.py egg_infou%(Name)s==%(Version)sF(u
source_diruAssertionErrorunameuloggerunotifyusetup_pyuurluindentuosupathuisdirujoinurmtreeu
_run_setup_pyureplaceureprusysu
executableueditableuexistsumakedirsucall_subprocessu_filter_installuFalseu
VERBOSE_DEBUGurequ
pkg_resourcesuRequirementuparseupkg_infoucorrect_build_location(uselfuforce_root_egg_infouscriptuegg_info_cmduegg_base_optionuegg_info_dir((u /tmp/pip-bsqfwp-build/pip/req.pyurun_egg_info!s8	 	4		
			uInstallRequirement.run_egg_infou}
__file__ = __SETUP_PY__
from setuptools.command import egg_info
import pkg_resources
import os
import tokenize
def replacement_run(self):
    self.mkpath(self.egg_info)
    installer = self.distribution.fetch_build_egg
    for ep in pkg_resources.iter_entry_points('egg_info.writers'):
        # require=False is the change we're making:
        writer = ep.load(require=False)
        if writer:
            writer(self, ep.name, os.path.join(self.egg_info,ep.name))
    self.find_sources()
egg_info.egg_info.run = replacement_run
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))
cCsy|jdk	r5|jj|�s%dS|jj|�S|jsDt�|j|�}tjj	|�sidSt
|�}|S(N(usatisfied_byuNoneuhas_metadatauget_metadatau
source_diruAssertionErroru
egg_info_pathuosupathuexistsuread_text_file(uselfufilenameudata((u /tmp/pip-bsqfwp-build/pip/req.pyu
egg_info_databsu InstallRequirement.egg_info_datac	s|jdkr|jr$|j}ntjj|jd�}tj|�}|jr�g}x
tj|�D]�\�}}x-t	j
D]"}||kr�|j|�q�q�Wx�t|�D]�}tjj
tjj�|dd��s
tjj
tjj�|dd��r|j|�n|dks2|dkr�|j|�q�q�W|j�fdd	�|D��qjWd
d	�|D�}n|s�td||f��n|s�td||f��t|�dkr�|jd
dd��ntjj||d�|_ntjj|j|�S(Nupip-egg-infoubinupythonuScriptsu
Python.exeutestutestscs%g|]}tjj�|��qS((uosupathujoin(u.0udir(uroot(u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>�s	u4InstallRequirement.egg_info_path.<locals>.<listcomp>cSs%g|]}|jd�r|�qS(u	.egg-info(uendswith(u.0uf((u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>�s	u$No files/directories in %s (from %s)iukeycSs8|jtjj�tjjr3|jtjj�p6dS(Ni(ucountuosupathusepualtsep(ux((u /tmp/pip-bsqfwp-build/pip/req.pyu<lambda>�su2InstallRequirement.egg_info_path.<locals>.<lambda>i(u_egg_info_pathuNoneueditableu
source_diruosupathujoinulistdiruwalkuvcsudirnamesuremoveulistuexistsuextenduInstallationErroruAssertionErrorulenusort(uselfufilenameubaseu	filenamesudirsufilesudir((urootu /tmp/pip-bsqfwp-build/pip/req.pyu
egg_info_pathns6		''u InstallRequirement.egg_info_pathcCso|j|�}|sgSg}xI|j�D];}|j�}|s,|jd�rZq,n|j|�q,W|S(Nu#(u
egg_info_datau
splitlinesustripu
startswithuappend(uselfufilenameudatauresultuline((u /tmp/pip-bsqfwp-build/pip/req.pyuegg_info_lines�su!InstallRequirement.egg_info_linescCs^t�}|jd�}|sAtjdt|jd���n|j|pPd�|j�S(NuPKG-INFOuNo PKG-INFO file found in %su(u
FeedParseru
egg_info_datauloggeruwarnudisplay_pathu
egg_info_pathufeeduclose(uselfupudata((u /tmp/pip-bsqfwp-build/pip/req.pyupkg_info�s	#uInstallRequirement.pkg_infocCs
|jd�S(Nudependency_links.txt(uegg_info_lines(uself((u /tmp/pip-bsqfwp-build/pip/req.pyudependency_links�su#InstallRequirement.dependency_linksu	\[(.*?)\]ccs�d}xx|jd�D]g}|jj|j��}|rO|jd�}qn|rx||krxtjd|�qn|VqWdS(Nurequires.txtiuskipping extra %s(uNoneuegg_info_linesu_requirements_section_reumatchulowerugroupuloggerudebug(uselfuextrasuin_extraulineumatch((u /tmp/pip-bsqfwp-build/pip/req.pyurequirements�suInstallRequirement.requirementsccs5x.|jjD] \}}|dkr
|Vq
q
WdS(Nu==(urequspecs(uselfu	qualifieruversion((u /tmp/pip-bsqfwp-build/pip/req.pyuabsolute_versions�su$InstallRequirement.absolute_versionscCs|j�dS(Nuversion(upkg_info(uself((u /tmp/pip-bsqfwp-build/pip/req.pyuinstalled_version�su$InstallRequirement.installed_versioncCsk|jst�|j}||jkrDtjd||jf�n#tjdt|j�||f�dS(Nu'Requested %s, but installing version %su;Source in %s has version %s, which satisfies requirement %s(u
source_diruAssertionErroruinstalled_versionurequloggeruwarnudebugudisplay_path(uselfuversion((u /tmp/pip-bsqfwp-build/pip/req.pyuassert_source_matches_version�s		u0InstallRequirement.assert_source_matches_versioncCs|js!tjd|j�dS|js0t�|js?t�|jjd�rUdSd|jkswtd|j��|js�dS|jjdd�\}}t	j
|�}|r�||j�}|r�|j|j�q|j|j�ndstd|j|f��dS(Nu>Cannot update repository at %s; repository location is unknownufile:u+ubad url: %riiu+Unexpected version control type (in %s): %s(
uurluloggeruinfou
source_dirueditableuAssertionErroru
startswithuupdateusplituvcsuget_backenduobtainuexport(uselfuobtainuvc_typeuurlubackenduvcs_backend((u /tmp/pip-bsqfwp-build/pip/req.pyuupdate_editable�s(	"		u"InstallRequirement.update_editablecsd|j�s%td|jf��n|jp4|j}t|�}tjj|j	|j
��d}tjj|j	dj|j
�jd�dd���d}|jdt
jd�}|j
�d	}t|�}tjj|�}	tjj|�}
tjj|�}|	s|
rR|	r)|}n|}|j|�|jd
�r�x|jd
�j�D]4}
tjjtjj||
��}|j|�qaWq�|jd�r�|jd�r�|jd��ng�xz�fd
d�|jd�j�D�D]M}tjj|j	|�}|j|�|j|d�|j|d�q�Wq�n?|j	j|�r�|j|j	�tjjtjj|j	�d�}|j|d|�n�|r^t|d�}tjj|j�j��}|j�||j	kstd||j|j	f��|j|�tjjtjj|�d�}|j||j	�n3|r�x*tj j!|�D]}|j|�qwWn|jd�r5|j"d�r5x�|j#d�D]o}t$|�r�t%}nt&}|jtjj||��t'j(dkr�|jtjj||�d�q�q�Wn|jd�rJt)j*�}|j+t,|j-d���|j.d�rJx�|j/d�D]�\}}t$|�r�t%}nt&}|jtjj||��t'j(dkr�|jtjj||�d�|jtjj||�d�|jtjj||�d�q�q�WqJn|j0|�||_1dS(u�
        Uninstall the distribution currently satisfying this requirement.

        Prompts before removing or modifying files unless
        ``auto_confirm`` is True.

        Refuses to delete or modify files outside of ``sys.prefix`` -
        thus uninstallation within a virtual environment can only
        modify that virtual environment, even if the virtualenv is
        linked to global site-packages.

        u.Cannot uninstall requirement %s, not installedu	.egg-infou-Niu
.dist-infou-py%suu.egguinstalled-files.txtu
top_level.txtunamespace_packages.txtcs(g|]}|r|�kr|�qS(((u.0up(u
namespaces(u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>s	u0InstallRequirement.uninstall.<locals>.<listcomp>u.pyu.pycueasy-install.pthu./uru;Egg-link %s does not match installed location of %s (at %s)uscriptsuwin32u.batuentry_points.txtuconsole_scriptsu.exeu
.exe.manifestu
-script.py(2ucheck_if_existsuUninstallationErrorunameusatisfied_byuconflicts_withuUninstallPathSetuosupathujoinulocationuegg_nameusplitureplaceu
pkg_resourcesuPY_MAJORu
egg_link_pathuexistsuadduhas_metadatauget_metadatau
splitlinesunormpathuendswithudirnameuadd_pthuopenunormcaseureadlineustripucloseuAssertionErrorupipuwheeluuninstallation_pathsumetadata_isdirumetadata_listdirudist_in_usersiteubin_userubin_pyusysuplatformuConfigParseruSafeConfigParserureadfpuFakeFileuget_metadata_linesuhas_sectionuitemsuremoveuuninstalled(uselfuauto_confirmudistupaths_to_removeupip_egg_info_pathudist_info_pathudebian_egg_info_pathueasy_install_eggudevelop_egg_linkupip_egg_info_existsudebian_egg_info_existsudist_info_existsu
egg_info_pathuinstalled_fileupathu
top_level_pkgueasy_install_pthufhulink_pointeruscriptubin_diruconfigunameuvalue((u
namespacesu /tmp/pip-bsqfwp-build/pip/req.pyu	uninstall�s�
(	
!
	
.
		*	  -
uInstallRequirement.uninstallcCs4|jr|jj�ntjd|jf�dS(Nu'Can't rollback %s, nothing uninstalled.(uuninstalledurollbackuloggeruerroruproject_name(uself((u /tmp/pip-bsqfwp-build/pip/req.pyurollback_uninstallYs		u%InstallRequirement.rollback_uninstallcCs4|jr|jj�ntjd|jf�dS(Nu%Can't commit %s, nothing uninstalled.(uuninstalleducommituloggeruerroruproject_name(uself((u /tmp/pip-bsqfwp-build/pip/req.pyucommit_uninstall`s		u#InstallRequirement.commit_uninstallcCs�|jst�d}d|j|jf}tjj||�}tjj|�rt	dt
|�d�}|dkr�d}q|dkr�tj
dt
|��tj|�q|dkrt|�}tj
dt
|�t
|�f�tj||�qn|r�tj|dtj�}tjjtjj|j��}xtj|�D]�\}	}
}d|
kr~|
jd�nxl|
D]d}tjj|	|�}|j||�}
tj|jd	|
d	�}d|_|j|d�q�Wxb|D]Z}|tkrq�ntjj|	|�}|j||�}
|j||jd	|
�q�WqSW|j�tjd
8_tj dt
|��ndS(Nu	%s-%s.zipu/The file %s exists. (i)gnore, (w)ipe, (b)ackup uiuwubuDeleting %suBacking up %s to %supip-egg-infou/i�iuiuSaved %sT(uiuwubFi�(!u
source_diruAssertionErroruTrueunameuinstalled_versionuosupathujoinuexistsuask_path_existsudisplay_pathuFalseuloggeruwarnuremoveu
backup_dirushutilumoveuzipfileuZipFileuZIP_DEFLATEDunormcaseuabspathuwalku_clean_zip_nameuZipInfou
external_attruwritestruPIP_DELETE_MARKER_FILENAMEuwriteucloseuindentunotify(uselfu	build_dirucreate_archiveuarchive_nameuarchive_pathuresponseu	dest_fileuzipudirudirpathudirnamesu	filenamesudirnameunameuzipdirufilename((u /tmp/pip-bsqfwp-build/pip/req.pyuarchivegsN		!
	
#
uInstallRequirement.archivecCse|j|tjj�s/td||f��|t|�dd�}|jtjjd�}|S(Nu$name %r doesn't start with prefix %riu/(u
startswithuosupathusepuAssertionErrorulenureplace(uselfunameuprefix((u /tmp/pip-bsqfwp-build/pip/req.pyu_clean_zip_name�s
u"InstallRequirement._clean_zip_namecs�|jr|j||�dS|jrztjj|j�}tjj||j�|j	|jd�d|�d|_dStj
dd�}tjj|d�}z�tjg}|jd�|jd|j�|t|�dd	|g7}|js|d
g7}n�dk	r&|d�g7}n|jr?|dg7}n
|d
g7}t�r�|dtjjtjdddt��g7}ntjd|j�tjd7_z*t||d|jd|j dd �Wdtjd8_Xtjj"|�stjd|�dSd|_|jr$dS�fdd�}	t#|�}
xN|
D]1}|j$�}|j%d�rI|	|�}PqIqIWtj&d|�dS|
j'�g}
t#|�}
x[|
D]S}|j$�}tjj(|�r�|tjj)7}n|
jt*|	|�|��q�W|
j'�t#tjj|d�d�}
|
j+dj|
�d�|
j'�Wdtjj"|�rtj,|�ntj-|�XdS(!Nurootustrip_file_prefixu-recordupip-uinstall-record.txtu-cu�import setuptools, tokenize;__file__=%r;exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))uinstallu--recordu#--single-version-externally-managedu--rootu	--compileu--no-compileu--install-headersuincludeusiteupythonuRunning setup.py install for %siucwdu
filter_stdoutushow_stdoutuRecord file %s not foundcs4�dkstjj|�r#|St�|�SdS(N(uNoneuosupathuisabsuchange_root(upath(uroot(u /tmp/pip-bsqfwp-build/pip/req.pyuprepend_root�su0InstallRequirement.install.<locals>.prepend_rootu	.egg-infou;Could not find .egg-info directory in install record for %suinstalled-files.txtuwu
TF(.ueditableuinstall_editableuis_wheelupipuwheelu
wheel_versionu
source_dirucheck_compatibilityunameumove_wheel_filesuTrueuinstall_succeededutempfileumkdtempuosupathujoinusysu
executableuappendusetup_pyulistuas_egguNoneu	pycompileurunning_under_virtualenvuprefixuget_python_versionuloggerunotifyuindentucall_subprocessu_filter_installuFalseuexistsuopenustripuendswithuwarnucloseuisdirusepumake_path_relativeuwriteuremoveurmdir(uselfuinstall_optionsuglobal_optionsurootustrip_file_prefixuversionu
temp_locationurecord_filenameuinstall_argsuprepend_rootufulineuegg_info_diru	new_linesufilename((urootu /tmp/pip-bsqfwp-build/pip/req.pyuinstall�s�				
		
	
		


 
uInstallRequirement.installcCs�|jstjj|j�rWtjd|j�|jrKt|j�nd|_n|j
r�tjj|j
�r�t|j
�nd|_
dS(uVRemove the source files from this requirement, if they are marked
        for deletionuRemoving source in %sN(u	is_bundleuosupathuexistsudelete_marker_filenameuloggeruinfou
source_dirurmtreeuNoneu_temp_build_dir(uself((u /tmp/pip-bsqfwp-build/pip/req.pyuremove_temporary_source�s	u*InstallRequirement.remove_temporary_sourcecCs�tjd|j�tjd7_zWttjdd|jgt|�ddgt|�d|j	d|j
d	d
�Wdtjd8_Xd|_
dS(NuRunning setup.py develop for %siu-cu�import setuptools, tokenize; __file__=%r; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))udevelopu	--no-depsucwdu
filter_stdoutushow_stdoutFT(uloggerunotifyunameuindentucall_subprocessusysu
executableusetup_pyulistu
source_diru_filter_installuFalseuTrueuinstall_succeeded(uselfuinstall_optionsuglobal_options((u /tmp/pip-bsqfwp-build/pip/req.pyuinstall_editables7u#InstallRequirement.install_editablecCsatj}xKddddddddgD]+}tj||j��r(tj}Pq(q(W||fS(	Nu^running .*u^writing .*u^creating .*u^[Cc]opying .*u^reading .*u4^removing .*\.egg-info' \(and everything under it\)$u^byte-compiling u7^warning: manifest_maker: standard file '-c' not found$(uloggeruNOTIFYureusearchustripuINFO(uselfulineuleveluregex((u /tmp/pip-bsqfwp-build/pip/req.pyu_filter_installs	
	u"InstallRequirement._filter_installcCs|jdkrdSyJ|jjdkrG|jrG|jjdkrGdStj|j�|_Wn�tj	k
rxdSYn�tj
k
rtj|jj�}|jr�t|�r�||_q�t
�r�t|�r�td|j|jf��q�n	||_YnXdS(u�Find an installed distribution that satisfies or conflicts
        with this requirement, and set self.satisfied_by or
        self.conflicts_with appropriately.u
setuptoolsu
distributeuVWill not install to the user site because it will lack sys.path precedence to %s in %sNFT(urequNoneuFalseuproject_nameuconflicts_withuTrueu
pkg_resourcesuget_distributionusatisfied_byuDistributionNotFounduVersionConflictu
use_user_siteudist_in_usersiteurunning_under_virtualenvudist_in_site_packagesuInstallationErrorulocation(uselfu
existing_dist((u /tmp/pip-bsqfwp-build/pip/req.pyucheck_if_existss(		u"InstallRequirement.check_if_existscCs|jod|jkS(Nu.whl(uurl(uself((u /tmp/pip-bsqfwp-build/pip/req.pyuis_wheel=suInstallRequirement.is_wheelcCsu|jdk	r|jS|j}|s)dStjjtjj|d��phtjjtjj|d��|_|jS(Nupip-manifest.txtupyinstall-manifest.txtF(u
_is_bundleuNoneu_temp_build_diruFalseuosupathuexistsujoin(uselfubase((u /tmp/pip-bsqfwp-build/pip/req.pyu	is_bundleAs	!$uInstallRequirement.is_bundlec
csGx|jD]�}tjj|�}x�tjD]�}d}}tjj||j�}tjj	|�r,|j
}t|�}|j�}	|j
�|�j|	�\}}Pq,q,W|r�d|||f}nd}t||ddd|ddd|dd�Vq
Wx=|jD]2}tjj|�}t||d|dd�Vq
WdS(	Nu%s+%s@%sueditableuurluupdateu
source_dirufrom_bundleTF(u_bundle_editable_dirsuosupathubasenameuvcsubackendsuNoneujoinubundle_fileuexistsunameuopenureaducloseuparse_vcs_bundle_fileuInstallRequirementuTrueuFalseu_bundle_build_dirs(
uselfudest_dirupackageuvcs_backenduurlurevuvcs_bundle_fileuvc_typeufpucontent((u /tmp/pip-bsqfwp-build/pip/req.pyubundle_requirementsMs,
		
u&InstallRequirement.bundle_requirementsc
Cs�|j}|st�tjj|d�}tjj|d�}g}g}x#|||f|||fgD]\}}	}
tjj|�rjx�tj|�D]�}tjj|	|�}|
j|�tjj|�r�tj	d|||f�q�ntjj|	�s(tj
d|	�tj|	�ntj
tjj||�|�q�Wtj|�smtj|�qmqjqjWd|_||_||_dS(NusrcubuilduZThe directory %s (containing package %s) already exists; cannot move source from bundle %suCreating directory %s(u_temp_build_diruAssertionErroruosupathujoinuexistsulistdiruappenduloggeruwarnuinfoumakedirsushutilumoveurmdiruNoneu_bundle_build_dirsu_bundle_editable_dirs(
uselfudest_build_dirudest_src_dirubaseusrc_diru	build_dirubundle_build_dirsubundle_editable_dirsu
source_dirudest_dirudir_collectionudirnameudest((u /tmp/pip-bsqfwp-build/pip/req.pyumove_bundle_filesgs4	
	#		u$InstallRequirement.move_bundle_filescCsAt|j|j|d|jd|jd|d|jd|�dS(Nuuseruhomeurootu	pycompileustrip_file_prefix(umove_wheel_filesunameurequ
use_user_siteu
target_diru	pycompile(uselfuwheeldirurootustrip_file_prefix((u /tmp/pip-bsqfwp-build/pip/req.pyumove_wheel_files�s			u#InstallRequirement.move_wheel_filescCs%|jst�tjj|jt�S(N(u
source_diruAssertionErroruosupathujoinuPIP_DELETE_MARKER_FILENAME(uself((u /tmp/pip-bsqfwp-build/pip/req.pyudelete_marker_filename�su)InstallRequirement.delete_marker_filenameNFT(1u__name__u
__module__u__qualname__uNoneuFalseuTrueu__init__uclassmethodu
from_editableu	from_lineu__str__u	from_pathubuild_locationucorrect_build_locationupropertyunameuurl_nameusetup_pyurun_egg_infou
_run_setup_pyu
egg_info_datau
egg_info_pathuegg_info_linesupkg_infoudependency_linksureucompileu_requirements_section_reurequirementsuabsolute_versionsuinstalled_versionuassert_source_matches_versionuupdate_editableu	uninstallurollback_uninstallucommit_uninstalluarchiveu_clean_zip_nameuinstalluremove_temporary_sourceuinstall_editableu_filter_installucheck_if_existsuis_wheelu	is_bundleubundle_requirementsumove_bundle_filesumove_wheel_filesudelete_marker_filename(u
__locals__((u /tmp/pip-bsqfwp-build/pip/req.pyuInstallRequirement?sV-*
?*
	n)]!
uInstallRequirementcBsh|EeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS(uRequirementscCsg|_i|_dS(N(u_keysu_dict(uself((u /tmp/pip-bsqfwp-build/pip/req.pyu__init__�s	uRequirements.__init__cCs|jS(N(u_keys(uself((u /tmp/pip-bsqfwp-build/pip/req.pyukeys�suRequirements.keyscs�fdd��jD�S(Ncsg|]}�j|�qS((u_dict(u.0ukey(uself(u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>�s	u'Requirements.values.<locals>.<listcomp>(u_keys(uself((uselfu /tmp/pip-bsqfwp-build/pip/req.pyuvalues�suRequirements.valuescCs
||jkS(N(u_keys(uselfuitem((u /tmp/pip-bsqfwp-build/pip/req.pyu__contains__�suRequirements.__contains__cCs3||jkr"|jj|�n||j|<dS(N(u_keysuappendu_dict(uselfukeyuvalue((u /tmp/pip-bsqfwp-build/pip/req.pyu__setitem__�suRequirements.__setitem__cCs|j|S(N(u_dict(uselfukey((u /tmp/pip-bsqfwp-build/pip/req.pyu__getitem__�suRequirements.__getitem__cs0�fdd��j�D�}ddj|�S(Ncs0g|]&}dt|�t�|�f�qS(u%s: %s(urepr(u.0uk(uself(u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>�s	u)Requirements.__repr__.<locals>.<listcomp>uRequirements({%s})u, (ukeysujoin(uselfuvalues((uselfu /tmp/pip-bsqfwp-build/pip/req.pyu__repr__�suRequirements.__repr__N(
u__name__u
__module__u__qualname__u__init__ukeysuvaluesu__contains__u__setitem__u__getitem__u__repr__(u
__locals__((u /tmp/pip-bsqfwp-build/pip/req.pyuRequirements�suRequirementsc
BsF|EeZdZd(d)d)d)d(d)d)d)d(d*d(dd�Zdd�Zdd�Zdd�Z	e
d	d
��Ze
dd��Ze
d
d��Z
dd�Zd)dd�Zdd�Zd)d)dd�Zd)dd�Zdd�Zdd�Zd(d)dd�Zfdd �Zd!d"�Zd#Zd$d%�Zd&d'�Zd(S(+uRequirementSetcCs�||_||_||_|r6tjj|�}n||_||_||_|
|_	t
�|_i|_g|_
|	|_g|_g|_g|_||_||_||_|p�t�|_|
|_||_dS(N(u	build_dirusrc_dirudownload_diruosupathu
expanduserudownload_cacheuupgradeuignore_installeduforce_reinstalluRequirementsurequirementsurequirement_aliasesuunnamed_requirementsuignore_dependenciesusuccessfully_downloadedusuccessfully_installedureqs_to_cleanupuas_eggu
use_user_siteu
target_diru
PipSessionusessionu	pycompileuwheel_download_dir(uselfu	build_dirusrc_dirudownload_dirudownload_cacheuupgradeuignore_installeduas_eggu
target_diruignore_dependenciesuforce_reinstallu
use_user_siteusessionu	pycompileuwheel_download_dir((u /tmp/pip-bsqfwp-build/pip/req.pyu__init__�s,																	uRequirementSet.__init__cCsLdd�|jj�D�}|jddd��djdd�|D��S(NcSsg|]}|js|�qS((u
comes_from(u.0ureq((u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>�s	u*RequirementSet.__str__.<locals>.<listcomp>ukeycSs
|jj�S(N(unameulower(ureq((u /tmp/pip-bsqfwp-build/pip/req.pyu<lambda>�su(RequirementSet.__str__.<locals>.<lambda>u cSsg|]}t|j��qS((ustrureq(u.0ureq((u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>�s	(urequirementsuvaluesusortujoin(uselfureqs((u /tmp/pip-bsqfwp-build/pip/req.pyu__str__�suRequirementSet.__str__cCs�|j}|j|_|j|_|j|_|j|_|sR|jj|�ni|j|�r�td||j	|�|f��n||j
|<|j�|kr�||j|j�<ndS(Nu5Double requirement given: %s (already in %s, name=%r)(
unameuas_eggu
use_user_siteu
target_diru	pycompileuunnamed_requirementsuappenduhas_requirementuInstallationErroruget_requirementurequirementsulowerurequirement_aliases(uselfuinstall_requname((u /tmp/pip-bsqfwp-build/pip/req.pyuadd_requirement�s	
uRequirementSet.add_requirementcCsCx<||j�fD](}||jks7||jkrdSqWdS(NTF(ulowerurequirementsurequirement_aliasesuTrueuFalse(uselfuproject_nameuname((u /tmp/pip-bsqfwp-build/pip/req.pyuhas_requirement�suRequirementSet.has_requirementcCst|jj��p|jS(N(ulisturequirementsuvaluesuunnamed_requirements(uself((u /tmp/pip-bsqfwp-build/pip/req.pyuhas_requirements�suRequirementSet.has_requirementscCsJtdd�|jj�D��r&dStdd�|jD��rFdSdS(Ncss|]}|jVqdS(N(ueditable(u.0ureq((u /tmp/pip-bsqfwp-build/pip/req.pyu	<genexpr>�su/RequirementSet.has_editables.<locals>.<genexpr>css|]}|jVqdS(N(ueditable(u.0ureq((u /tmp/pip-bsqfwp-build/pip/req.pyu	<genexpr>�sTF(uanyurequirementsuvaluesuTrueuunnamed_requirementsuFalse(uself((u /tmp/pip-bsqfwp-build/pip/req.pyu
has_editables�s
"uRequirementSet.has_editablescCsg|jrctjj|j�|_tjj|j�r:dStjd�tdt	|j���ndS(Nu!Could not find download directoryu0Could not find or access download directory '%s'TF(udownload_diruosupathu
expanduseruexistsuTrueuloggerufataluInstallationErrorudisplay_pathuFalse(uself((u /tmp/pip-bsqfwp-build/pip/req.pyuis_download�s	
uRequirementSet.is_downloadcCslxU||j�fD]A}||jkr3|j|S||jkr|j|j|SqWtd|��dS(NuNo project with the name %r(ulowerurequirementsurequirement_aliasesuKeyError(uselfuproject_nameuname((u /tmp/pip-bsqfwp-build/pip/req.pyuget_requirementsuRequirementSet.get_requirementcCs8x1|jj�D] }|jd|�|j�qWdS(Nuauto_confirm(urequirementsuvaluesu	uninstallucommit_uninstall(uselfuauto_confirmureq((u /tmp/pip-bsqfwp-build/pip/req.pyu	uninstallsuRequirementSet.uninstallcCs�t|j�}t|jj��}xc|s3|r�|rK|jd�}n|jd�}d}|jr�|jr�|j�|j	r�|j
r�|jo�t|j	�s�|j	|_
nd|_	q�d}n|j	r�tjd|�q�n|jr |jdkrE|j|j�|_qEn%|rE|j|j|j�|_n|jdk	r'tjj|j�r'td||jf��q'q'WdS(Niu<Requirement already satisfied (use --upgrade to upgrade): %su�Could not install requirement %s because source folder %s does not exist (perhaps --no-download was used without first running an equivalent install with --no-install?)TF(ulistuunnamed_requirementsurequirementsuvaluesupopuTrueuignore_installedueditableucheck_if_existsusatisfied_byuupgradeu
use_user_siteudist_in_usersiteuconflicts_withuNoneuFalseuloggerunotifyu
source_dirubuild_locationusrc_diru	build_diruis_downloaduosupathuisdiruInstallationError(uselfuunnamedureqsureq_to_installuinstall_needed((u /tmp/pip-bsqfwp-build/pip/req.pyulocate_filess4
						%uRequirementSet.locate_filesc1Cs�t|j�}t|jj��}x�|s3|r�|rK|jd�}n|jd�}d}d}d}	|jr�|j	r�|j
�|jr`|jrW|j
r|jry|j||j�}
Wn?tk
r�d}d}Yqtk
r
tj�d}	YqX|
j|_n|s]|jo6t|j�sH|j|_nd|_q]q`d}n|jr�|r�tjd|�q�tjd|�q�n|j	r�tjd|�n^|r|jr|jj�jd�rtjdtt|j���qtjd|�ntjd	7_zld}d}|j	r�|jdkri|j|j �}
|
|_n	|j}
t!j"j#|j$�s�t%|j$�n|j&|j'�|j'r�|j(�|j)|j*�q1|j(�nV|r1|j|j$|j'�}
d}d}
|j+rnWt!j"j#t!j"j,|
d
��rUt-t.j/d||
f���n|jdkr�|	rs|	�n|j|d|j�}
nt0|j�}
|
s�t1�|
rcyY|
j2j3t4�r�|j5r�|j5}d}n|j*}|j'}|j6|
|
||�Wqit7k
r_}z5tj8d
||f�t9d|||
f��WYdd}~XqiXnd}|r1|j:}|
o�|
j2j3t4�}|r�|j;|j$|j �x�|j<�D] }|j=|�|j>|�q�Wn�|j'r3|
|_|s|j(�n|
r�|
j?t@jAkr�|j)|j*�q�ny|rQ|
|_|
j|_n[|
|_|j(�|r}|j(dd�n|jB�|r�|jr�|jC|�d}n|js�|j
�n|jr.|js�|jr|jo�t|j�s|j|_nd|_q+tjd|�d}q.q1n|r�ttDjE|
��d}|jFsx|jG�|_F|j>|�n|jHsxd|jI|jJ�D]M}|jK|jL�r�q�ntMtN|�|�}|j=|�|j>|�q�Wqn&|s|jO|jP�|jJr*tjddj,|jJ��n|jHs�x�|j|jJ�D]�}ytDjQjR|�jL}Wn?tSk
r�tj�d}tjTd|||f�wFYnX|jK|�r�qFntM||�}|j=|�|j>|�qFWn|jK|jU�s|j>|�qn|sE|j's/|jVdk	rE|jWj=|�qEn|r�|jXj=|�|r�|jr�|jjd�r�|jC|�q�nWdtjd	8_Xq'WdS(uGPrepare process. Create temp directories, download and/or unpack files.iiu"Requirement already up-to-date: %su<Requirement already satisfied (use --upgrade to upgrade): %suObtaining %sufile:uUnpacking %suDownloading/unpacking %siusetup.pyu�
                          pip can't proceed with requirement '%s' due to a pre-existing build directory.
                           location: %s
                          This is likely due to a previous installation that failed.
                          pip is being responsible and not assuming it can delete this.
                          Please delete it and try again.
                        uupgradeu4Could not install requirement %s because of error %suDCould not install requirement %s because of HTTP error %s for URL %sNuforce_root_egg_infou!Installing extra requirements: %ru,u.Invalid requirement: %r (%s) in requirement %sufile:///TF(Yulistuunnamed_requirementsurequirementsuvaluesupopuTrueuFalseuNoneuignore_installedueditableucheck_if_existsusatisfied_byuupgradeuforce_reinstalluurlufind_requirementuBestVersionAlreadyInstalleduDistributionNotFoundusysuexc_infou
use_user_siteudist_in_usersiteuconflicts_withuloggerunotifyuloweru
startswithudisplay_pathuurl_to_pathuindentu
source_dirubuild_locationusrc_diruosupathuexistsu	build_diru_make_build_diruupdate_editableuis_downloadurun_egg_infouarchiveudownload_dirufrom_bundleujoinuPreviousBuildDirErrorutextwrapudedentuLinkuAssertionErrorufilenameuendswithu	wheel_extuwheel_download_diru
unpack_urlu	HTTPErrorufataluInstallationErroru	is_bundleumove_bundle_filesubundle_requirementsuappenduadd_requirementuschemeuvcsuall_schemesuassert_source_matches_versionucopy_to_build_diru
pkg_resourcesufind_distributionsurequas_requirementuignore_dependenciesurequiresuextrasuhas_requirementuproject_nameuInstallRequirementustruadd_dependency_linksudependency_linksuRequirementuparseu
ValueErroruerrorunameu_temp_build_dirureqs_to_cleanupusuccessfully_downloaded(uselfufinderuforce_root_egg_infoubundleuunnamedureqsureq_to_installuinstallubest_installedu	not_founduurlu	is_bundleuis_wheelulocationuunpackudownload_dirudo_downloaduexcueusubrequdisturequname((u /tmp/pip-bsqfwp-build/pip/req.pyu
prepare_files:sV
		


					!#			

	!								)	
		
		


		
					
	 	

	!uRequirementSet.prepare_filescCs�tjd�tjd7_x|jD]}|j�q&Wg}|j�r_|j|j�n|rx|j|j�nx>|D]6}t	j
j|�rtjd|�t
|�qqWtjd8_dS(uClean up files, remove builds.uCleaning up...iuRemoving temporary dir %s...N(uloggerunotifyuindentureqs_to_cleanupuremove_temporary_sourceu_pip_has_created_build_diruappendu	build_dirusrc_diruosupathuexistsuinfourmtree(uselfubundleurequ
remove_dirudir((u /tmp/pip-bsqfwp-build/pip/req.pyu
cleanup_files's

uRequirementSet.cleanup_filescCs1|jtko0tjjtjj|jt��S(N(u	build_dirubuild_prefixuosupathuexistsujoinuPIP_DELETE_MARKER_FILENAME(uself((u /tmp/pip-bsqfwp-build/pip/req.pyu_pip_has_created_build_dir>su)RequirementSet._pip_has_created_build_dircCs�|jr|jp|j}tjd|j|f�tjj||j�}t	j
|j|�tdd|dgd|dd�dS(NuCopying %s to %supythonu%s/setup.pyucleanucwducommand_descupython setup.py clean(
ueditableusrc_diru	build_diruloggeruinfounameuosupathujoinushutilucopytreeu
source_dirucall_subprocess(uselfureq_to_installu
target_dirudest((u /tmp/pip-bsqfwp-build/pip/req.pyucopy_to_build_dirBsu RequirementSet.copy_to_build_dircCs�|dkr|j}nt|�rL|r3|}n|}t|||�nat|�r~t|||�|r�t|�q�n/t|||j||j	�|r�t|�ndS(N(
uNoneudownload_diru
is_vcs_urluunpack_vcs_linkuis_file_urluunpack_file_urluwrite_delete_marker_fileuunpack_http_urludownload_cacheusession(uselfulinkulocationudownload_diru
only_downloaduloc((u /tmp/pip-bsqfwp-build/pip/req.pyu
unpack_urlJs&	
uRequirementSet.unpack_urlc"Osdd�|jj�D�}tjjd�}xI|D]A}|jdkr5|j|kr5|j|�|j|�q5q5W|r�t	j
ddjdd�|D���nt	jd7_zCx<|D]4}|jd	kr0y=tjjd
�}	tj
d�}
|
|	kr|
|_nWq0tjk
r,Yq0Xn|jr�t	j
d|j�t	jd7_z|jdd�Wd
t	jd8_Xny|j||||�Wn+|jr�|jr�|j�n�Yn X|jr�|jr�|j�n|j�q�WWd
t	jd8_X||_d
S(uRInstall everything in this set (after having downloaded and unpacked the packages)cSsg|]}|js|�qS((usatisfied_by(u.0ur((u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>ks	u*RequirementSet.install.<locals>.<listcomp>udistribute>=0.7u
distributeu!Installing collected packages: %su, cSsg|]}|j�qS((uname(u.0ureq((u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>{s	iu
setuptoolsudistribute<0.7uFound existing installation: %suauto_confirmNT(urequirementsuvaluesu
pkg_resourcesuRequirementuparseunameuinstalled_versionuremoveuappenduloggerunotifyujoinuindentuget_distributionuconflicts_withuDistributionNotFoundu	uninstalluTrueuinstalluinstall_succeededurollback_uninstallucommit_uninstalluremove_temporary_sourceusuccessfully_installed(uselfuinstall_optionsuglobal_optionsuargsukwargsu
to_installudistribute_requrequrequirementudistribute_requirementuexisting_distribute((u /tmp/pip-bsqfwp-build/pip/req.pyuinstallisJ	

*
		

uRequirementSet.installcCs�tj|dtj�}g}xJ|jdf|jdffD]*\}}tjjtjj|��}x�tj	|�D]�\}}}x�t
jD]�}	|	�}
d}}|
j
|kr�xR|D]}
|j|
�r�Pq�q�W|
jtjj||��\}}|j|�|
j}|
ji|d6|d6}|j|
j
�Pq�q�Wd|kre|jd�nxQ|D]I}tjj||�}|j||�}|j|d|dd�qlWx_|D]W}|tkr�q�ntjj||�}|j||�}|j||d|�q�W|rwtjj||�}|j||�}|j|d||�qwqwWq=W|jd	|j��|j�dS(
Nuwubuildusrcuurlurevupip-egg-infou/uupip-manifest.txt(uzipfileuZipFileuZIP_DEFLATEDu	build_dirusrc_diruosupathunormcaseuabspathuwalkuvcsubackendsuNoneudirnameu
startswithuget_infoujoinuappendubundle_fileuguideuremoveu_clean_zip_nameuwritestruPIP_DELETE_MARKER_FILENAMEuwriteubundle_requirementsuclose(uselfubundle_filenameuzipuvcs_dirsudirubasenameudirpathudirnamesu	filenamesubackenduvcs_backenduvcs_urluvcs_revuvcs_diruvcs_bundle_fileu	vcs_guideudirnameunameufilename((u /tmp/pip-bsqfwp-build/pip/req.pyu
create_bundle�sL+	


	
 
#uRequirementSet.create_bundleu�# This is a pip bundle file, that contains many source packages
# that can be installed as a group.  You can install this like:
#     pip this_file.zip
# The rest of the file contains a list of all the packages included:
cCs�|jg}xAdd�|jj�D�D]#}|jd|j|jf�q)W|jd�xAdd�|jj�D�D]#}|jd|j|jf�qzWdj|�S(NcSsg|]}|js|�qS((u
comes_from(u.0ureq((u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>�s	u6RequirementSet.bundle_requirements.<locals>.<listcomp>u%s==%s
uC# These packages were installed to satisfy the above requirements:
cSsg|]}|jr|�qS((u
comes_from(u.0ureq((u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>�s	u(u
BUNDLE_HEADERurequirementsuvaluesuappendunameuinstalled_versionujoin(uselfupartsureq((u /tmp/pip-bsqfwp-build/pip/req.pyubundle_requirements�s#!
#!u"RequirementSet.bundle_requirementscCse|j|tjj�s/td||f��|t|�dd�}|jtjjd�}|S(Nu$name %r doesn't start with prefix %riu/(u
startswithuosupathusepuAssertionErrorulenureplace(uselfunameuprefix((u /tmp/pip-bsqfwp-build/pip/req.pyu_clean_zip_name�s
uRequirementSet._clean_zip_nameNFT(u__name__u
__module__u__qualname__uNoneuFalseuTrueu__init__u__str__uadd_requirementuhas_requirementupropertyuhas_requirementsu
has_editablesuis_downloaduget_requirementu	uninstallulocate_filesu
prepare_filesu
cleanup_filesu_pip_has_created_build_dirucopy_to_build_diru
unpack_urluinstallu
create_bundleu
BUNDLE_HEADERubundle_requirementsu_clean_zip_name(u
__locals__((u /tmp/pip-bsqfwp-build/pip/req.pyuRequirementSet�s2		
'�E7uRequirementSetcCstj|�t|�dS(N(uosumakedirsuwrite_delete_marker_file(u	build_dir((u /tmp/pip-bsqfwp-build/pip/req.pyu_make_build_dir�s
u_make_build_diru^(http|https|file):ccs|dkrt�}nd}|r-|jnd}|rKtj|�}ntjjtjj|��}t	|d|d|�\}}xzt
|j��D]f\}	}
|	d7}	|
j�}
tj
dd|
�}
|
s�|
jd�r�q�n|r|j|
�rq�n|
jd�s&|
jd�r�|
jd�rN|
d	d�j�}n%|
td�d�j�jd
�}tj|�r�tj||�}n3tj|�s�tjjtjj|�|�}nx3t||d|d|d|�D]}|Vq�Wq�|
jd�s|
jd
�rq�|
jd�s=|
jd�r�|
jd�re|
d	d�j�}
n%|
td�d�j�jd
�}
tjj||
�}
tjj|
�r�|
}
n|r|jj|
�qq�|
jd�s�|
jd�rY|
jd�r|
d	d�j�}
n%|
td�d�j�jd
�}
|r|
g|_qq�|
jd�r�|
td�d�j�jd
�}
|r|jj|
�qq�|
jd�r�d!|_q�|
jd�r�g|_q�|
jd�r:|
td�d�j�jd
�}
|jtt|
�j �g�O_q�|
jd�rUd!|_!q�|
jd�rgq�|
jd�ryq�|
jd�r�|
td�d�j�jd
�}
|j"tt|
�j �g�O_"q�|
jd�r/|
td�d�j�jd
�}
|j"tt|
�j �g�O_"q�d||	f}|
jd�s]|
jd�r�|
jd�r�|
d	d�j�}
n%|
td�d�j�jd
�}
t#j$|
d|d|r�|j%nd�}n$t#j&|
|dt'|d d��}|Vq�WdS("Nu
comes_fromusessioniu
(^|\s)#.*$uu#u-ru
--requirementiu=uoptionsu-Zu--always-unzipu-fu--find-linksu-iu--index-urlu--extra-index-urlu--use-wheelu
--no-indexu--allow-externalu--allow-all-externalu--no-allow-externalu--no-allow-insecureu--allow-insecureu--allow-unverifiedu-r %s (line %s)u-eu
--editableudefault_vcsuprereleasesupreT((uNoneu
PipSessionuskip_requirements_regexureucompileuosupathudirnameuabspathuget_file_contentu	enumerateu
splitlinesustripusubu
startswithusearchulenu
_scheme_reuurlparseuurljoinujoinuparse_requirementsulstripuexistsu
find_linksuappendu
index_urlsuTrueu	use_wheeluallow_externalusetunormalize_nameuloweruallow_all_externaluallow_unverifieduInstallRequirementu
from_editableudefault_vcsu	from_lineugetattr(ufilenameufinderu
comes_fromuoptionsusessionu
skip_matchu
skip_regexu
reqs_file_dirucontentuline_numberulineureq_urluitemurelative_to_reqs_fileureq((u /tmp/pip-bsqfwp-build/pip/req.pyuparse_requirementss�	
%$(%	%%%'%'%'%'$uparse_requirementscCs.tjd|�}|r*|jd�}n|S(u2
        Strip req postfix ( -dev, 0.2, etc )
    u^(.*?)(?:-dev|-\d.*)$i(ureusearchugroup(urequmatch((u /tmp/pip-bsqfwp-build/pip/req.pyu_strip_postfixgsu_strip_postfixcCspdd�|jdd�djd�D�}d}|ddkrO|d}n|dd
krl|d}n|S(NcSsg|]}|r|�qS(((u.0up((u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>ts	u'_build_req_from_url.<locals>.<listcomp>u#iiu/iutagsubranchesutagubranchiutrunki����(utagsubranchesutagubranchi����i����i����(usplituNone(uurlupartsureq((u /tmp/pip-bsqfwp-build/pip/req.pyu_build_req_from_urlrs,

u_build_req_from_urlcCs{tjd�}|j|�}|rwt�}xC|D];}|\}}||kretd|��n|||<q4W|SdS(uz
        This method generates a dictionary of the query string
        parameters contained in a given editable URL.
    u([\?#&](?P<name>[^&=]+)=(?P<value>[^&=]+)u%s option already definedN(ureucompileufindalludictu	ExceptionuNone(urequregexpumatcheduretuoptionunameuvalue((u /tmp/pip-bsqfwp-build/pip/req.pyu_build_editable_options}s	
u_build_editable_optionsc
Csm|}d}tjd|�}|rE|jd�}|jd�}n|}tjj|�r�tjjtjj|d��s�t	d|��nt
|�}n|j�jd�r�|r�d|t
jjd|�jfSd|dfSnx;tD]3}|j�jd|�r�d	||f}Pq�q�Wd
|kr_|rL|d
|}q_t	d|��n|jd
d�dj�}tj|�s�d
|djdd�tjD��d}t	|��nyt|�}	Wn8tk
rtj�d}
t	d||
f��YnX|	s"d|	krJt|�}|sTt	d|��qTn
|	d}t|�}|||	fS(uSParses svn+http://blahblah@rev#egg=Foobar into a requirement
    (Foobar) and a URLu^(.+)(\[[^\]]+\])$iiusetup.pyu;Directory %r is not installable. File 'setup.py' not found.ufile:u__placeholder__u%s:u%s+%su+ub%s should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+iuFor --editable=%s only u, cSsg|]}|jd�qS(u+URL(uname(u.0ubackend((u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>�s	u"parse_editable.<locals>.<listcomp>u is currently supportedu*--editable=%s error in editable options:%sueggu@--editable=%s is not the right format; it must have #egg=PackageN(uNoneureumatchugroupuosupathuisdiruexistsujoinuInstallationErrorupath_to_urluloweru
startswithu
pkg_resourcesuRequirementuparseuextrasuvcsusplituget_backendubackendsu_build_editable_optionsu	Exceptionusysuexc_infou_build_req_from_urlu_strip_postfix(
ueditable_requdefault_vcsuurluextrasumu
url_no_extrasuversion_controluvc_typeu
error_messageuoptionsumessageurequpackage((u /tmp/pip-bsqfwp-build/pip/req.pyuparse_editable�sT! 
$

uparse_editablecBs�|EeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
ddd�Zdd�Z
dd�ZdS(uUninstallPathSetuMA set of file paths to be removed in the uninstallation of a
    requirement.cCs@t�|_t�|_i|_||_d|_g|_dS(N(usetupathsu_refuseupthudistuNoneusave_diru_moved_paths(uselfudist((u /tmp/pip-bsqfwp-build/pip/req.pyu__init__�s			uUninstallPathSet.__init__cCs
t|�S(us
        Return True if the given path is one we are permitted to
        remove/modify, False otherwise.

        (uis_local(uselfupath((u /tmp/pip-bsqfwp-build/pip/req.pyu
_permitted�suUninstallPathSet._permittedcCsFt|j�sBtjd|jjt|jj�tjf�dSdS(Nu1Not uninstalling %s at %s, outside environment %sFT(u
dist_is_localudistuloggerunotifyuproject_nameunormalize_pathulocationusysuprefixuFalseuTrue(uself((u /tmp/pip-bsqfwp-build/pip/req.pyu_can_uninstall�s
	&uUninstallPathSet._can_uninstallcCs�t|�}tjj|�s"dS|j|�rD|jj|�n|jj|�tjj|�ddkr�t	r�|jt
j|��ndS(Niu.py(unormalize_pathuosupathuexistsu
_permittedupathsuaddu_refuseusplitextuuses_pycacheuimpucache_from_source(uselfupath((u /tmp/pip-bsqfwp-build/pip/req.pyuadd�s"uUninstallPathSet.addcCskt|�}|j|�rW||jkr@t|�|j|<n|j|j|�n|jj|�dS(N(unormalize_pathu
_permittedupthuUninstallPthEntriesuaddu_refuse(uselfupth_fileuentry((u /tmp/pip-bsqfwp-build/pip/req.pyuadd_pth�suUninstallPathSet.add_pthcsYt�}xIt|dt�D]5�t�fdd�|D��s|j��qqW|S(u�Compact a path set to contain the minimal number of paths
        necessary to contain all paths in the set. If /a/path/ and
        /a/path/to/a/file.txt are both in the set, leave only the
        shorter path.ukeycsJg|]@}�j|�oC�t|jtjj��tjjk�qS((u
startswithulenurstripuosupathusep(u.0u	shortpath(upath(u /tmp/pip-bsqfwp-build/pip/req.pyu
<listcomp>
s	u,UninstallPathSet.compact.<locals>.<listcomp>(usetusortedulenuanyuadd(uselfupathsushort_paths((upathu /tmp/pip-bsqfwp-build/pip/req.pyucompacts	
uUninstallPathSet.compactcCs5tjj|jtjj|�djtjj��S(Ni(uosupathujoinusave_diru
splitdriveulstripusep(uselfupath((u /tmp/pip-bsqfwp-build/pip/req.pyu_stashs	uUninstallPathSet._stashcCs�|j�sdS|js4tjd|jj�dStjd|jj�tjd7_t|j|j��}z6|r�d}n-x|D]}tj|�q�Wt	dd�}|j
r�tjd�x*|j|j
�D]}tj|�q�Wn|dkr�tjd	d
dd�|_
xK|D]C}|j|�}tjd
|�|jj|�t||�q"Wx!|jj�D]}|j�qyWtjd|jj�nWdtjd8_XdS(u[Remove paths in ``self.paths`` with confirmation (unless
        ``auto_confirm`` is True).Nu7Can't uninstall '%s'. No files were found to uninstall.uUninstalling %s:iuyuProceed (y/n)? unu.Not removing or modifying (outside of prefix):usuffixu
-uninstalluprefixupip-uRemoving file or directory %suSuccessfully uninstalled %s(uyun(u_can_uninstallupathsuloggerunotifyudistuproject_nameuindentusorteducompactuasku_refuseutempfileumkdtempusave_diru_stashuinfou_moved_pathsuappendurenamesupthuvaluesuremove(uselfuauto_confirmupathsuresponseupathunew_pathupth((u /tmp/pip-bsqfwp-build/pip/req.pyuremoves<		
	

uUninstallPathSet.removecCs�|jdkr*tjd|jj�dStjd|jj�x>|jD]3}|j	|�}tj
d|�t||�qKWx|jD]}|j
�q�WdS(u1Rollback the changes previously made by remove().u'Can't roll back %s; was not uninstalleduRolling back uninstall of %suReplacing %sNF(usave_diruNoneuloggeruerrorudistuproject_nameuFalseunotifyu_moved_pathsu_stashuinfourenamesupthurollback(uselfupathutmp_pathupth((u /tmp/pip-bsqfwp-build/pip/req.pyurollback9suUninstallPathSet.rollbackcCs5|jdk	r1t|j�d|_g|_ndS(u?Remove temporary save dir: rollback will no longer be possible.N(usave_diruNoneurmtreeu_moved_paths(uself((u /tmp/pip-bsqfwp-build/pip/req.pyucommitFs
	uUninstallPathSet.commitNF(u__name__u
__module__u__qualname__u__doc__u__init__u
_permittedu_can_uninstalluadduadd_pthucompactu_stashuFalseuremoveurollbackucommit(u
__locals__((u /tmp/pip-bsqfwp-build/pip/req.pyuUninstallPathSet�s	
%
uUninstallPathSetcBsD|EeZdZdd�Zdd�Zdd�Zdd�Zd	S(
uUninstallPthEntriescCsGtjj|�s%td|��n||_t�|_d|_dS(Nu.Cannot remove entries from nonexistent file %s(	uosupathuisfileuUninstallationErrorufileusetuentriesuNoneu_saved_lines(uselfupth_file((u /tmp/pip-bsqfwp-build/pip/req.pyu__init__Os
	uUninstallPthEntries.__init__cCsatjj|�}tjdkrMtjj|�drM|jdd�}n|jj|�dS(Nuwin32iu\u/(	uosupathunormcaseusysuplatformu
splitdriveureplaceuentriesuadd(uselfuentry((u /tmp/pip-bsqfwp-build/pip/req.pyuaddVs&uUninstallPthEntries.addcCs�tjd|j�t|jd�}|j�}||_|j�tdd�|D��rgd}nd}xR|jD]G}y,tjd|�|j	t
||��Wqwtk
r�YqwXqwWt|jd�}|j|�|j�dS(	NuRemoving pth entries from %s:urbcss!|]}td�|kVqdS(u
N(ub(u.0uline((u /tmp/pip-bsqfwp-build/pip/req.pyu	<genexpr>gsu-UninstallPthEntries.remove.<locals>.<genexpr>u
u
uRemoving entry: %suwb(
uloggeruinfoufileuopenu	readlinesu_saved_linesucloseuanyuentriesuremoveubu
ValueErroru
writelines(uselfufhulinesuendlineuentry((u /tmp/pip-bsqfwp-build/pip/req.pyuremove`s"	
	
	
uUninstallPthEntries.removecCsk|jdkr'tjd|j�dStjd|j�t|jd�}|j|j�|j	�dS(Nu.Cannot roll back changes to %s, none were madeu!Rolling %s back to previous stateuwbFT(u_saved_linesuNoneuloggeruerrorufileuFalseuinfouopenu
writelinesucloseuTrue(uselfufh((u /tmp/pip-bsqfwp-build/pip/req.pyurollbackus
uUninstallPthEntries.rollbackN(u__name__u
__module__u__qualname__u__init__uadduremoveurollback(u
__locals__((u /tmp/pip-bsqfwp-build/pip/req.pyuUninstallPthEntriesNs
uUninstallPthEntriescBs>|EeZdZdZdd�Zdd�Zdd�ZdS(	uFakeFileuQWrap a list of lines in an object with readline() to make
    ConfigParser happy.cCsdd�|D�|_dS(Ncss|]}|VqdS(N((u.0ul((u /tmp/pip-bsqfwp-build/pip/req.pyu	<genexpr>�su$FakeFile.__init__.<locals>.<genexpr>(u_gen(uselfulines((u /tmp/pip-bsqfwp-build/pip/req.pyu__init__�suFakeFile.__init__cCsTy7yt|j�SWntk
r5|jj�SYnXWntk
rOdSYnXdS(Nu(unextu_genu	NameErroru
StopIteration(uself((u /tmp/pip-bsqfwp-build/pip/req.pyureadline�s

uFakeFile.readlinecCs|jS(N(u_gen(uself((u /tmp/pip-bsqfwp-build/pip/req.pyu__iter__�suFakeFile.__iter__N(u__name__u
__module__u__qualname__u__doc__u__init__ureadlineu__iter__(u
__locals__((u /tmp/pip-bsqfwp-build/pip/req.pyuFakeFile�s	uFakeFile(cuemail.parseru
FeedParseruosuimpulocaleureusysushutilutempfileutextwrapuzipfileudistutils.utiluchange_rootu
pip.locationsubin_pyurunning_under_virtualenvuPIP_DELETE_MARKER_FILENAMEuwrite_delete_marker_fileubin_userupip.exceptionsuInstallationErroruUninstallationErroruUnsupportedWheeluBestVersionAlreadyInstalleduInvalidWheelFilenameuDistributionNotFounduPreviousBuildDirErrorupip.vcsuvcsupip.loguloggerupip.utiludisplay_pathurmtreeuaskuask_path_existsu
backup_diruis_installable_diruis_localu
dist_is_localudist_in_usersiteudist_in_site_packagesurenamesunormalize_pathu
egg_link_pathumake_path_relativeucall_subprocessu
is_prereleaseunormalize_nameupip.backwardcompatuurlparseuurllibuuses_pycacheuConfigParserustring_typesu	HTTPErroruget_python_versionubu	pip.indexuLinkubuild_prefixupip.downloadu
PipSessionuget_file_contentuis_urluurl_to_pathupath_to_urluis_archive_fileuunpack_vcs_linku
is_vcs_urluis_file_urluunpack_file_urluunpack_http_urlu	pip.wheelupipumove_wheel_filesuWheelu	wheel_extupip._vendoru
pkg_resourcesusixuread_text_fileuobjectuInstallRequirementuRequirementsuRequirementSetu_make_build_dirucompileuIu
_scheme_reuNoneuparse_requirementsu_strip_postfixu_build_req_from_urlu_build_editable_optionsuparse_editableuUninstallPathSetuUninstallPthEntriesuFakeFile(((u /tmp/pip-bsqfwp-build/pip/req.pyu<module>sT(4p:L���W��N	cA|2

Zerion Mini Shell 1.0