GhostManSec
Server: Apache
System: Linux s323.xrea.com 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: moonarc (17751)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/ptr.pyo
�
YZc@s�dZddlZddlZddlZddlZddl	Z
ddlZyddl
mZWnek
runXddlZddljjZddlmZejdd��Zdefd��YZdejfd	��YZdS(
s
Implementation
i����N(tmap(tDistributionccs>tj}|dk	r#|tj(nz	|VWd|tj(XdS(N(t_systargvtNone(trepltsaved((s'/usr/lib/python2.7/site-packages/ptr.pyt
_save_argvs

	tCustomizedDistcBseZdZdZd�ZRS(cCs}ddlm}tidgd6�}|j�|jd�}d}x*t|�D]}||krR||=qRqRW|jr�|j}d|kr�|dd
j�|}nd|f|d<n|jr�d|jf|d	<n|j	r�d|j	f|d<nt
|d
tj�}|�}	||ddgd|	dt
dtdddtdtdt
dt
dt�
}
|
j�|
j|�S(si Specialized version of Distribution.fetch_build_egg
		that respects respects allow_hosts and index_url. i����(teasy_installR	tscript_argst
find_linkst	site_dirst	index_urltoptimizetallow_hostsitsetupttesttget_egg_cache_dirtargstxtinstall_dirtexclude_scriptstalways_copytbuild_directoryteditabletupgradet
multi_versiont	no_reporttuser(RRR
RRRN(tsetuptools.command.easy_installR	Rtparse_config_filestget_option_dicttlisttdependency_linkstsplitRR
tgetattrt_ostgetcwdtTruetFalseRtensure_finalized(tselftreqR	tdisttoptstkeeptkeytlinkstinstall_dir_funcRtcmd((s'/usr/lib/python2.7/site-packages/ptr.pytfetch_build_egg's6
	
			
N(t__name__t
__module__RRR
R3(((s'/usr/lib/python2.7/site-packages/ptr.pyR"stPyTestcBsteZdZddddgZd	�Zd
�Zed��Zd�Z	d
�Z
d�Zed��Z
d�ZRS(sW
	>>> import setuptools
	>>> dist = setuptools.Distribution()
	>>> cmd = PyTest(dist)
	textrass2Install (all) setuptools extras when running testss
index-url=s8Specify an index url from which to retrieve dependenciessallow-hosts=sHWhitelist of comma-separated hosts to allow when retrieving dependenciessaddopts=s=Additional options to be passed verbatim to the pytest runnercCs(t|_d|_d|_g|_dS(N(R(R7RR
Rtaddopts(R*((s'/usr/lib/python2.7/site-packages/ptr.pytinitialize_options[s			cCs%|jr!tj|j�|_ndS(N(R8t_shlexR#(R*((s'/usr/lib/python2.7/site-packages/ptr.pytfinalize_optionsas	cCs$|p#tj|�o#tj|�S(se
		Given an environment marker, return True if the marker is valid
		and matches this environment.
		(t
pkg_resourcestinvalid_markertevaluate_marker(tmarker((s'/usr/lib/python2.7/site-packages/ptr.pyt
marker_passesescCs%tjtjj|�|j|��S(s4
		Extend install_dists to include extras support
		(t
_itertoolstchaintorigRt
install_diststinstall_extra_dists(R*R,((s'/usr/lib/python2.7/site-packages/ptr.pyRDqscsc|jpi}d�|j�D�}�fd�|D�}tt|j|��}tjj|�S(sf
		Install extras that are indicated by markers or
		install all extras if '--extras' is indicated.
		css*|] \}}|jd�|fVqdS(t:N(t	partition(t.0tspectreqs((s'/usr/lib/python2.7/site-packages/ptr.pys	<genexpr>�sc3sC|]9\\}}}}|s(�jr�j|�r|VqdS(N(R7R@(RHtnametsepR?RJ(R*(s'/usr/lib/python2.7/site-packages/ptr.pys	<genexpr>�s(textras_requiretitemsR!Rtfetch_build_eggsRARBt
from_iterable(R*R,RMtspec_extrastmatching_extrastresults((R*s'/usr/lib/python2.7/site-packages/ptr.pyREzs
c	Cs�t�}x-dj�D]}t||t||��qWx0dj�D]"}t||t|j|��qFW|j|�}|jr�|jd�dStt	j
d�|�}|j|��"|j��|j
�SWdQXWdQXdS(sl
		Override run to ensure requirements are available in this session (but
		don't install them anywhere).
		sallow_hosts index_urls?dependency_links install_requires tests_require extras_require sskipping tests (dry run)Ntlocation(RR#tsetattrR$tdistributionRDtdry_runtannounceRt	_operatort
attrgettertpaths_on_pythonpathtproject_on_sys_patht	run_tests(R*R,tattrtinstalled_diststpaths((s'/usr/lib/python2.7/site-packages/ptr.pytrun�s	 	

cCsdg|jS(Ntpytest(R8(R*((s'/usr/lib/python2.7/site-packages/ptr.pyt_argv�scCsLttjd |j��,td�j�}|rBt|��nWdQXdS(s8
		Invoke pytest, replacing argv. Return result code.
		iRbN(RRRR8t
__import__tmaint
SystemExit(R*tresult_code((s'/usr/lib/python2.7/site-packages/ptr.pyR]�sN(R7Ns2Install (all) setuptools extras when running tests(s
index-url=Ns8Specify an index url from which to retrieve dependencies(sallow-hosts=NsHWhitelist of comma-separated hosts to allow when retrieving dependencies(saddopts=Ns=Additional options to be passed verbatim to the pytest runner(R4R5t__doc__Rtuser_optionsR9R;tstaticmethodR@RDRERatpropertyRcR](((s'/usr/lib/python2.7/site-packages/ptr.pyR6Js							(RhtosR%tshlexR:t
contextlibt_contextlibtsysRtoperatorRYt	itertoolsRAtfuture_builtinsRtImportErrorR<tsetuptools.command.testtcommandRRCt
setuptoolsRtcontextmanagerRRRR6(((s'/usr/lib/python2.7/site-packages/ptr.pyt<module>s"

(