Files
old-nlp/venv/lib/python3.7/site-packages/setuptools/__pycache__/dist.cpython-37.pyc

476 lines
41 KiB
Plaintext
Raw Normal View History

2019-10-20 13:16:49 +02:00
B
<00>$<24>]<5D><><00>@sdgZddlZddlZddlZddlZddlZddlZddlZddl Zddl
Zddl Zddl m Z ddlmZddlmZddlZddlmZddlmZddlmZmZmZdd l mZdd
lmZdd lmZdd lm Z dd lm!Z!ddl"m#Z#m$Z$m%Z%ddl&m'Z'ddl(m)Z)ddl*m+Z+ddl,m-Z-ddl.m/Z/ddl0Z0e1d<15>e1d<16>dd<18>Z2dd<1A>Z3dd<1C>Z4dd<1E>Z5e6e7fZ8dd <20>Z9d!d"<22>Z:d#d$<24>Z;d%d&<26>Z<d'd(<28>Z=d)d*<2A>Z>d+d,<2C>Z?d-d.<2E>Z@d/d0<64>ZAd1d2<64>ZBd3d4<64>ZCd5d6<64>ZDe-ejEjF<6A>ZGGd7d<00>deG<65>ZFGd8d9<64>d9<64>ZHGd:d;<3B>d;e'<27>ZIdS)<<3C> Distribution<6F>N)<01> strtobool)<01>DEBUG)<01>translate_longopt)<01> defaultdict)<01>message_from_file)<03>DistutilsOptionError<6F>DistutilsPlatformError<6F>DistutilsSetupError)<01> rfc822_escape)<01> StrictVersion)<01>six)<01> packaging)<01> ordered_set)<03>map<61>filter<65> filterfalse<73>)<01>SetuptoolsDeprecationWarning)<01>Require)<01>windows_support)<01> get_unpatched)<01>parse_configurationz&setuptools.extern.packaging.specifiersz#setuptools.extern.packaging.versioncCst<00>dt<02>t|<00>S)NzDo not call this function)<04>warnings<67>warn<72>DistDeprecationWarningr)<01>cls<6C>r<00>7/tmp/pip-install-zytfk_me/setuptools/setuptools/dist.py<70>_get_unpatched-s rcCs<>t|dd<00>}|dkr<>|js |jr*td<02>}nd|jdk sT|jdk sTt|dd<00>dk sT|jr^td<04>}n0|js||js||j s||j
s||j r<>td<05>}ntd<06>}||_ |S)N<>metadata_versionz2.1<EFBFBD>python_requiresz1.2z1.1z1.0) <0A>getattr<74>long_description_content_type<70>provides_extrasr <00>
maintainer<EFBFBD>maintainer_email<69> project_urls<6C>provides<65>requires<65> obsoletes<65> classifiers<72> download_urlr )<02>self<6C>mvrrr<00>get_metadata_version2s  



 
r/cs t|<01><01><00>fdd<02>}<02>fdd<04>}t<01>d<00>|_|d<06>|_|d<07>|_|d<08>|_|d <09>|_d
|_|d <0B>|_d
|_ |d <0C>|_
|d <0A>|_ d<0E>kr<>|d<0E>|_ nd
|_ |d<0F>|_ |d<08>|_d<10>kr<>|d<10><01>d<11>|_|d<12>|_|d<13>|_|jtd<14>k<02>r
|d<15>|_|d<16>|_|d<17>|_nd
|_d
|_d
|_d
S)z-Reads the metadata values from a file object.cs<00>|}|dkrdS|S)N<>UNKNOWNr)<02>name<6D>value)<01>msgrr<00> _read_fieldLsz"read_pkg_file.<locals>._read_fieldcs<00><00>|d<00>}|gkrdS|S)N)<01>get_all)r1<00>values)r3rr<00>
_read_listRs z!read_pkg_file.<locals>._read_listzmetadata-versionr1<00>version<6F>summary<72>authorNz author-emailz home-page<67>licensez download-url<72> description<6F>keywords<64>,<2C>platform<72>
classifierz1.1r)r(r*)rr r r1r8r<r:r%<00> author_emailr&<00>urlr;r,<00>long_description<6F>splitr=<00> platformsr+r)r(r*)r-<00>filer4r7r)r3r<00> read_pkg_fileHs:  






 





 rGc s<00><01><00>}tjr<1E><00>fdd<02>}n <0C>fdd<02>}|dt|<02><01>|d<05><01><04><00>|d<06><01><05><00>|d<07><01><06><00>|d<08><01><07><00>|td <09>kr<>|d
<EFBFBD><01> <09><00>|d <0B><01>
<EFBFBD><00>n2d }x,|D]$\}}t <0B>|<06>}|d k r<>|||<07>q<>W|d<0E><01> <0C><00><00>j r<>|d<0F>j <0A>x <20>j<0E><0F>D]}|dd|<00>q<>Wt<10><01><11><00>} |d| <09>d<13><12><01><13><00>}
|
<EFBFBD>rB|d|
<EFBFBD>|td <09>k<05>rpx0<78><01><14>D]} |d| <0B><00>qZWn<12><01><15>d<15><01><14><00><00><01><15>d<16><01><16><00><00><01><15>d<17><01><17><00><00><01><15>d<18><01><18><00><00><01><15>d<19><01><19><00>t<1A>d<1A><02>r<>|d<1B>j<1B><00>j<1C>r<>|d<1C>j<1C><00>j<1D>rx<1A>jD]} |d| <0C><00>qWd S)z5Write the PKG-INFO format data to a file object.
cs<00><00>d|<00><01>|<01>f<00>dS)Nz%s: %s
)<02>writeZ _encode_field)<02>keyr2)rFr-rr<00> write_field<6C>sz#write_pkg_file.<locals>.write_fieldcs<00><00>d||f<00>dS)Nz%s: %s
)rH)rIr2)rFrrrJ<00>szMetadata-Version<6F>Name<6D>VersionZSummaryz Home-pagez1.2<EFBFBD>Authorz Author-email))rMr:)z Author-emailrA)Z
Maintainerr%)zMaintainer-emailr&NZLicensez Download-URLz Project-URLz%s, %s<> Descriptionr>ZKeywords<64>Platform<72>
Classifier<EFBFBD>Requires<65>Provides<65> Obsoletesr!zRequires-PythonzDescription-Content-TypezProvides-Extra)r/r <00>PY2<59>str<74>get_name<6D> get_version<6F>get_description<6F>get_urlr <00> get_contact<63>get_contact_emailr"<00> get_licenser,r'<00>itemsr <00>get_long_description<6F>join<69> get_keywords<64> get_platforms<6D> _write_list<73>get_classifiers<72> get_requires<65> get_provides<65> get_obsoletes<65>hasattrr!r#r$) r-rFr8rJZoptional_fields<64>field<6C>attrZattr_valZ project_url<72> long_descr=r?<00>extrar)rFr-r<00>write_pkg_file~sX  
  

   rlc CsPytj<01>d|<00>}|jrt<04>Wn,ttttfk
rJtd||f<00><01>YnXdS)Nzx=z4%r must be importable 'module:attrs' string (got %r)) <09> pkg_resources<65>
EntryPoint<EFBFBD>parse<73>extras<61>AssertionError<6F> TypeError<6F>
ValueError<EFBFBD>AttributeErrorr
)<04>distrir2<00>eprrr<00>check_importable<6C>srwc CsZy(t|ttf<02>st<03>d<01>|<02>|ks&t<03>Wn,ttttfk
rTtd||f<00><01>YnXdS)z"Verify that value is a string list<73>z%%r must be a list of strings (got %r)N) <09>
isinstance<EFBFBD>list<73>tuplerqr_rrrsrtr
)rurir2rrr<00>assert_string_list<73>s r|cCsh|}t|||<03>xR|D]J}|<00>|<04>s4tdd|<00><01>|<04>d<03>\}}}|r||krtj<05>d||<05>qWdS)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.pyN)r|<00>has_contents_forr
<00>
rpartition<EFBFBD> distutils<6C>logr)rurir2Z ns_packages<65>nsp<73>parent<6E>sep<65>childrrr<00> check_nsp<73>s 

  r<>c
Cs@ytt<01>t|<02><04><00><02>Wn"tttfk
r:td<01><01>YnXdS)z+Verify that extras_require mapping is validz<64>'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.N) rz<00> itertools<6C>starmap<61> _check_extrar]rrrsrtr
)rurir2rrr<00> check_extras<61>s
r<>cCs<|<00>d<01>\}}}|r*t<01>|<04>r*td|<00><01>tt<01>|<01><01>dS)N<>:zInvalid environment marker: )<06> partitionrm<00>invalid_markerr
rz<00>parse_requirements)rk<00>reqsr1r<><00>markerrrrr<>s r<>cCs&t|<02>|kr"d}t|j||d<02><02><01>dS)z)Verify that value is True, False, 0, or 1z0{attr!r} must be a boolean value (got {value!r}))rir2N)<03>boolr
<00>format)rurir2<00>tmplrrr<00> assert_bool s r<>c
Csjy(tt<01>|<02><01>t|ttf<02>r&td<01><01>Wn<ttfk
rd}zd}t|j ||d<03><02><01>Wdd}~XYnXdS)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})ri<00>errorN)
rzrmr<>ry<00>dict<63>setrrrsr
r<>)rurir2r<>r<>rrr<00>check_requirementss r<>c
CsRytj<01>|<02>Wn<tjjk
rL}zd}t|j||d<02><02><01>Wdd}~XYnXdS)z.Verify that value is a valid version specifierzF{attr!r} must be a string containing valid version specifiers; {error})rir<>N)r<00>
specifiers<EFBFBD> SpecifierSet<65>InvalidSpecifierr
r<>)rurir2r<>r<>rrr<00>check_specifier s
r<>c
Cs@ytj<01>|<02>Wn*tk
r:}z t|<03><01>Wdd}~XYnXdS)z)Verify that entry_points map is parseableN)rmrn<00> parse_maprsr
)rurir2<00>errr<00>check_entry_points,sr<>cCst|tj<02>std<01><01>dS)Nztest_suite must be a string)ryr <00> string_typesr
)rurir2rrr<00>check_test_suite4s r<>cCs`t|t<01>std<01>|<01><01><01>xB|<02><04>D]6\}}t|tj<06>sFtd<02>||<03><02><01>t|d<03>|<01>|<04>q"WdS)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)ryr<>r
r<>r]r r<>r|)rurir2<00>k<>vrrr<00>check_package_data9s
 
r<>cCs,x&|D]}t<00>d|<03>stj<03>d|<03>qWdS)Nz \w+(\.\w+)*z[WARNING: %r not a valid package name; please use only .-separated package names in setup.py)<05>re<72>matchr<68>r<>r)rurir2<00>pkgnamerrr<00>check_packagesHs

 r<>c@sReZdZdZdeejd<03>ZdZdd<05>Z dMdd<07>Z
dd <09>Z d
d <0B>Z e d d <0A><00>Zdd<0F>Zdd<11>ZdNdd<13>Ze dd<15><00>ZdOdd<17>ZdPdd<1A>Zdd<1C>Zdd<1E>Zdd <20>Zd!d"<22>Zd#d$<24>Zd%d&<26>Zd'd(<28>Zd)d*<2A>Zd+d,<2C>Zd-d.<2E>Zd/d0<64>Zd1d2<64>Z d3d4<64>Z!d5d6<64>Z"d7d8<64>Z#d9d:<3A>Z$d;d<<3C>Z%d=d><3E>Z&d?d@<40>Z'dAdB<64>Z(dCdD<64>Z)dEdF<64>Z*dGdH<64>Z+dIdJ<64>Z,dKdL<64>Z-dS)Qra<>Distribution with support for features, 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.
'features' **deprecated** -- a dictionary mapping option names to
'setuptools.Feature'
objects. Features are a portion of the distribution that can be
included or excluded based on user options, inter-feature dependencies,
and availability on the current system. Excluded features are omitted
from all setup commands, including source and binary distributions, so
you can create multiple distributions from the same source tree.
Feature names should be valid Python identifiers, except that they may
contain the '-' (minus) sign. Features can be included or excluded
via the command line options '--with-X' and '--without-X', where 'X' is
the name of the feature. Whether a feature is included by default, and
whether you are allowed to control this from the command line, is
determined by the Feature object. See the 'Feature' class for more
information.
'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. They are used by the feature subsystem to configure the
distribution for the included and excluded features.
N)r#r'r$cCsl|rd|ksd|krdSt<00>t|d<00><01><01><03>}tjj<05>|<02>}|dk rh|<03>d<03>sht<00>t|d<00><01>|_ ||_
dS)Nr1r8zPKG-INFO) rm<00> safe_namerU<00>lower<65> working_set<65>by_key<65>get<65> has_metadata<74> safe_version<6F>_version<6F> _patched_dist)r-<00>attrsrIrurrr<00>patch_missing_pkg_info<66>sz#Distribution.patch_missing_pkg_infoc
s<>t<00>d<01>}|si<00>_|pi}d|ks,d|kr4t<02><03>g<00>_i<00>_g<00>_|<01>dd<00><02>_<08><00> |<01>|<01>dg<00><02>_
|<01>dg<00><02>_ x$t <0C> d<07>D]}t<0E><00><01>|jd<00>q<>Wt<11><12><00>fdd <09>|<01><13>D<00><01>x\<5C>j<14><13>D]N\}}x6<78>jj|fD]}||kr<>||}Pq<>W|<05>r|<05>nd}t<17>j||<07>q<>Wt<18>jjtj<1B><02>r>t<1C>jj<19><01>j_<19>jjdk <09>r<>yHtj<19><1E>jj<19>}t|<08>} <09>jj| k<03>r<>t<1F> d
<EFBFBD>jj| f<00>| <09>j_Wn0tjj!t"fk
<EFBFBD>r<>t<1F> d <0B>jj<00>YnX<00><00>#<23>dS) N<> package_data<74>features<65>require_features<65>src_root<6F>dependency_links<6B>setup_requireszdistutils.setup_keywordscs i|]\}}|<01>jkr||<01>qSr)<01>_DISTUTILS_UNSUPPORTED_METADATA)<03>.0r<EFBFBD>r<>)r-rr<00>
<dictcomp><3E>sz)Distribution.__init__.<locals>.<dictcomp>zNormalizing '%s' to '%s'z<>The version specified (%r) is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.)$rgr<><00>Feature<72>warn_deprecatedr<64>r<><00>
dist_files<EFBFBD>popr<70>r<>r<>r<>rm<00>iter_entry_points<74>vars<72>
setdefaultr1<00> _Distribution<6F>__init__r]r<><00>metadata<74>__dict__<5F>setattrryr8<00>numbers<72>NumberrUrrLrr<00>InvalidVersionrr<00>_finalize_requires)
r-r<>Zhave_package_datarv<00>option<6F>default<6C>sourcer2<00>verZnormalized_versionr)r-rr<><00>sR


 zDistribution.__init__cCsjt|dd<02>r|j|j_t|dd<02>rVx2|j<03><04>D]$}|<01>d<04>d}|r.|jj<06>|<01>q.W|<00><08>|<00> <09>dS)z<>
Set `metadata.python_requires` and fix environment markers
in `install_requires` and `extras_require`.
r!N<>extras_requirer<65>r)
r"r!r<>r<><00>keysrDr$<00>add<64>_convert_extras_requirements<74>"_move_install_requirements_markers)r-rkrrrr<><00>s 
 zDistribution._finalize_requirescCspt|dd<02>pi}tt<02>|_xP|<01><04>D]D\}}|j|x0t<05>|<03>D]"}|<00>|<04>}|j||<00>|<04>qBWq$WdS)z<>
Convert requirements in `extras_require` of the form
`"extra": ["barbazquux; {marker}"]` to
`"extra:{marker}": ["barbazquux"]`.
r<>N) r"rrz<00>_tmp_extras_requirer]rmr<><00> _suffix_for<6F>append)r-Z spec_ext_reqs<71>sectionr<6E><00>r<>suffixrrrr<><00>s


z)Distribution._convert_extras_requirementscCs|jrdt|j<00>SdS)ze
For a requirement, return the 'extras_require' suffix for
that requirement.
r<>rx)r<>rU)<01>reqrrrr<> szDistribution._suffix_forcs<>dd<02>}t<00>dd<04>pd}tt<02>|<02><01>}t||<03>}t||<03>}ttt|<04><02><01>_x&|D]}<06>j dt|j
<EFBFBD><00> |<06>qPWt <0C>fdd<08><08>j <09> <0A>D<00><01><01>_dS) zv
Move requirements in `install_requires` that are using environment
markers `extras_require`.
cSs|j S)N)r<>)r<>rrr<00> is_simple_reqszFDistribution._move_install_requirements_markers.<locals>.is_simple_req<65>install_requiresNrr<>c3s,|]$\}}|dd<01>t<00>j|<02>D<00>fVqdS)cSsg|] }t|<01><01>qSr)rU)r<>r<>rrr<00>
<listcomp>)szMDistribution._move_install_requirements_markers.<locals>.<genexpr>.<listcomp>N)r<00>
_clean_req)r<>r<>r<>)r-rr<00> <genexpr>)szBDistribution._move_install_requirements_markers.<locals>.<genexpr>)r"rzrmr<>rrrrUr<>r<>r<>r<>r<>r]r<>)r-r<>Zspec_inst_reqsZ inst_reqsZ simple_reqsZ complex_reqsr<73>r)r-rr<>s




z/Distribution._move_install_requirements_markerscCs
d|_|S)zP
Given a Requirement, remove environment markers and return it.
N)r<>)r-r<>rrrr<>-szDistribution._clean_reqc Cs<>ddlm}tjr>tjtjkr>ddddddd d
d d d ddg }ng}t|<03>}|dkrZ|<00><08>}t rh|<00>
d<11>|<02>}x<>|D]<5D>}t j |dd<13><02>4}t r<>|<00>
dj ft<0E><00><01>tjr<>|jn|j|<06>WdQRXxl|<04><11>D]`}|<04>|<07>}|<00>|<07>} xF|D]>}
|
dkr<>|
|kr<>|<00>|<04>||
<EFBFBD><02>} |
<EFBFBD>dd<17>}
|| f| |
<q<>Wq<>W|<04><17>qtWd|jk<06>r<>x<EFBFBD>|jd<00><19>D]<5D>\}
\} } |j<1A>|
<EFBFBD>} yF| <0A>r<>t|| t| <0B> <00>n(|
dk<06>r<>t||
t| <0B><01>n t||
| <0B>Wn,tk
<EFBFBD>r<>}z t|<0E><01>Wdd}~XYnX<00>qVWdS)z<>
Adapted from distutils.dist.Distribution.parse_config_files,
this method provides the same functionality in subtly-improved
ways.
r)<01> ConfigParserz install-basezinstall-platbasez install-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptsz install-data<74>prefixz exec-prefix<69>home<6D>user<65>rootNz"Distribution.parse_config_files():zutf-8)<01>encodingz reading {filename}<7D>__name__<5F>-<2D>_<>global)<02>verbose<73>dry_run)Z(setuptools.extern.six.moves.configparserr<72>r <00>PY3<59>sysr<73><00> base_prefix<69> frozenset<65>find_config_filesr<00>announce<63>io<69>openr<6E><00>locals<6C> read_file<6C>readfp<66>sections<6E>options<6E>get_option_dict<63>_try_strr<72><00>replacer<65><00>command_optionsr]<00> negative_optr<74>rrsr)r-<00> filenamesr<73><00>ignore_options<6E>parser<65>filename<6D>readerr<72>r<><00>opt_dict<63>opt<70>val<61>src<72>aliasr3rrr<00>_parse_config_files4sL  

 


    
z Distribution._parse_config_filescCs,tjr
|Sy|<00><02>Stk
r&YnX|S)ab
On Python 2, much of distutils relies on string values being of
type 'str' (bytes) and not unicode text. If the value can be safely
encoded to bytes using the default encoding, prefer that.
Why the default encoding? Because that value can be implicitly
decoded back to text if needed.
Ref #1653
)r r<><00>encode<64>UnicodeEncodeError)rrrrr<>rs zDistribution._try_strc Csh|<01><00>}|dkr|<00>|<03>}tr,|<00>d|<00><00>x4|<02><04>D<00>]&\}\}}tr^|<00>d|||f<00>ydd<05>|jD<00>}Wntk
r<EFBFBD>g}YnXy
|j}Wntk
r<EFBFBD>i}YnXy<>t|t j
<EFBFBD>} ||kr<>| r<>t |||t |<06> <00>nN||k<06>r| <09>rt ||t |<06><01>n,t ||<04><02>rt |||<06>ntd|||f<00><01>Wq8tk
<EFBFBD>r^}
z t|
<EFBFBD><01>Wdd}
~
XYq8Xq8WdS)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 %s = %s (from %s)cSsg|] }t|<01><01>qSr)r)r<><00>orrrr<><00>sz5Distribution._set_command_options.<locals>.<listcomp>z1error in %s: command '%s' has no such option '%s')<10>get_command_namer<65>rr<>r]<00>boolean_optionsrtr<>ryr r<>r<>rrgrrs) r-<00> command_obj<62> option_dict<63> command_namer<65>r<>r2<00> bool_opts<74>neg_opt<70> is_stringr3rrr<00>_set_command_options<6E>s> 





   z!Distribution._set_command_optionsFcCs(|j|d<01>t||j|d<02>|<00><03>dS)zYParses configuration files from various levels
and loads configuration.
)r)<01>ignore_option_errorsN)r
rr<>r<>)r-rrrrr<00>parse_config_files<65>s zDistribution.parse_config_filescCst<00>|<00>}|jr|<00><03>|S)z3Process features after parsing command line options)r<><00>parse_command_liner<65><00>_finalize_features)r-<00>resultrrrr<00>s
zDistribution.parse_command_linecCsd|<01>dd<03>S)z;Convert feature name to corresponding option attribute nameZwith_r<5F>r<>)r<>)r-r1rrr<00>_feature_attrname<6D>szDistribution._feature_attrnamecCs<tjjt<00>|<01>|jdd<02>}x|D]}tjj|dd<03>q W|S)zResolve pre-setup requirementsT)<02> installer<65>replace_conflicting)r<>)rmr<><00>resolver<65><00>fetch_build_eggr<67>)r-r)Zresolved_distsrurrr<00>fetch_build_eggs<67>s
zDistribution.fetch_build_eggscCs<>t<00>|<00>|jr|<00><03>xHt<04>d<01>D]:}t||jd<00>}|dk r$|j|j d<02>|<01>
<EFBFBD>||j|<02>q$Wt|dd<00>r<>dd<05>|j D<00>|_ ng|_ dS)Nzdistutils.setup_keywords)r<00>convert_2to3_doctestscSsg|]}tj<01>|<01><01>qSr)<03>os<6F>path<74>abspath)r<><00>prrrr<><00>sz1Distribution.finalize_options.<locals>.<listcomp>) r<><00>finalize_optionsr<73><00>_set_global_opts_from_featuresrmr<>r"r1<00>requirer <00>loadr")r-rvr2rrrr'<00>s
 zDistribution.finalize_optionsc Csvtj<01>tjd<01>}tj<01>|<01>srt<00>|<01>t<06>|<01>tj<01>|d<02>}t|d<03><02>$}|<03> d<04>|<03> d<05>|<03> d<06>WdQRX|S)Nz.eggsz
README.txt<78>wzcThis 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.
)
r#r$r_<00>curdir<69>exists<74>mkdirrZ hide_filer<65>rH)r-Z egg_cache_dirZreadme_txt_filename<6D>frrr<00>get_egg_cache_dir<69>s 

 

zDistribution.get_egg_cache_dirc Cs<>ddlm}|<00>ddgi<01>}|<03>d<04>}|<04><04>|<04>dd<06>|<00>d<04><01><06>D<00><01>|jr<>|jdd<07>}d|krx|dd |}d
|f|d<|<00><08>}||d g|d d dd d d d d d<0E> }|<07> <09>|<07>|<01>S)z Fetch an egg needed for buildingr)<01> easy_install<6C> script_argsr1css"|]\}}|dkr||fVqdS))<06>
find_links<EFBFBD> site_dirs<72> index_url<72>optimizer4Z allow_hostsNr)r<>r<>r<>rrrr<><00>sz/Distribution.fetch_build_egg.<locals>.<genexpr>Nr3r<00>setup<75>xTF)
<EFBFBD>args<67> install_dirZexclude_scriptsZ always_copyZbuild_directory<72>editable<6C>upgradeZ multi_versionZ no_reportr<74>)
Zsetuptools.command.easy_installr1<00> __class__r<5F><00>clear<61>updater]r<>r0<00>ensure_finalized)r-r<>r1ru<00>opts<74>linksr:<00>cmdrrrr <00>s( 
 zDistribution.fetch_build_eggc Cs<>g}|j<00><01>}x<>|j<02><03>D]<5D>\}}|<00>|d<01>|<04>|<00>|jr|j}d}d}|<04><08>s^||}}d|dd||fd|dd||ff}|<01> |<08>d||d|<qW||j
|_
|_ ||_|_ dS)z;Add --with-X/--without-X options based on optional featuresNz
(default)rxzwith-zinclude zwithout-zexclude ) r<><00>copyr<79>r]<00> _set_feature<72>validate<74>optionalr<<00>include_by_default<6C>extend<6E>global_optionsZfeature_optionsZfeature_negopt) r-Zgo<67>nor1<00>feature<72>descrZincdefZexcdef<65>newrrrr(s"
 


z+Distribution._set_global_opts_from_featurescCs<>xJ|j<00><01>D]<\}}|<00>|<01>}|s2|dkr |<02><03>r |<02>|<00>|<00>|d<02>q Wx6|j<00><01>D](\}}|<00>|<01>sX|<02>|<00>|<00>|d<03>qXWdS)z9Add/remove features and resolve dependencies between themNrr)r<>r]<00>feature_is_includedrH<00>
include_inrE<00> exclude_from)r-r1rLZenabledrrrr0s



zDistribution._finalize_featurescCs`||jkr|j|St<01>d|<01>}x:|D]&}|j|jd<02>|<03><05>|j|<}|SWt<06>||<01>SdS)z(Pluggable version of get_command_class()zdistutils.commands)rN)<08>cmdclassrmr<>r)r r*r<><00>get_command_class)r-<00>commandZepsrvrRrrrrSAs

 
zDistribution.get_command_classcCs>x2t<00>d<01>D]$}|j|jkr |<01><04>}||j|j<q Wt<05>|<00>S)Nzdistutils.commands)rmr<>r1rRrr<><00>print_commands)r-rvrRrrrrUNs
 zDistribution.print_commandscCs>x2t<00>d<01>D]$}|j|jkr |<01><04>}||j|j<q Wt<05>|<00>S)Nzdistutils.commands)rmr<>r1rRrr<><00>get_command_list)r-rvrRrrrrVVs
 zDistribution.get_command_listcCst||<00>|<01>|<02>dS)zSet feature's inclusion statusN)r<>r)r-r1<00>statusrrrrE^szDistribution._set_featurecCst||<00>|<01><01>S)zAReturn 1 if feature is included, 0 if excluded, 'None' if unknown)r"r)r-r1rrrrObsz Distribution.feature_is_includedcCsF|<00>|<01>dkr&|j|j}t|d<00><01>|j|<00>|<00>|<00>|d<03>dS)z)Request inclusion of feature named 'name'rz2 is required, but was excluded or is not availablerN)rOr<>r<rrPrE)r-r1rMrrr<00>include_featurefs  
zDistribution.include_featurecKsDx>|<01><00>D]2\}}t|d|d<02>}|r0||<03>q
|<00>||<03>q
WdS)a<>Add 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.
Z _include_N)r]r"<00> _include_misc)r-r<>r<>r<><00>includerrrrZqs

zDistribution.includecsf<00>d<00>|jr&<26><00>fdd<03>|jD<00>|_|jrD<72><00>fdd<03>|jD<00>|_|jrb<72><00>fdd<03>|jD<00>|_dS)z9Remove packages, modules, and extensions in named packager}cs"g|]}|<01>kr|<01><00><01>s|<01>qSr)<01>
startswith)r<>r&)<02>package<67>pfxrrr<><00>sz0Distribution.exclude_package.<locals>.<listcomp>cs"g|]}|<01>kr|<01><00><01>s|<01>qSr)r[)r<>r&)r\r]rrr<><00>scs&g|]}|j<00>kr|j<00><01><01>s|<01>qSr)r1r[)r<>r&)r\r]rrr<><00>sN)<03>packages<65>
py_modules<EFBFBD> ext_modules)r-r\r)r\r]r<00>exclude_package<67>szDistribution.exclude_packagecCs4|d}x&|<00><00>D]}||ks(|<03>|<02>rdSqWdS)z<Return true if 'exclude_package(package)' would do somethingr}TN)<02>iter_distribution_namesr[)r-r\r]r&rrrr~<00>szDistribution.has_contents_forcs<>t<00>t<01>std|<01>f<00><01>yt||<01>}Wn tk
rHtd|<00><01>YnX|dk rjt|t<01>sjt|d<00><01>n|r<>t||<01>fdd<06>|D<00><01>dS)zAHandle 'exclude()' for list/tuple attrs without a special handlerz(%s: setting must be a list or tuple (%r)z %s: No such distribution settingNz4: this setting cannot be changed via include/excludecsg|]}|<01>kr|<01>qSrr)r<><00>item)r2rrr<><00>sz.Distribution._exclude_misc.<locals>.<listcomp>)ry<00>sequencer
r"rtr<>)r-r1r2<00>oldr)r2r<00> _exclude_misc<73>s
 zDistribution._exclude_misccs<>t|t<01>std||f<00><01>yt||<01><02>Wn tk
rHtd|<00><01>YnX<00>dkr`t|||<02>n:t<00>t<01>sxt|d<00><01>n"<22>fdd<06>|D<00>}t||<01>|<00>dS)zAHandle 'include()' for list/tuple attrs without a special handlerz%s: setting must be a list (%r)z %s: No such distribution settingNz4: this setting cannot be changed via include/excludecsg|]}|<01>kr|<01>qSrr)r<>rc)rerrr<><00>sz.Distribution._include_misc.<locals>.<listcomp>)ryrdr
r"rtr<>)r-r1r2rNr)rerrY<00>s

 zDistribution._include_misccKsDx>|<01><00>D]2\}}t|d|d<02>}|r0||<03>q
|<00>||<03>q
WdS)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.
Z _exclude_N)r]r"rf)r-r<>r<>r<><00>excluderrrrg<00>s

zDistribution.excludecCs,t|t<01>std|f<00><01>tt|j|<01><02>dS)Nz.packages: setting must be a list or tuple (%r))ryrdr
rzrra)r-r^rrr<00>_exclude_packages<65>s
 zDistribution._exclude_packagesc
Cs<>|jj|_|jj|_|d}|<00>d<02>}xB||krh||\}}||=ddl}|<07>|d<03>|dd<04><|d}q(Wt<06>|||<02>}|<00>|<03>} t | dd<00>r<>d|f|<00>|<03>d<|dk r<>gS|S)Nr<00>aliasesTrZcommand_consumes_argumentsz command liner9)
r=rJr<>r<><00>shlexrDr<><00>_parse_command_optsrSr")
r-rr9rTrirr rj<00>nargs<67> cmd_classrrrrk<00>s"



  
 z Distribution._parse_command_optsc Cs<>i}x<>|j<00><01>D]<5D>\}}x<>|<03><01>D]<5D>\}\}}|dkr8q"|<04>dd<03>}|dkr<>|<00>|<02>}|j<04><05>}|<08>t|di<00><03>x<|<08><01>D]\} }
|
|kr|| }d}Pq|Wtd<07><01>n |dkr<>d}||<01> |i<00>|<q"WqW|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.
z command liner<65>r<>rr<>NzShouldn't be able to get herer)
r<EFBFBD>r]r<><00>get_command_objr<6A>rDr?r"rqr<>) r-<00>drCrArrrZcmdobjr<00>neg<65>posrrr<00>get_cmdline_optionss(
 


z Distribution.get_cmdline_optionsccs<>x|jp
dD]
}|Vq Wx|jp$dD]
}|Vq&WxH|jp>dD]:}t|t<04>rX|\}}n|j}|<04>d<02>rt|dd<04>}|Vq@WdS)z@Yield all packages, modules, and extension names in distributionr<00>moduleNi<4E><69><EFBFBD><EFBFBD>)r^r_r`ryr{r1<00>endswith)r-<00>pkgrs<00>extr1Z buildinforrrrb0s




 z$Distribution.iter_distribution_namesc Cs<>ddl}tjs|jr t<04>||<01>St|jtj <09>s:t<04>||<01>S|jj
<EFBFBD> <0B>dkrVt<04>||<01>S|jj
}|jj }|j dkrtdpvd}|jj}t<08> |j<07><0F>d|||<06>|_z t<04>||<01>St<08> |j<07><0F>||||<06>|_XdS)z<>If 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)zutf-8<>utf8<66>win32<33>
zutf-8)r<>r rT<00> help_commandsr<73><00>handle_display_optionsry<00>stdoutr<74><00> TextIOWrapperr<72>r<><00>errorsr?<00>line_buffering<6E>detach)r-<00> option_orderr<72>r<>r~<00>newlinerrrrr{Bs"     z#Distribution.handle_display_options)N)N)N)NF).r<><00>
__module__<EFBFBD> __qualname__<5F>__doc__r<5F>rZ
OrderedSetr<EFBFBD>r<>r<>r<>r<>r<><00> staticmethodr<64>r<>r<>r
r<>rrrrr!r'r0r r(rrSrUrVrErOrXrZrar~rfrYrgrhrkrrrbr{rrrrrTsRB

; 
> 
/
    (c@sFeZdZdZedd<03><00>Zddd<08>Zd d
<EFBFBD>Zd d <0C>Zd d<0E>Z dd<10>Z
dS)r<>a<>
**deprecated** -- The `Feature` facility was never completely implemented
or supported, `has reported issues
<https://github.com/pypa/setuptools/issues/58>`_ and will be removed in
a future version.
A subset of the distribution that can be excluded if unneeded/wanted
Features are created using these keyword arguments:
'description' -- a short, human readable description of the feature, to
be used in error messages, and option help messages.
'standard' -- if true, the feature is included by default if it is
available on the current system. Otherwise, the feature is only
included if requested via a command line '--with-X' option, or if
another included feature requires it. The default setting is 'False'.
'available' -- if true, the feature is available for installation on the
current system. The default setting is 'True'.
'optional' -- if true, the feature's inclusion can be controlled from the
command line, using the '--with-X' or '--without-X' options. If
false, the feature's inclusion status is determined automatically,
based on 'availabile', 'standard', and whether any other feature
requires it. The default setting is 'True'.
'require_features' -- a string or sequence of strings naming features
that should also be included if this feature is included. Defaults to
empty list. May also contain 'Require' objects that should be
added/removed from the distribution.
'remove' -- a string or list of strings naming packages to be removed
from the distribution if this feature is *not* included. If the
feature *is* included, this argument is ignored. This argument exists
to support removing features that "crosscut" a distribution, such as
defining a 'tests' feature that removes all the 'tests' subpackages
provided by other features. The default for this argument is an empty
list. (Note: the named package(s) or modules must exist in the base
distribution when the 'setup()' function is initially called.)
other keywords -- any other keyword arguments are saved, and passed to
the distribution's 'include()' and 'exclude()' methods when the
feature is included or excluded, respectively. So, for example, you
could pass 'packages=["a","b"]' to cause packages 'a' and 'b' to be
added or removed from the distribution as appropriate.
A feature must include at least one 'requires', 'remove', or other
keyword argument. Otherwise, it can't affect the distribution in any way.
Note also that you can subclass 'Feature' to create your own specialized
feature types that modify the distribution in other ways when included or
excluded. See the docstrings for the various methods here for more detail.
Aside from the methods, the only feature attributes that distributions look
at are 'description' and 'optional'.
cCsd}tj|tdd<03>dS)NzrFeatures are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.<2E>)<01>
stacklevel)rrr)r3rrrr<><00>szFeature.warn_deprecatedFTrc Ks<>|<00><00>||_||_||_||_t|ttf<02>r4|f}dd<02>|D<00>|_dd<02>|D<00>}|r^||d<t|t<06>rn|f}||_ ||_
|s<>|s<>|s<>t d<05><01>dS)NcSsg|]}t|t<01>r|<01>qSr)ryrU)r<>r<>rrrr<><00>sz$Feature.__init__.<locals>.<listcomp>cSsg|]}t|t<01>s|<01>qSr)ryrU)r<>r<>rrrr<><00>sr<>zgFeature %s: must define 'require_features', 'remove', or at least one of 'packages', 'py_modules', etc.) r<>r<<00>standard<72> availablerGryrUrr<><00>removerpr
) r-r<r<>r<>rGr<>r<>rpZerrrrr<><00>s$
 zFeature.__init__cCs |jo
|jS)z+Should this feature be included by default?)r<>r<>)r-rrrrH<00>szFeature.include_by_defaultcCs@|jst|jd<00><01>|jf|j<04>x|jD]}|<01>|<02>q*WdS)aEnsure feature and its requirements are included in distribution
You may override this in a subclass to perform additional operations on
the distribution. Note that this method may be called more than once
per feature, and so should be idempotent.
z3 is required, but is not available on this platformN)r<>r r<rZrpr<>rX)r-rur/rrrrP<00>s   zFeature.include_incCs2|jf|j<01>|jr.x|jD]}|<01>|<02>qWdS)a2Ensure feature is excluded from distribution
You may override this in a subclass to perform additional operations on
the distribution. This method will be called at most once per
feature, and only after all included features have been asked to
include themselves.
N)rgrpr<>ra)r-rurcrrrrQ<00>s  zFeature.exclude_fromcCs2x,|jD]"}|<01>|<02>std|j||f<00><01>qWdS)a<>Verify that feature makes sense in context of distribution
This method is called by the distribution just before it parses its
command line. It checks to ensure that the 'remove' attribute, if any,
contains only valid package/module names that are present in the base
distribution when 'setup()' is called. You may override it in a
subclass to perform any other required validation of the feature
against a target distribution.
zg%s wants to be able to remove %s, but the distribution doesn't contain any packages or modules under %sN)r<>r~r
r<)r-rurcrrrrF<00>s

zFeature.validateN)FTTrr) r<>r<>r<>r<>r<>r<>r<>rHrPrQrFrrrrr<>es7 
r<>c@seZdZdZdS)rzrClass for warning about deprecations in dist in
setuptools. Not ignored by default, unlike DeprecationWarning.N)r<>r<>r<>r<>rrrrr<00>sr)J<>__all__r<5F>r<>r<>r#rr<>Z distutils.logr<67><00>distutils.core<72> distutils.cmd<6D>distutils.dist<73>distutils.utilr<00>distutils.debugr<00>distutils.fancy_getoptrr<><00> collectionsr<00>emailr<00>distutils.errorsrr r
r Zdistutils.versionr Zsetuptools.externr rrZsetuptools.extern.six.movesrrrrxrZsetuptools.dependsr<00>
setuptoolsrZsetuptools.monkeyrZsetuptools.configrrm<00>
__import__rr/rGrlr{rzrdrwr|r<>r<>r<>r<>r<>r<>r<>r<>r<>r<><00>corerr<>r<>rrrrr<00><module>sv               6L