403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.6/site-packages/setuptools/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/setuptools/__pycache__/config.cpython-36.opt-2.pyc
3

��aqZ�@sddlZddlZddlZddlZddlZddlZddlZddlmZddlm	Z	ddlm
Z
ddlmZddl
Z
ddlmZmZddlmZmZddlmZGd	d
�d
�Ze
jdd��Zddd�Zdd�Zdd�Zddd�ZGdd�d�ZGdd�de�ZGdd�de�ZdS)�N)�defaultdict)�partial)�wraps)�iglob)�DistutilsOptionError�DistutilsFileError)�Version�InvalidVersion)�SpecifierSetc@seZdZdd�Zdd�ZdS)�StaticModulec	CsLtjj|�}t|j��}|j�}WdQRXtj|�}t|�j	t
��|`dS)N)�	importlib�util�	find_spec�open�origin�read�ast�parse�vars�update�locals�self)r�name�specZstrm�src�module�r�/usr/lib/python3.6/config.py�__init__s
zStaticModule.__init__csVyt�fdd�|jjD��Stk
rP}ztdjft���|�WYdd}~XnXdS)Nc3sH|]@}t|tj�r|jD](}t|tj�r|j�krtj|j�VqqdS)N)�
isinstancerZAssignZtargets�Name�idZliteral_eval�value)�.0Z	statement�target)�attrrr�	<genexpr>$s
z+StaticModule.__getattr__.<locals>.<genexpr>z#{self.name} has no attribute {attr})�nextrZbody�	Exception�AttributeError�formatr)rr%�er)r%r�__getattr__!s
zStaticModule.__getattr__N)�__name__�
__module__�__qualname__rr,rrrrrsrccs,ztjjd|�dVWdtjj|�XdS)Nr)�sys�path�insert�remove)r1rrr�
patch_path0s
r4Fc	Cs�ddlm}m}tjj|�}tjj|�s4td|��tj�}tj	tjj
|��zJ|�}|rb|j�ng}||krx|j|�|j
||d�t||j|d�}Wdtj	|�Xt|�S)Nr)�Distribution�
_Distributionz%Configuration file %s does not exist.)�	filenames)�ignore_option_errors)Zsetuptools.distr5r6�osr1�abspath�isfiler�getcwd�chdir�dirnameZfind_config_files�appendZparse_config_files�parse_configuration�command_options�configuration_to_dict)	�filepathZfind_othersr8r5r6Zcurrent_directoryZdistr7�handlersrrr�read_configuration<s 
rEcCs.djft��}tjt||�}t|||�}|�S)Nz	get_{key})r*r�	functoolsr�getattr)�
target_obj�keyZgetter_nameZby_attribute�getterrrr�_get_optionisrKcCsDtt�}x6|D].}x(|jD]}t|j|�}|||j|<qWqW|S)N)r�dict�set_optionsrKrH�section_prefix)rDZconfig_dictZhandler�optionr"rrrrBus
rBcCs6t|||�}|j�t|j|||j�}|j�||fS)N)�ConfigOptionsHandlerr�ConfigMetadataHandler�metadata�package_dir)ZdistributionrAr8�options�metarrrr@�sr@c@s�eZdZdZiZd&dd�Zedd��Zdd�Ze	d'd
d��Z
e	d(dd
��Ze	dd��Ze	dd��Z
e	dd��Ze	dd��Zedd��Zedd��Ze	d)dd��Ze	dd��Ze	d*dd��Zd d!�Zd"d#�Zd$d%�ZdS)+�
ConfigHandlerNFcCsbi}|j}x:|j�D].\}}|j|�s(q|j|d�jd�}|||<qW||_||_||_g|_dS)N��.)	rN�items�
startswith�replace�stripr8rH�sectionsrM)rrHrTr8r]rN�section_name�section_optionsrrrr�s
zConfigHandler.__init__cCstd|jj��dS)Nz!%s must provide .parsers property)�NotImplementedError�	__class__r-)rrrr�parsers�szConfigHandler.parsersc	Cs�t�}|j}|jj||�}t|||�}||kr6t|��|r>dSd}|jj|�}|r�y||�}Wn tk
r~d}|jsz�YnX|r�dSt|d|d�}|dkr�t	|||�n||�|j
j|�dS)NFTzset_%s)�tuplerH�aliases�getrG�KeyErrorrbr(r8�setattrrMr?)	rZoption_namer"�unknownrHZ
current_valueZskip_option�parser�setterrrr�__setitem__�s0zConfigHandler.__setitem__�,cCs8t|t�r|Sd|kr |j�}n
|j|�}dd�|D�S)N�
cSsg|]}|j�r|j��qSr)r\)r#�chunkrrr�
<listcomp>sz-ConfigHandler._parse_list.<locals>.<listcomp>)r�list�
splitlines�split)�clsr"�	separatorrrr�_parse_list�s



zConfigHandler._parse_listcsnd}|j�|d�}g}xR|D]J�t�fdd	�|D��r\|jtd
d	�ttjj���D���q|j��qW|S)N�*�?�[�]�{�})rtc3s|]}|�kVqdS)Nr)r#�char)r"rrr&sz1ConfigHandler._parse_list_glob.<locals>.<genexpr>css |]}tjj|tj��VqdS)N)r9r1�relpathr<)r#r1rrrr&s)rvrwrxryrzr{)	ru�any�extend�sortedrr9r1r:r?)rsr"rtZglob_characters�valuesZexpanded_valuesr)r"r�_parse_list_globs

zConfigHandler._parse_list_globcCsTd}i}xF|j|�D]8}|j|�\}}}||kr<td|��|j�||j�<qW|S)N�=z(Unable to parse option value to dict: %s)ru�	partitionrr\)rsr"rt�result�linerI�sep�valrrr�_parse_dict s
zConfigHandler._parse_dictcCs|j�}|dkS)N�1�true�yes)r�r�r�)�lower)rsr"rrr�_parse_bool3szConfigHandler._parse_boolcs�fdd�}|S)Ncs d}|j|�rtdj����|S)Nzfile:zCOnly strings are accepted for the {0} field, files are not accepted)rZ�
ValueErrorr*)r"Zexclude_directive)rIrrriIs
z3ConfigHandler._exclude_files_parser.<locals>.parserr)rsrIrir)rIr�_exclude_files_parser=s	z#ConfigHandler._exclude_files_parsercs\d}t|t�s|S|j|�s |S|t|�d�}dd�|jd�D�}dj�fdd�|D��S)Nzfile:css|]}tjj|j��VqdS)N)r9r1r:r\)r#r1rrrr&ksz,ConfigHandler._parse_file.<locals>.<genexpr>rlrmc3s2|]*}�j|�sdrtjj|�r�j|�VqdS)TN)�
_assert_localr9r1r;�
_read_file)r#r1)rsrrr&ms)r�strrZ�lenrr�join)rsr"Zinclude_directiverZ	filepathsr)rsr�_parse_fileTs


zConfigHandler._parse_filecCs|jtj��std|��dS)Nz#`file:` directive can not access %s)rZr9r<r)rCrrrr�rszConfigHandler._assert_localc	Cs"tj|dd��
}|j�SQRXdS)Nzutf-8)�encoding)�iorr)rC�frrrr�wszConfigHandler._read_filecCsd}|j|�s|S|j|d�j�jd�}|j�}dj|�}|p@d}tj�}|r�|d|kr�||d}|jdd�}	t	|	�dkr�tj
jtj�|	d�}|	d}q�|}nd|kr�tj
jtj�|d�}t|��4ytt
|�|�Stk
r�tj|�}
YnXWdQRXt|
|�S)Nzattr:rWrXrr�/�)rZr[r\rr�popr�r9r<�rsplitr�r1r4rGrr(r�
import_module)rsr"rSZattr_directiveZ
attrs_pathZ	attr_nameZmodule_name�parent_pathZcustom_path�partsrrrr�_parse_attr|s0



zConfigHandler._parse_attrcs�fdd�}|S)Ncs|}x�D]}||�}q
W|S)Nr)r"�parsed�method)�
parse_methodsrrr�s
z1ConfigHandler._get_parser_compound.<locals>.parser)rsr�rr)r�r�_get_parser_compound�s
z"ConfigHandler._get_parser_compoundcCs:i}|pdd�}x$|j�D]\}\}}||�||<qW|S)NcSs|S)Nr)r�rrr�<lambda>�sz6ConfigHandler._parse_section_to_dict.<locals>.<lambda>)rY)rsr_Z
values_parserr"rI�_r�rrr�_parse_section_to_dict�s

z$ConfigHandler._parse_section_to_dictcCs@x:|j�D].\}\}}y|||<Wq
tk
r6Yq
Xq
WdS)N)rYrf)rr_rr�r"rrr�
parse_section�s
zConfigHandler.parse_sectioncCsfx`|jj�D]R\}}d}|r$d|}t|d|jdd�d�}|dkrVtd|j|f��||�qWdS)NrWz_%szparse_section%srX�__z0Unsupported distribution option section: [%s.%s])r]rYrGr[rrN)rr^r_Zmethod_postfixZsection_parser_methodrrrr�szConfigHandler.parsecst�����fdd��}|S)Ncstj����||�S)N)�warnings�warn)�args�kwargs)�func�msg�
warning_classrr�config_handler�sz@ConfigHandler._deprecated_config_handler.<locals>.config_handler)r)rr�r�r�r�r)r�r�r�r�_deprecated_config_handler�sz(ConfigHandler._deprecated_config_handler)F)rl)rl)N)N)r-r.r/rNrdr�propertyrbrk�classmethodrur�r�r�r�r��staticmethodr�r�r�r�r�r�rr�rrrrrV�s.
&
-rVcsHeZdZdZddddd�ZdZd�fd	d
�	Zedd��Zd
d�Z	�Z
S)rQrRZurl�description�classifiers�	platforms)Z	home_pageZsummaryZ
classifier�platformFNcstt|�j|||�||_dS)N)�superrQrrS)rrHrTr8rS)rarrrs

zConfigMetadataHandler.__init__cCs^|j}|j}|j}|j}||||j|dt�||j||�|d�|j|d�dt�||||j|d�
S)Nz[The requires parameter is deprecated, please use install_requires for runtime dependencies.�license�license_filezDThe license_file parameter is deprecated, use license_files instead.)
r��keywordsZprovidesZrequiresZ	obsoletesr�r�r�Z
license_filesr�Zlong_description�versionZproject_urls)rur�r�r�r��DeprecationWarningr��_parse_version)r�
parse_listZ
parse_file�
parse_dictZexclude_files_parserrrrrbs.
zConfigMetadataHandler.parserscCs�|j|�}||krV|j�}yt|�Wn*tk
rPd}t|jft����YnX|S|j||j�}t	|�rr|�}t
|t�s�t|d�r�dj
tt|��}nd|}|S)NzCVersion loaded from {value} does not comply with PEP 440: {version}�__iter__rXz%s)r�r\rr	rr*rr�rS�callablerr��hasattrr��map)rr"r�Ztmplrrrr�?s"


z$ConfigMetadataHandler._parse_version)FN)r-r.r/rNrdZstrict_moderr�rbr��
__classcell__rr)rarrQs"rQc@sdeZdZdZedd��Zdd�Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dd�ZdS)rPrTcCsN|j}t|jdd�}|j}|j}|j}|||||||||||j|j|t|d�S)N�;)rt)Zzip_safeZinclude_package_datarS�scriptsZeager_resourcesZdependency_linksZnamespace_packagesZinstall_requiresZsetup_requiresZ
tests_requireZpackages�entry_pointsZ
py_modulesZpython_requiresZcmdclass)rurr�r��_parse_cmdclass�_parse_packagesr�r
)rr�Zparse_list_semicolonZ
parse_boolr�Zparse_cmdclassrrrrbis(zConfigOptionsHandler.parserscs$dd���fdd�|j|�j�D�S)NcSs8|jd�}||dd�}|d|�}t|�}t||�S)NrXr�)�rfind�
__import__rG)Zqualified_class_name�idx�
class_nameZpkg_namerrrr�
resolve_class�s

z;ConfigOptionsHandler._parse_cmdclass.<locals>.resolve_classcsi|]\}}�|�|�qSrr)r#�k�v)r�rr�
<dictcomp>�sz8ConfigOptionsHandler._parse_cmdclass.<locals>.<dictcomp>)r�rY)rr"r)r�rr��s	z$ConfigOptionsHandler._parse_cmdclasscCsjddg}|j�}||kr"|j|�S||dk}|j|jjdi��}|rTddlm}nddlm}|f|�S)Nzfind:zfind_namespace:r�z
packages.findr)�find_namespace_packages)�
find_packages)r\ru�parse_section_packages__findr]reZ
setuptoolsr�r�)rr"Zfind_directivesZ
trimmed_valueZfindns�find_kwargsr�rrrr��s
z$ConfigOptionsHandler._parse_packagescsT|j||j�}dddg�t�fdd�|j�D��}|jd�}|dk	rP|d|d<|S)N�where�includeZexcludecs$g|]\}}|�kr|r||f�qSrr)r#r�r�)�
valid_keysrrro�szEConfigOptionsHandler.parse_section_packages__find.<locals>.<listcomp>r)r�rurLrYre)rr_Zsection_datar�r�r)r�rr��s

z1ConfigOptionsHandler.parse_section_packages__findcCs|j||j�}||d<dS)Nr�)r�ru)rr_r�rrr�parse_section_entry_points�sz/ConfigOptionsHandler.parse_section_entry_pointscCs.|j||j�}|jd�}|r*||d<|d=|S)NrvrW)r�rure)rr_r��rootrrr�_parse_package_data�s
z(ConfigOptionsHandler._parse_package_datacCs|j|�|d<dS)NZpackage_data)r�)rr_rrr�parse_section_package_data�sz/ConfigOptionsHandler.parse_section_package_datacCs|j|�|d<dS)NZexclude_package_data)r�)rr_rrr�"parse_section_exclude_package_data�sz7ConfigOptionsHandler.parse_section_exclude_package_datacCs"t|jdd�}|j||�|d<dS)Nr�)rtZextras_require)rrur�)rr_r�rrr�parse_section_extras_require�sz1ConfigOptionsHandler.parse_section_extras_requirecCs(|j||j�}dd�|j�D�|d<dS)NcSsg|]\}}||f�qSrr)r#r�r�rrrro�szAConfigOptionsHandler.parse_section_data_files.<locals>.<listcomp>Z
data_files)r�r�rY)rr_r�rrr�parse_section_data_files�sz-ConfigOptionsHandler.parse_section_data_filesN)r-r.r/rNr�rbr�r�r�r�r�r�r�r�r�rrrrrPes

rP)FF)F) rr�r9r0r�rFr�collectionsrrrZglobr�
contextlibZdistutils.errorsrrZ#setuptools.extern.packaging.versionrr	Z&setuptools.extern.packaging.specifiersr
r�contextmanagerr4rErKrBr@rVrQrPrrrr�<module>s2
-
ca

Youez - 2016 - github.com/yon3zu
LinuXploit