Your IP : 3.12.76.129
�
�Ofc@sKdgZddlZddlZddlZddlZddlZddlZddlZddl Zddl
Z
ddlmZddl
mZmZmZddlmZddlmZddlmZddlmZdd lmZmZmZdd
lmZddlmZddl m!Z!dd
l"m#Z#ddl$Z$ddl%m&Z&e'd�e'd�d�Z(d�Z)d�Z*d�Z+e,e-fZ.d�Z/d�Z0d�Z1d�Z2d�Z3d�Z4d�Z5d�Z6d�Z7d�Z8d �Z9d!�Z:e!ej;j<�Z=de&e=fd"��YZ<d#fd$��YZ>dS(%tDistributioni����N(tdefaultdict(tDistutilsOptionErrortDistutilsPlatformErrortDistutilsSetupError(t
rfc822_escape(t
StrictVersion(tsix(t packaging(tmaptfiltertfilterfalse(tRequire(twindows_support(t
get_unpatched(tparse_configurationi(tDistribution_parse_config_filess&setuptools.extern.packaging.specifierss#setuptools.extern.packaging.versioncCstjdt�t|�S(NsDo not call this function(twarningstwarntDeprecationWarningR(tcls((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyt_get_unpatched#scCs�|js|jrtd�S|jdk sR|jdk sRt|dd�dk r\td�S|js�|js�|j s�|j
s�|jr�td�Std�S(Ns2.1tpython_requiress1.2s1.1s1.0(tlong_description_content_typetprovides_extrasRt
maintainertNonetmaintainer_emailtgetattrtprovidestrequirest obsoletestclassifierstdownload_url(tdist_md((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytget_metadata_version(s
cCst|�}|jd|�|jd|j��|jd|j��|jd|j��|jd|j��|td�kr�|jd|j��|jd|j��nyd#d$d%d&f}xd|D]\\}}t ||�}t
jr|j|�}n|d"k r�|jd||f�q�q�W|jd|j��|jrl|jd|j�nx(|jj�D]}|jd|�q|Wt|j��}|jd|�dj|j��} | r�|jd| �n|td�kr&xA|j�D]}
|jd|
�qWn|j|d|j��|j|d|j��|j|d|j��|j|d|j��|j|d|j��t|d�r�|jd|j�n|jr�|jd |j�n|jrx%|jD]}|jd!|�q�Wnd"S('s5Write the PKG-INFO format data to a file object.
sMetadata-Version: %s
s Name: %s
sVersion: %s
sSummary: %s
sHome-page: %s
s1.2sAuthor: %s
sAuthor-email: %s
tAuthortauthorsAuthor-emailtauthor_emailt
MaintainerRsMaintainer-emailRs%s: %s
sLicense: %s
sDownload-URL: %s
sProject-URL: %s, %s
sDescription: %s
t,s
Keywords: %s
s
Platform: %s
tPlatformt
ClassifiertRequirestProvidest ObsoletesRsRequires-Python: %s
sDescription-Content-Type: %s
sProvides-Extra: %s
N(R$R%(sAuthor-emailR&(R'R(sMaintainer-emailR( R#twritetget_nametget_versiontget_descriptiontget_urlRtget_contacttget_contact_emailRRtPY2t
_encode_fieldRtget_licenseR!tproject_urlstitemsRtget_long_descriptiontjointget_keywordst
get_platformst_write_listtget_classifierstget_requirestget_providest
get_obsoletesthasattrRRR(tselftfiletversiontoptional_fieldstfieldtattrtattr_valtproject_urlt long_desctkeywordstplatformtextra((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytwrite_pkg_file7s\ cCs>ttjj|d�ddd��}|j|�WdQXdS(s3Write the PKG-INFO file into the release tree.
sPKG-INFOtwtencodingsUTF-8N(topentostpathR;RP(RDtbase_dirtpkg_info((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytwrite_pkg_infoscCsdy*tjjd|�}|js)t�Wn3ttttfk
r_td||f��nXdS(Nsx=s4%r must be importable 'module:attrs' string (got %r)( t
pkg_resourcest
EntryPointtparsetextrastAssertionErrort TypeErrort
ValueErrortAttributeErrorR(tdistRItvaluetep((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytcheck_importable�scCsYydj|�|kst�Wn3ttttfk
rTtd||f��nXdS(s*Verify that value is a string list or Nonets%%r must be a list of strings (got %r)N(R;R]R^R_R`R(RaRIRb((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytassert_string_list�s
cCs�|}t|||�xw|D]o}|j|�sItdd|��n|jd�\}}}|r||krtjjd||�qqWdS(s(Verify that namespace packages are valids1Distribution contains no modules or packages for snamespace package %rt.s^WARNING: %r is declared as a package namespace, but %r is not: please correct this in setup.pyN(Rfthas_contents_forRt
rpartitiont distutilstlogR(RaRIRbtns_packagestnsptparenttseptchild((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyt check_nsp�s
cCsMy ttjt|j���Wn&tttfk
rHtd��nXdS(s+Verify that extras_require mapping is valids�'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.N( tlistt itertoolststarmapt_check_extraR9R^R_R`R(RaRIRb((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytcheck_extras�s
cCsW|jd�\}}}|r@tj|�r@td|��nttj|��dS(Nt:sInvalid environment marker: (t partitionRYtinvalid_markerRRrtparse_requirements(ROtreqstnameRotmarker((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyRu�scCs=t|�|kr9d}t|jd|d|���ndS(s)Verify that value is True, False, 0, or 1s0{attr!r} must be a boolean value (got {value!r})RIRbN(tboolRtformat(RaRIRbttmpl((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytassert_bool�scCsy;ttj|��t|ttf�r:td��nWn=ttfk
rz}d}t|j d|d|���nXdS(s9Verify that install_requires is a valid requirements listsUnordered types are not allowedsm{attr!r} must be a string or list of strings containing valid project/version requirement specifiers; {error}RIterrorN(
RrRYRzt
isinstancetdicttsetR^R_RR(RaRIRbR�R�((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytcheck_requirements�scCsXytjj|�Wn=tjjk
rS}d}t|jd|d|���nXdS(s.Verify that value is a valid version specifiersF{attr!r} must be a string containing valid version specifiers; {error}RIR�N(Rt
specifierstSpecifierSettInvalidSpecifierRR(RaRIRbR�R�((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytcheck_specifier�s
cCs:ytjj|�Wntk
r5}t|��nXdS(s)Verify that entry_points map is parseableN(RYRZt parse_mapR_R(RaRIRbte((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytcheck_entry_points�scCs%t|tj�s!td��ndS(Nstest_suite must be a string(R�Rtstring_typesR(RaRIRb((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytcheck_test_suite�scCs}t|t�rixW|j�D]B\}}t|t�s;Pnyt|�Wqtk
r]PqXqWdSnt|d��dS(s@Verify that value is a dictionary of package names to glob listsNsI must be a dictionary mapping package names to lists of wildcard patterns(R�R�R9tstrtiterR^R(RaRIRbtktv((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytcheck_package_data�s
cCs=x6|D].}tjd|�stjjd|�qqWdS(Ns\w+(\.\w+)*s[WARNING: %r not a valid package name; please use only .-separated package names in setup.py(tretmatchRjRkR(RaRIRbtpkgname((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytcheck_packagess
cBsLeZdZd"Zd�Zd"d�Zd�Zd�Ze d��Z
d�Zd�Zd"e
d�Zd �Zd
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#d�Z$d�Z%d �Z&d!�Z'RS(#s�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.
cCs�|sd|ksd|kr#dStjt|d��j�}tjjj|�}|dk r�|jd�r�tj t|d��|_
||_ndS(NR|RFsPKG-INFO(RYt safe_nameR�tlowertworking_settby_keytgetRthas_metadatatsafe_versiont_versiont
_patched_dist(RDtattrstkeyRa((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytpatch_missing_pkg_infoVscCsUt|d�}|s!i|_n|p*i}d|ksEd|krRtj�ng|_i|_g|_|jdd�|_ |j
|�|jdi�|_|jdg�|_
|jdg�|_x0tjd�D]}t|�j|jd�q�Wtj||�t|jd|j�|j_|jd �|j_t|jd
t��|j_t|jjtj�r�t|jj�|j_n|jjdk rGyft jj!|jj�}t|�}|jj|krt"j#d|jj|f�||j_nWqGt jj$t%fk
rCt"j#d|jj�qGXn|j&�dS(
Ntpackage_datatfeaturestrequire_featurestsrc_rootR8tdependency_linkstsetup_requiressdistutils.setup_keywordsRRsNormalizing '%s' to '%s's�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.('RCR�tFeaturetwarn_deprecatedR�R�t
dist_filestpopRR�R�R�R8R�R�RYtiter_entry_pointstvarst
setdefaultR|t
_Distributiont__init__RtmetadataRR�RR�RFtnumberstNumberR�RtVersionRRtInvalidVersionR^t_finalize_requires(RDR�thave_package_dataRctvertnormalized_version((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR�csP
cCs�t|dd�r$|j|j_nt|dd�r�xI|jj�D]5}|jd�d}|rF|jjj|�qFqFWn|j �|j
�dS(s�
Set `metadata.python_requires` and fix environment markers
in `install_requires` and `extras_require`.
Rtextras_requireRwiN(RRRR�R�tkeystsplitRtaddt_convert_extras_requirementst"_move_install_requirements_markers(RDRO((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR��s
cCs�t|dd�pi}tt�|_xf|j�D]X\}}|j|x>tj|�D]-}|j|�}|j||j |�q[Wq4WdS(s�
Convert requirements in `extras_require` of the form
`"extra": ["barbazquux; {marker}"]` to
`"extra:{marker}": ["barbazquux"]`.
R�N(
RRRRrt_tmp_extras_requireR9RYRzt_suffix_fortappend(RDt
spec_ext_reqstsectionR�trtsuffix((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR��scCs|jrdt|j�SdS(se
For a requirement, return the 'extras_require' suffix for
that requirement.
RwRe(R}R�(treq((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR��scs�d�}t�dd�pd}ttj|��}t||�}t||�}ttt|���_ x/|D]'}�j
dt|j�j|�qsWt
�fd��j
j�D���_dS(sv
Move requirements in `install_requires` that are using environment
markers `extras_require`.
cSs|jS(N(R}(R�((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyt
is_simple_req�stinstall_requiresRwc3sF|]<\}}|gt�j|�D]}t|�^q%fVqdS(N(R t
_clean_reqR�(t.0R�R�R�(RD(s3/usr/lib/python2.7/site-packages/setuptools/dist.pys <genexpr>�sN((RRRrRYRzR
RR R�R�R�R}R�R�R9R�(RDR�tspec_inst_reqst inst_reqstsimple_reqstcomplex_reqsR�((RDs3/usr/lib/python2.7/site-packages/setuptools/dist.pyR��s
%cCs
d|_|S(sP
Given a Requirement, remove environment markers and return it.
N(RR}(RDR�((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR��s cCs7tj|d|�t||jd|�|j�dS(sYParses configuration files from various levels
and loads configuration.
t filenamestignore_option_errorsN(R�tparse_config_filesRtcommand_optionsR�(RDR�R�((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR��scCs)tj|�}|jr%|j�n|S(s3Process features after parsing command line options(R�tparse_command_lineR�t_finalize_features(RDtresult((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR��s
cCsd|jdd�S(s;Convert feature name to corresponding option attribute nametwith_t-t_(treplace(RDR|((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyt_feature_attrname�scCsUtjjtj|�d|jdt�}x$|D]}tjj|dt�q1W|S(sResolve pre-setup requirementst installertreplace_conflictingR�(RYR�tresolveRztfetch_build_eggtTrueR�(RDRtresolved_distsRa((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytfetch_build_eggs�s
cCs�tj|�|jr#|j�nxgtjd�D]V}t||jd�}|dk r3|j d|j
�|j�||j|�q3q3Wt|dd�r�g|jD]}t
jj|�^q�|_n g|_dS(Nsdistutils.setup_keywordsR�tconvert_2to3_doctests(R�tfinalize_optionsR�t_set_global_opts_from_featuresRYR�RR|RtrequireR�tloadR�RTRUtabspath(RDRcRbtp((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR�s
+cCs�tjjtjd�}tjj|�s�tj|�tj|�tjj|d�}t|d��.}|j d�|j d�|j d�WdQXn|S(Ns.eggss
README.txtRQscThis directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.
sAThis directory caches those eggs to prevent repeated downloads.
s/However, it is safe to delete this directory.
(
RTRUR;tcurdirtexiststmkdirR
t hide_fileRSR.(RDt
egg_cache_dirtreadme_txt_filenametf((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytget_egg_cache_dirs
cCsddlm}|jidgd6�}|jd�}|j�|jd�|jd�j�D��|jr�|j}d|kr�|dd|}nd|f|d<n|j�}||d d
gd|dt d
t
dddt
dt
dt dt dt
�
}|j�|j|�S(s Fetch an egg needed for buildingi����(teasy_installR�tscript_argscss-|]#\}}|dkr||fVqdS(t
find_linkst site_dirst index_urltoptimizetallow_hostsN(R�R�R�R�R�R�((R�R�R�((s3/usr/lib/python2.7/site-packages/setuptools/dist.pys <genexpr>0s R�itsetuptargstxtinstall_dirtexclude_scriptstalways_copytbuild_directoryteditabletupgradet
multi_versiont no_reporttuserN(
tsetuptools.command.easy_installR�t __class__tget_option_dicttcleartupdateR9R�R�R�tFalseRtensure_finalized(RDR�R�RatoptstlinksR�tcmd((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR�)s(
c Csg}|jj�}x�|jj�D]�\}}|j|d�|j|�|jr%|j}d}d}|j �s�||}}nd|dd||fd|dd||ff}|j
|�d||d|<q%q%W||j|_|_||_|_
dS(s;Add --with-X/--without-X options based on optional featuress
(default)Reswith-sinclude swithout-sexclude N(tnegative_opttcopyR�R9t_set_featureRtvalidatetoptionaltdescriptiontinclude_by_defaulttextendtglobal_optionstfeature_optionstfeature_negopt( RDtgotnoR|tfeaturetdescrtincdeftexcdeftnew((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR�Fs"
cCs�xj|jj�D]Y\}}|j|�}|sI|dkr|j�r|j|�|j|d�qqWxL|jj�D];\}}|j|�s}|j|�|j|d�q}q}WdS(s9Add/remove features and resolve dependencies between themiiN(R�R9tfeature_is_includedRRt
include_inRtexclude_from(RDR|Rtenabled((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR�as
cCs|||jkr|j|Stjd|�}xI|D]1}|jd|j�|j�|j|<}|SWtj||�SdS(s(Pluggable version of get_command_class()sdistutils.commandsR�N(tcmdclassRYR�R�R�R�R�tget_command_class(RDtcommandtepsRcR(((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR)rs
cCsXxHtjd�D]7}|j|jkr|j�}||j|j<qqWtj|�S(Nsdistutils.commands(RYR�R|R(R�R�tprint_commands(RDRcR(((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR,s
cCsXxHtjd�D]7}|j|jkr|j�}||j|j<qqWtj|�S(Nsdistutils.commands(RYR�R|R(R�R�tget_command_list(RDRcR(((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR-�s
cCst||j|�|�dS(sSet feature's inclusion statusN(tsetattrR�(RDR|tstatus((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR�scCst||j|��S(sAReturn 1 if feature is included, 0 if excluded, 'None' if unknown(RR�(RDR|((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR$�scCs`|j|�dkr8|j|j}t|d��n|j|j|�|j|d�dS(s)Request inclusion of feature named 'name'is2 is required, but was excluded or is not availableiN(R$R�RRR%R(RDR|R ((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytinclude_feature�scKsZxS|j�D]E\}}t|d|d�}|rB||�q
|j||�q
WdS(s�Add items to distribution that are named in keyword arguments
For example, 'dist.exclude(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.
t _include_N(R9RRt
_include_misc(RDR�R�R�tinclude((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR3�s
cCs�|d}|jrQg|jD](}||kr|j|�r|^q|_n|jr�g|jD](}||krd|j|�rd|^qd|_n|jr�g|jD].}|j|kr�|jj|�r�|^q�|_ndS(s9Remove packages, modules, and extensions in named packageRgN(tpackagest
startswitht
py_modulestext_modulesR|(RDtpackagetpfxR�((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytexclude_package�s
. . cCsD|d}x3|j�D]%}||ks8|j|�rtSqWdS(s<Return true if 'exclude_package(package)' would do somethingRgN(titer_distribution_namesR5R�(RDR8R9R�((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyRh�s
cCs�t|t�s(td||f��nyt||�}Wn!tk
r^td|��nX|dk r�t|t�r�t|d��n8|r�t||g|D]}||kr�|^q��ndS(sAHandle 'exclude()' for list/tuple attrs without a special handlers(%s: setting must be a list or tuple (%r)s %s: No such distribution settings4: this setting cannot be changed via include/excludeN(R�tsequenceRRR`RR.(RDR|Rbtoldtitem((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyt
_exclude_misc�s
cCs�t|t�s(td||f��nyt||�}Wn!tk
r^td|��nX|dkr~t|||�n[t|t�s�t|d��n9g|D]}||kr�|^q�}t||||�dS(sAHandle 'include()' for list/tuple attrs without a special handlers%s: setting must be a list (%r)s %s: No such distribution settings4: this setting cannot be changed via include/excludeN(R�R<RRR`RR.(RDR|RbR=R>R#((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR2�s
%cKsZxS|j�D]E\}}t|d|d�}|rB||�q
|j||�q
WdS(sRemove 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.
t _exclude_N(R9RRR?(RDR�R�R�texclude((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyRAs
cCs?t|t�s%td|f��ntt|j|��dS(Ns.packages: setting must be a list or tuple (%r)(R�R<RRrR R:(RDR4((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyt_exclude_packagessc
Cs�|jj|_|jj|_|d}|jd�}xS||kr�||\}}||=ddl}|j|t�|d*|d}q:Wtj|||�}|j |�} t
| dd�r�d|f|j|�d<|dk r�gSn|S(Nitaliasesi����itcommand_consumes_argumentsscommand lineR�(R RRR
tshlexR�R�R�t_parse_command_optsR)RR(
RDtparserR�R*RCtsrctaliasREtnargst cmd_class((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyRFs"
cCs'i}x|jj�D] \}}x�|j�D]�\}\}}|dkrSq/n|jdd�}|dkr�|j|�}|jj�}|jt|di��xZ|j�D](\} }
|
|kr�| }d}Pq�q�Wt d��n|dkrd}n||j
|i�|<q/WqW|S( shReturn 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.
scommand lineR�R�iRsShouldn't be able to get hereiN(R�R9R�tget_command_objRRRRRR]R�(RDtdRRtoptRHtvaltcmdobjtneg_opttnegtpos((s3/usr/lib/python2.7/site-packages/setuptools/dist.pytget_cmdline_options9s(
ccs�x|jpdD]}|VqWx|jp.dD]}|Vq/Wx_|jpMdD]N}t|t�rr|\}}n |j}|jd�r�|d }n|VqNWdS(s@Yield all packages, modules, and extension names in distributiontmodulei����N((((R4R6R7R�ttupleR|tendswith(RDtpkgRUtextR|t buildinfo((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR;as
c Cs0ddl}tjs|jr.tj||�Sddl}t|j|j �s_tj||�S|jj
j�dkr�tj||�S|jj
}|jj}|j
dkr�dp�d}|jj}|j |jj�d|||�|_ztj||�SWd|j |jj�||||�|_XdS(s�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.
i����Nsutf-8tutf8twin32s
(sutf-8R[(tsysRR5t
help_commandsR�thandle_display_optionstioR�tstdoutt
TextIOWrapperRRR�terrorsRNRtline_bufferingtdetach(RDtoption_orderR]R`RRRctnewlineRd((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR_ss$!N((t__name__t
__module__t__doc__RR�R�R�R�R�tstaticmethodR�R�R�R
R�R�R�R�R�R�R�R�R�R)R,R-RR$R0R3R:RhR?R2RARBRFRTR;R_(((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyRsFB
7
( R�cBsYeZdZed��Zeeeddd�Zd�Zd�Z d�Z
d�ZRS( s�
**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'.
cCs d}tj|tdd�dS(NsrFeatures are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.t
stackleveli(RRR(tmsg((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR��sc
Ks
|j�||_||_||_||_t|ttf�rO|f}ng|D]}t|t�rV|^qV|_g|D]}t|t�s�|^q�} | r�| |d<nt|t�r�|f}n||_ ||_
|r|r|rtd��ndS(NR�sgFeature %s: must define 'require_features', 'remove', or at least one of 'packages', 'py_modules', etc.(R�Rtstandardt availableRR�R�RR�tremoveR\R(
RDRRnRoRR�RpR\R�ter((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR��s$
+(
cCs|jo|jS(s+Should this feature be included by default?(RoRn(RD((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR�scCsT|jst|jd��n|j|j�x|jD]}|j|�q9WdS(sEnsure 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.
s3 is required, but is not available on this platformN(RoRRR3R\R�R0(RDRaR�((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR%�s cCsA|j|j�|jr=x!|jD]}|j|�q#WndS(s2Ensure 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(RAR\RpR:(RDRaR>((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR&s cCsFx?|jD]4}|j|�s
td|j||f��q
q
WdS(s�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.
sg%s wants to be able to remove %s, but the distribution doesn't contain any packages or modules under %sN(RpRhRR(RDRaR>((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyRs
(((RhRiRjRkR�R
R�R�RR%R&R(((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyR��s7 (?t__all__R�RTRR�t
distutils.logRjtdistutils.coret
distutils.cmdtdistutils.distRstcollectionsRtdistutils.errorsRRRtdistutils.utilRtdistutils.versionRtsetuptools.externRRtsetuptools.extern.six.movesR R
Rtsetuptools.dependsRt
setuptoolsR
tsetuptools.monkeyRtsetuptools.configRRYt
py36compatRt
__import__RR#RPRXRVRrR<RdRfRqRvRuR�R�R�R�R�R�R�tcoreRR�R�(((s3/usr/lib/python2.7/site-packages/setuptools/dist.pyt<module>s\
H
���