Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/setuptools/__pycache__/dist.cpython-311.pyc



]jUJdgZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZddl
mZmZmZddlZddlZddlZddlZddlZddlmZddlmZmZdd	lmZdd
lmZddl m!Z!m"Z"dd
l#m$Z$ddl%m&Z&m'Z'ddl(m)Z)m*Z*ddl+m,Z,ddl-m.Z.ddl-m/Z/ddl-m0Z0ddl-m1Z2ddl3m4Z4ddl5m6Z6m7Z7ddl8m9Z9ddl:m;Z;ddl<m=Z=m>Z>e?e@fZAdZBdZCdZDdZEdZFdZGd ZHd!ZId"ZJd#ZKd$ZLd%ZMd&ZNd'ZOe;ejPjQZRGd(deRZQGd)d*e>ZSdS)+DistributionN)suppress)iglob)Path)ListOptionalSet)DEBUG)DistutilsOptionErrorDistutilsSetupErrortranslate_longopt)	strtobool)	partitionunique_everseen)
OrderedSet)
InvalidMarkerMarker)InvalidSpecifierSpecifierSet)Version)
_entry_points)_normalization)_reqs)command)metadata)setupcfg
pyprojecttoml)ConfigDiscovery)
get_unpatched)InformationOnlySetuptoolsDeprecationWarningc	tj|dd}|jrJdS#ttt
tf$r}t|d|d|d}~wwxYw)N)valuenamegroupz/ must be importable 'module:attrs' string (got ))r
EntryPointextras	TypeError
ValueErrorAttributeErrorAssertionErrorr)distattrr%epes     F/opt/imunify360/venv/lib64/python3.11/site-packages/setuptools/dist.pycheck_importabler4-s~

 u4t
D
D
D9}z>>B!FJddEEER

	s $AAAc	t|ttfsJd||ksJdS#tt
ttf$r}t|d|d|d}~wwxYw)z"Verify that value is a string listz  must be a list of strings (got r(N)	
isinstancelisttuplejoinr+r,r-r.rr/r0r%r2s    r3assert_string_listr<7s	%$/////wwu~~&&&&&&z>>B!7;ttUUUC

	s9=A5A00A5c8|}t||||D]}||stdd|zz|d\}}}|r%||vr!tjd||tjdddd	S)
z(Verify that namespace packages are validz1Distribution contains no modules or packages for znamespace package %r.z^WARNING: %r is declared as a package namespace, but %r is not: please correct this in setup.pyz/The namespace_packages parameter is deprecated.z<Please replace its usage with implicit namespaces (PEP 420).z3references/keywords.html#keyword-namespace-packages)see_docsN)	r<has_contents_forr
rpartition	distutilslogwarnr#emit)r/r0r%ns_packagesnspparentsepchilds        r3	check_nsprKEsKtT;///

$$S))	%C(3./
!^^C00U	fK//M;	


	%)=JJ	
	
	
	
	


c	ttjt|dS#t
ttf$r}td|d}~wwxYw)z+Verify that extras_require mapping is validz'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.N)	r8	itertoolsstarmap_check_extraitemsr+r,r-rr;s    r3check_extrasrRbsrY
|U[[]]
;
;<<<<<z>2!
&

		s9=A)A$$A)c|d\}}}	t|n'#t$rd|d|d}t|dwxYwt	tj|dS)N:zInvalid environment marker: z (r()r
_check_markerrrr8rparse)extrareqsr&rImarkermsgs      r3rPrPns,,D#v1f111AVAAuAAA!#&&D01	T		s	+$AcT|sdSt|}|dSN)revaluate)rYms  r3rUrUxs+vAJJLLLLLrLcxt||kr&d}t|||dS)z)Verify that value is True, False, 0, or 1z0{attr!r} must be a boolean value (got {value!r}))r0r%N)boolrformat)r/r0r%tmpls    r3assert_boolrcs>E{{eA!$++4u+"E"EFFFrLch|st|ddSt|d)Nz is ignored.z is invalid.)DistDeprecationWarningrErr/r0r%s   r3invalid_unless_falsergsC##t$9$9$9:::
333
4
44rLc 	ttj|t|tt
frt
ddS#ttf$r,}d}t|	|||d}~wwxYw)z9Verify that install_requires is a valid requirements listzUnordered types are not allowedzm{attr!r} must be a string or list of strings containing valid project/version requirement specifiers; {error}r0errorN)
r8rrVr7dictsetr+r,rrar/r0r%rjrbs     r3check_requirementsrns	RU[

   edC[))	?=>>>	?	?z"RRR
O	
"$++4u+"E"EFFEQRsAAB
!'BB
c	t|dS#ttf$r,}d}t||||d}~wwxYw)z.Verify that value is a valid version specifierzF{attr!r} must be a string containing valid version specifiers; {error}riN)rrr-rrarms     r3check_specifierrpsnRUn-RRRW	
"$++4u+"E"EFFEQ	RsA'AAct	tj|dS#t$r}t||d}~wwxYw)z)Verify that entry_points map is parseableN)rload	Exceptionrr;s    r3check_entry_pointsrtsM,5!!!!!,,,!!$$!+,s
727cNt|tstddS)Nztest_suite must be a string)r7strrrfs   r3check_test_suiterws0eS!!A!"?@@@AArLc`t|ts"td||D]a\}}t|t
s#td||t
|d||bdS)z@Verify that value is a dictionary of package names to glob listszT{!r} must be a dictionary mapping package names to lists of string wildcard patternsz,keys of {!r} dict must be strings (got {!r})zvalues of {!r} dictN)r7rkrrarQrvr<)r/r0r%kvs     r3check_package_datar{seT""
!
''-vd||

	


HH1!S!!	%>EEdANN
	4!6!=!=d!C!CQGGGGHHrLcz|D]7}tjd|s tjd|8dS)Nz\w+(\.\w+)*z[WARNING: %r not a valid package name; please use only .-separated package names in setup.py)rematchrBrCrD)r/r0r%pkgnames    r3check_packagesrsRx00	M8


rLcPeZdZdZdeeddeedZdZdZ	d-dZ
d	Zd
Ze
dZdZd
ZdZe
dZd-dZdZdZdZd-dZdZd.dZdZdZe
dZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-fd,Z.xZ/S)/raGDistribution with support for tests and package data

    This is an enhanced version of 'distutils.dist.Distribution' that
    effectively adds the following new optional keyword arguments to 'setup()':

     'install_requires' -- a string or sequence of strings specifying project
        versions that the distribution requires when installed, in the format
        used by 'pkg_resources.require()'.  They will be installed
        automatically when the package is installed.  If you wish to use
        packages that are not available in PyPI, or want to give your users an
        alternate download location, you can add a 'find_links' option to the
        '[easy_install]' section of your project's 'setup.cfg' file, and then
        setuptools will scan the listed web pages for links that satisfy the
        requirements.

     'extras_require' -- a dictionary mapping names of optional "extras" to the
        additional requirement(s) that using those extras incurs. For example,
        this::

            extras_require = dict(reST = ["docutils>=0.3", "reSTedit"])

        indicates that the distribution can optionally provide an extra
        capability called "reST", but it can only be used if docutils and
        reSTedit are installed.  If the user installs your package using
        EasyInstall and requests one of your extras, the corresponding
        additional requirements will be installed if needed.

     'test_suite' -- the name of a test suite to run for the 'test' command.
        If the user runs 'python setup.py test', the package will be installed,
        and the named test suite will be run.  The format is the same as
        would be used on a 'unittest.py' command line.  That is, it is the
        dotted name of an object to import and call to generate a test suite.

     'package_data' -- a dictionary mapping package names to lists of filenames
        or globs to use to find data files contained in the named packages.
        If the dictionary has filenames or globs listed under '""' (the empty
        string), those names will be searched for in every package, in addition
        to any names for the specific package.  Data files found using these
        names/globs will be installed along with the package, in the same
        location as the package.  Note that globs are allowed to reference
        the contents of non-package subdirectories, as long as you use '/' as
        a path separator.  (Globs are automatically converted to
        platform-specific paths at runtime.)

    In addition to these new keywords, this class also has several new methods
    for manipulating the distribution's contents.  For example, the 'include()'
    and 'exclude()' methods can be thought of as in-place add and subtract
    commands that add or remove packages, modules, extensions, and so on from
    the distribution.
    cdSr\rrLr3<lambda>zDistribution.<lambda>srLcdSr\rrrLr3rzDistribution.<lambda>srLcdSr\rrrLr3rzDistribution.<lambda>	srL)long_description_content_typeproject_urlsprovides_extraslicense_file
license_filesinstall_requiresextras_requireNc|rd|vsd|vrdStjt|d}t	t
j5tj|}|H|ds3tj	t|d|_
||_ddddS#1swxYwYdS)Nr&versionzPKG-INFO)r	safe_namervlowerrrPackageNotFoundErrordistribution	read_textsafe_version_version
_patched_dist)selfattrsr&r/s    r3patch_missing_pkg_infoz#Distribution.patch_missing_pkg_infos
	e++y/E/EF'E&M(:(:;;AACC
h3
4
4	*	*(..Dz(B(B . ;Ci@P<Q<Q R R
%)"		*	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*sACCCc:t|d}|si|_|pi}g|_|dd|_|||dg|_|dg|_tj	dD]*}t||jd+t|jddhzfd	|D}t ||t|_t'||_||||jj|j_|dS)
Npackage_datasrc_rootdependency_linkssetup_requiresdistutils.setup_keywordsr'rrc$i|]\}}|v	||
Srr).0ryrz
metadata_onlys   r3
<dictcomp>z)Distribution.__init__.<locals>.<dictcomp>.s)OOOtq!8N8Na8N8N8NrL)hasattrr
dist_filespoprrrrrentry_pointsvars
setdefaultr&rl_DISTUTILS_UNSUPPORTED_METADATArQ
_Distribution__init___referenced_filesr set_defaults_set_metadata_defaults_normalize_versionr_finalize_requires)rrhave_package_datar1
dist_attrsrs     @r3rzDistribution.__init__s#D.99 	# "D		*d33
##E*** %		*<b A A#ii(8"=='.HIII	1	1BJJ!!"'40000D@AA
,.>??
OOOOu{{}}OOO
tZ000
,/55+D11##E*** $ 7 7
8M N N
!!!!!rLcdh}fdtjD}||z
}|rd|}t|dS)Nr&c@h|]}tj|d|Sr\)getattrr)rkeyrs  r3	<setcomp>z2Distribution._validate_metadata.<locals>.<setcomp>?s7


t}c400<
<<<rLz&Required package metadata is missing: )rrr)rrequiredprovidedmissingrZs`    r3_validate_metadatazDistribution._validate_metadata=su8



DM**



X%	+D7DDC%c***	+	+rLc	|jD]I\}}t|j||||JdS)z
        Fill-in missing metadata fields not supported by distutils.
        Some fields may have been set by other tools (e.g. pbr).
        Those fields (vars(self.metadata)) take precedence to
        supplied attrs.
        N)rrQrrrget)rroptiondefaults    r3rz#Distribution._set_metadata_defaultsJsk $CIIKK	Q	QOFG**6599VWWYY3O3OPPPP	Q	QrLcddlm}t|tjrt|}nt||s||Stt
|}||krtjd|d|d|S|S)Nr)sicz
Normalizing 'z' to '')	r6rr7numbersNumberrvrr"rE)rr
normalizeds   r3rzDistribution._normalize_versionTsgw~..	'llGG

%
%	N))**
j   !M!M!M
!M!M!MNNNrLcxt|ddr|j|j_||j|j_|j|j_|jrX|jD]@}|dd}|r|jj	|?dSdS)z
        Set `metadata.python_requires` and fix environment markers
        in `install_requires` and `extras_require`.
        python_requiresNrTr)
rrr_normalize_requiresrrkeyssplitradd)rrWs  r3rzDistribution._finalize_requiresds
4*D11	A,0,@DM)  """)-)>
&'+':
$	=,1133
=
=C((+=M155e<<<	=	=
=
=rLc
t|ddpg}t|ddpi}tttt	j||_d|D|_dS)zAMake sure requirement-related attributes exist and are normalizedrNrci|]<\}}|ttttj|pg=Sr)r8maprvrrV)rryrzs   r3rz4Distribution._normalize_requires.<locals>.<dictcomp>|sK


8<1AtCU[b112233


rL)	rr8rrvrrVrrQr)rrrs   r3rz Distribution._normalize_requiresws"4);TBBHb '7>>D" $Sek:J.K.K%L%L M M

@N@T@T@V@V


rLc|jj}|r|ng}|jj}|r||vr||||d}t	t|||j_dS)z<Compute names of all license files which should be included.N)zLICEN[CS]E*zCOPYING*zNOTICE*zAUTHORS*)rrrappendr8r_expand_patterns)rrpatternsrs    r3_finalize_license_filesz$Distribution._finalize_license_filess-1]-H
/<Dmm"&*m&@	*L88OOL))) \%9JH&*D11(;;<<'
'

###rLcd|DS)z
        >>> list(Distribution._expand_patterns(['LICENSE']))
        ['LICENSE']
        >>> list(Distribution._expand_patterns(['setup.cfg', 'LIC*']))
        ['setup.cfg', 'LICENSE']
        c3K|]Y}tt|D]:}|dtj|6|V;ZdS)~N)sortedrendswithospathisfile)rpatternrs   r3	<genexpr>z0Distribution._expand_patterns.<locals>.<genexpr>s

uW~~..

==%%	
+-'..*>*>	







rLr)rs r3rzDistribution._expand_patternss#

#


	
rLc
ddlm}tjtjkrgngd}t|}||}tr|d|}t|_
|D]"}t|d5}tr,|djdit||dddn#1swxYwY|D]}||}||}	|D]V}
|
d	ks|
|vr
|||
}||
|}
||
|}
||f|	|
<W|$d
|jvrdS|jd
D]~\}
\}}|j|
}
|
rt3|}n|
dvrt3|}	t5||
p|
|]#t6$r}t9||d}~wwxYwdS)
z
        Adapted from distutils.dist.Distribution.parse_config_files,
        this method provides the same functionality in subtly-improved
        ways.
        r)ConfigParser)
zinstall-basezinstall-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-dataprefixzexec-prefixhomeuserrootNz"Distribution.parse_config_files():utf-8encodingz  reading {filename}__name__global)verbosedry_runr)configparserrsysrbase_prefix	frozensetfind_config_filesr
announcervoptionxformopenralocals	read_filesectionsoptionsget_option_dictrwarn_dash_deprecationmake_option_lowercasercommand_optionsrQnegative_optrsetattrr,r)r	filenamesrignore_optionsparserfilenamereadersectionropt_dictoptvalsrcaliasr2s               r3_parse_config_filesz Distribution._parse_config_filess	.-----
zS_,,
B	(#>22..00I	@MM>??? !		Hh111
)VMMM"?"8"?"K"K&(("K"KLLL  (((
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)"??,,
4
4 ..11//88"44Cj((C>,A,A  **Wc22C44S'BBC44S'BBC%-sOHSMM4
OO4///F
 $3H=CCEE
	5
	5OC#s%))#..E
%#C..(...nn
5elsC0000
5
5
5*1--14
5
	5
	5s+A	C))C-	0C-	H++
I
5II
cL|dvr|S|dd}ttjtjj|}|ds|dkr||vr|Sd|vrtj
dd|d|d	d
d|S)
N)zoptions.extras_requirezoptions.data_files-_rrzInvalid dash-separated optionsz)
                Usage of dash-separated zZ will not be supported in future
                versions. Please use the underscore name z instead.
                !userguide/declarative_config.htmli	r?due_date)replacer8rNchainrBr__all___setuptools_commands
startswithr#rE)rrrunderscore_optcommandss     r3rz"Distribution.warn_dash_deprecations


JS#..O!)))++



""9--	":%%x''!!#::(-0),:H=&	
	
	
	
rLcn	tjdjjS#tj$rgcYSwxYw)N
setuptools)rrrnamesr)rs r3rz!Distribution._setuptools_commandssE	(66CII,			III	s 44c
|dks|r|S|}tjdd|d|d|ddd	|S)
NrzInvalid uppercase configurationz$
            Usage of uppercase key z in zL will not be supported in
            future versions. Please use lowercase z instead.
            rrr)islowerrr#rE)rrr
lowercase_opts    r3rz"Distribution.make_option_lowercasesj  CKKMM J		
$)-
$'

/6

3@


9"		
		
		
		
rLc
,|}|||}tr|d|z|D]3\}\}}tr|d|d|d|d	d|jD}n#t$rg}YnwxYw	|j}n#t$ri}YnwxYw	t|t}	||vr(|	r&t|||t|n`||vr!|	rt||t|n;t||rt|||ntd|d	|d
|d#t$r}
t|
|
d}
~
wwxYwdS)a
        Set the options for 'command_obj' from 'option_dict'.  Basically
        this means copying elements of a dictionary ('option_dict') to
        attributes of an instance ('command').

        'command_obj' must be a Command instance.  If 'option_dict' is not
        supplied, uses the standard option dictionary for this command
        (from 'self.command_options').

        (Adopted from distutils.dist.Distribution._set_command_options)
        Nz#  setting options for '%s' command:z    z = z (from r(c,g|]}t|Srr
)ros  r3
<listcomp>z5Distribution._set_command_options.<locals>.<listcomp>Cs!WWWa.q11WWWrLz	error in z: command 'z' has no such option 'r)get_command_namerr
rrQboolean_optionsr-rr7rvrrrrr,)rcommand_objoption_dictcommand_namersourcer%	bool_optsneg_opt	is_stringr2s           r3_set_command_optionsz!Distribution._set_command_options-s#3355..|<<K	PMM?,NOOO'2'8'8':':	5	5#FOVU
Q


OPPP
WW;;VWWW		!


			

%2!




5&uc22	W$$$Ki>N>N:NOOOOy((Y(K51A1ABBBB[&11K7777..!66<<<9
5
5
5*1--14
53	5	5s=B!!B0/B04B<<C
CB!E22
F<FFcg}t|jptjd}|<t	d|}t|d}t|d}n|r|g}||fS)z/Add default file and split between INI and TOMLzpyproject.tomlNc2t|jdkS)Nz.toml)rsuffix)fs r3rz8Distribution._get_project_config_files.<locals>.<lambda>`sQ'(ArLrr)rrrcurdirrr8exists)rr	tomlfilesstandard_project_metadatapartss     r3_get_project_config_filesz&Distribution._get_project_config_files[s	$()C")EU$V$V! AA9MMEU1XIU1XII
&
-
-
/
/	423I)##rLFc ||\}}||tj||j||D]}tj|||||dS)zXParses configuration files from various levels
        and loads configuration.
        )r)ignore_option_errorsN)	r9rrparse_configurationrrapply_configurationrr)rrr;inifilesr6rs      r3parse_config_fileszDistribution.parse_config_filesgs#<<YGG)  8 444$$&=Q	
	
	
	
"	T	TH-dH>RSSSS!!!$$&&&&&rLc&ddlm}|||S)zResolve pre-setup requirementsr)_fetch_build_eggs)	installerrA)rrequiresrAs   r3fetch_build_eggszDistribution.fetch_build_eggsxs'000000  x000rLcd}d}tj|}tj|j|}td|}t
||D]
}||dS)z
        Allow plugins to apply arbitrary operations to the
        distribution. Each hook may optionally define a 'order'
        to influence the order of execution. Smaller numbers
        go first and the default is 0.
        z(setuptools.finalize_distribution_optionsc$t|ddS)Norderr)r)hooks r3by_orderz/Distribution.finalize_options.<locals>.by_orders4!,,,rLrc*|Sr\)rr)r2s r3rz/Distribution.finalize_options.<locals>.<lambda>sqvvxxrL)rN)rrrNfilterfalse_removedrr)rr'rIdefinedfilteredloadedr1s       r3finalize_optionszDistribution.finalize_options~s;	-	-	-'e444(@@''22X...		BBtHHHH		rLcdh}|j|vS)z
        When removing an entry point, if metadata is loaded
        from an older version of Setuptools, that removed
        entry point will attempt to be loaded and will fail.
        See #2765 for more details.
        
2to3_doctests)r&)r1removeds  r3rLzDistribution._removeds

w'!!rLctjdD]>}t||jd}|$|||j|?dS)Nrr)rrrr&rr)rr1r%s   r3_finalize_setup_keywordsz%Distribution._finalize_setup_keywordssb'.HIII	0	0BD"'400E 		$///	0	0rLcddlm}tjtjd}tj|stj|||tj|d}t|d5}|
d|
d|
ddddn#1swxYwY|S)	Nr)windows_supportz.eggsz
README.txtwzcThis directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.

zAThis directory caches those eggs to prevent repeated downloads.

z/However, it is safe to delete this directory.

)r6rWrrr:r4r5mkdir	hide_filerwrite)rrW
egg_cache_dirreadme_txt_filenamer3s     r3get_egg_cache_dirzDistribution.get_egg_cache_dirsE%%%%%%RY88
w~~m,,
	MH]###%%m444"$',,}l"K"K)3//	
M1J.KLLL	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M	
M	
Ms)AC55C9<C9c&ddlm}|||S)z Fetch an egg needed for buildingr)fetch_build_egg)rBr`)rreqr`s   r3r`zDistribution.fetch_build_eggs&......tS)))rLc||jvr
|j|Stjd|}|D]#}|x|j|<}|cSt||S)z(Pluggable version of get_command_class()distutils.commands)r'r&)cmdclassrrrrrget_command_class)rrepsr1rds     r3rezDistribution.get_command_classs{dm##=))#*>WMMM	B	BB02		9DM'"XOOO 224AAArLctjdD]3}|j|jvr#|}||j|j<4t
|SNrcr)rrr&rdrrrprint_commandsrr1rds   r3rizDistribution.print_commandss_'.BCCC	2	2Bwdm++7799)1
bg&++D111rLctjdD]3}|j|jvr#|}||j|j<4t
|Srh)rrr&rdrrrget_command_listrjs   r3rlzDistribution.get_command_lists_'.BCCC	2	2Bwdm++7799)1
bg&--d333rLc|D]=\}}t|d|zd}|r||'|||>dS)aAdd items to distribution that are named in keyword arguments

        For example, 'dist.include(py_modules=["x"])' would add 'x' to
        the distribution's 'py_modules' attribute, if it was not already
        there.

        Currently, this method only supports inclusion for attributes that are
        lists or tuples.  If you need to add support for adding to other
        attributes in this or a subclass, you can add an '_include_X' method,
        where 'X' is the name of the attribute.  The method will be called with
        the value passed to 'include()'.  So, 'dist.include(foo={"bar":"baz"})'
        will try to call 'dist._include_foo({"bar":"baz"})', which can then
        handle whatever special inclusion logic is needed.
        	_include_N)rQr
_include_misc)rrryrzincludes     r3rpzDistribution.includesnKKMM	)	)DAqdK!OT::G
)



""1a((((	)	)rLcdz|jrfd|jD|_|jrfd|jD|_|jrfd|jD|_dSdS)z9Remove packages, modules, and extensions in named packager>cJg|]}|k|| Srrrppackagepfxs  r3r%z0Distribution.exclude_package.<locals>.<listcomp>s5ALLcARARLLLLrLcJg|]}|k|| Srrsrts  r3r%z0Distribution.exclude_package.<locals>.<listcomp>s6a7ll1<<PSCTCTllllrLc^g|])}|jk
|j'|*Sr)r&rrts  r3r%z0Distribution.exclude_package.<locals>.<listcomp>sE   6W$$QV->->s-C-C$$$$rLN)packages
py_modulesext_modules)rrvrws `@r3exclude_packagezDistribution.exclude_packagesm=	=DM?	?DO	     )   D		rLcz|dz}|D] }||ks||rdS!dS)z<Return true if 'exclude_package(package)' would do somethingr>TN)iter_distribution_namesr)rrvrwrus    r3r@zDistribution.has_contents_forsWm--//		AG||q||C00|tt		rLc^ttst|dd	t||}n%#t$r}td|z|d}~wwxYw|'t|tst|dz|rt||fd|DdSdS)zAHandle 'exclude()' for list/tuple attrs without a special handlerz#: setting must be a list or tuple (r( %s: No such distribution settingN4: this setting cannot be changed via include/excludecg|]}|v|	Srr)ritemr%s  r3r%z.Distribution._exclude_misc.<locals>.<listcomp>s# K K K$U9J9J9J9J9JrLr7sequencerrr-r)rr&r%oldr2s  `  r3
_exclude_misczDistribution._exclude_misc
s%**	%>BddEEEJ
	X$%%CC	X	X	X%&H4&OPPVWW	X?:c8#<#<?%MM
	MD$ K K K K# K K KLLLLL	M	M>
A AA ct|tst|d|d	t||n%#t$r}td|z|d}~wwxYwt|||dSttst|dzfd|D}t|||zdS)zAHandle 'include()' for list/tuple attrs without a special handlerz: setting must be a list (r(rNrcg|]}|v|	Srr)rrrs  r3r%z.Distribution._include_misc.<locals>.<listcomp>.s===DT__4___rLr)rr&r%r2newrs     @r3rozDistribution._include_miscs%**	Y%444QVQVQV&WXXX	X$%%CC	X	X	X%&H4&OPPVWW	X;D$&&&&&C**	+%MM
>===E===CD$c	*****rc|D]=\}}t|d|zd}|r||'|||>dS)aRemove items from distribution that are named in keyword arguments

        For example, 'dist.exclude(py_modules=["x"])' would remove 'x' from
        the distribution's 'py_modules' attribute.  Excluding packages uses
        the 'exclude_package()' method, so all of the package's contained
        packages, modules, and extensions are also excluded.

        Currently, this method only supports exclusion from attributes that are
        lists or tuples.  If you need to add support for excluding from other
        attributes in this or a subclass, you can add an '_exclude_X' method,
        where 'X' is the name of the attribute.  The method will be called with
        the value passed to 'exclude()'.  So, 'dist.exclude(foo={"bar":"baz"})'
        will try to call 'dist._exclude_foo({"bar":"baz"})', which can then
        handle whatever special exclusion logic is needed.
        	_exclude_N)rQrr)rrryrzexcludes     r3rzDistribution.exclude1sn KKMM	)	)DAqdK!OT::G
)



""1a((((	)	)rLct|tstd|dtt	|j|dS)Nz+packages: setting must be a list or tuple (r()r7rrr8rr})rrzs  r3_exclude_packageszDistribution._exclude_packagesHsV(H--	%%DLHHN
	
S%x
0
011111rLc|jj|_|jj|_|d}|d}||vr9||\}}||=ddl}||d|dd<|d}||v9t|||}||}	t|	ddrd|f||d<|gS|S)NraliasesTrcommand_consumes_argumentscommand lineargs)
	__class__global_optionsrrshlexrr_parse_command_optsrer)
rrrrrr	r
rnargs	cmd_classs
          r3rz Distribution._parse_command_optsOs"n; N7q'&&y11   )JC LLL{{5$//D!H1gG
  11$EE**733	9:DAA	5CU4KD  ))&1 	rLc	i}|jD]\}}|D]\}\}}|dkr|dd}|dkr||}|j}|t|di|D]\}	}
|
|kr|	}d}ntdn|dkrd}||	|i|<Ռ|S)	ahReturn a '{cmd: {opt:val}}' map of all command-line options

        Option names are all long, but do not include the leading '--', and
        contain dashes rather than underscores.  If the option doesn't take
        an argument (e.g. '--quiet'), the 'val' is 'None'.

        Note that options provided by config files are intentionally excluded.
        rrr
rrNzShouldn't be able to get herer)
rrQrget_command_objrcopyupdaterr.r)rdcmdoptsrr	rcmdobjr-negposs           r3get_cmdline_optionsz Distribution.get_cmdline_optionsjs@
-3355	1	1IC#'::<<
1
1Zc3.((kk#s++!88!11#66F"/4466GNN76>2#F#FGGG$+MMOONNS#::"%C"&C!E&
--LMMM"AXXC-0S"%%c**+
1.rLc#K|jpdD]}|V|jpdD]}|V|jpdD]G}t|tr|\}}n|j}|dr
|dd}|VHdS)z@Yield all packages, modules, and extension names in distributionrmoduleNi)rzr{r|r7r9r&r)rpkgrextr&	buildinfos      r3rz$Distribution.iter_distribution_namess=&B		CIIIIo+		FLLLL#)r		C#u%%
 "%iix}}X&&
!CRCyJJJJ		rLc4ddl}|jrt||St	|jtjst||S|jj	dvrt||S|jj}|j
d	t|||j
|S#|j
|wxYw)zIf there were any non-global "display-only" options
        (--help-commands or the metadata display options) on the command
        line, display the requested info and return true; else return
        false.
        rN)rutf8rr)r
help_commandsrhandle_display_optionsr7stdoutio
TextIOWrapperrrreconfigure)roption_orderrrs    r3rz#Distribution.handle_display_optionss	


	L 77lKKK#*b&677	L 77lKKK:$$&&*;;; 77lKKK:&
000	6 77lKKJ""H"5555CJ""H"5555sC::Dcr|t|dSr\)rsuperrun_command)rrrs  r3rzDistribution.run_commands5	G$$$$$rLr\)NF)0r
__module____qualname____doc__rkrr8rrrrrrstaticmethodrrrrrrrrrr/r9r?rDrPrLrUr^r`rerirlrpr}r@rrorrrrrrr
__classcell__)rs@r3rrs11h*6%$% ''#M***"""">+++QQQ

\
===&





&

\
M5M5M5M5^   D$,5,5,5,5\
$
$
$''''"111$""\"000****
B
B
B222444))),*MMM"+++&))).2226$$$L$6668%%%%%%%%%rLceZdZdZdS)rezrClass for warning about deprecations in dist in
    setuptools. Not ignored by default, unlike DeprecationWarning.N)rrrrrrLr3reres"FFFFrLre)TrrrNrrr}r
contextlibrglobrpathlibrtypingrrr	
distutils.cmdrBdistutils.commanddistutils.coredistutils.dist
distutils.logdistutils.debugr
distutils.errorsrrdistutils.fancy_getoptrdistutils.utilrextern.more_itertoolsrrextern.ordered_setrextern.packaging.markersrrextern.packaging.specifiersrrextern.packaging.versionrr6rrrrr
_importlibrconfigrr	discoveryr monkeyr!warningsr"r#r9r8rr4r<rKrRrPrUrcrgrnrprtrwr{rcorerrrerrLr3<module>rs

											



&&&&&&&&&&!!!!!!FFFFFFFF444444$$$$$$========******;;;;;;;;GGGGGGGG------      ++++++++&&&&&&!!!!!!CCCCCCCC$;


:			GGG555RRRRRR,,,AAA
HHH
in9::
s%s%s%s%s%=s%s%s%lFFFFF9FFFFFrL
Back to Directory File Manager