Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
øðuYc@s&dgZddlZddlZddlZddlZddlZddlZddlZddl	Zddl
Z
ddlmZddl
mZmZmZddlmZddlmZddlmZddlmZdd	lmZdd
lmZddlmZddlm Z ddl!Z!d
dl"m#Z#e$dƒe$dƒd„Z%d„Z&d„Z'e(e)fZ*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2d„Z3d„Z4d„Z5d„Z6eej7j8ƒZ9de#e9fd „ƒYZ8d!fd"„ƒYZ:dS(#tDistributioniÿÿÿÿN(tdefaultdict(tDistutilsOptionErrortDistutilsPlatformErrortDistutilsSetupError(t
rfc822_escape(tsix(tmap(t	packaging(tRequire(twindows_support(t
get_unpatched(tparse_configurationi(tDistribution_parse_config_filess)pkg_resources.extern.packaging.specifierss&pkg_resources.extern.packaging.versioncCstjdtƒt|ƒS(NsDo not call this function(twarningstwarntDeprecationWarningR(tcls((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyt_get_unpatched!scCsd}|js3|js3|js3|js3|jr<d}nt|dƒrTd}n|jd|ƒ|jd|jƒƒ|jd|jƒƒ|jd|j	ƒƒ|jd	|j
ƒƒ|jd
|jƒƒ|jd|jƒƒ|jd|j
ƒƒ|jr&|jd
|jƒnt|jƒƒ}|jd|ƒdj|jƒƒ}|rx|jd|ƒn|j|d|jƒƒ|j|d|jƒƒ|j|d|jƒƒ|j|d|jƒƒ|j|d|jƒƒt|dƒr|jd|jƒndS(s5Write the PKG-INFO format data to a file object.
    s1.0s1.1tpython_requiress1.2sMetadata-Version: %s
s	Name: %s
sVersion: %s
sSummary: %s
sHome-page: %s
sAuthor: %s
sAuthor-email: %s
sLicense: %s
sDownload-URL: %s
sDescription: %s
t,s
Keywords: %s
tPlatformt
ClassifiertRequirestProvidest	ObsoletessRequires-Python: %s
N(tprovidestrequirest	obsoletestclassifierstdownload_urlthasattrtwritetget_nametget_versiontget_descriptiontget_urltget_contacttget_contact_emailtget_licenseRtget_long_descriptiontjointget_keywordst_write_listt
get_platformstget_classifierstget_requirestget_providest
get_obsoletesR(tselftfiletversiont	long_desctkeywords((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytwrite_pkg_file's8			cCs>ttjj|dƒdddƒ}|j|ƒWdQXdS(s3Write the PKG-INFO file into the release tree.
    sPKG-INFOtwtencodingsUTF-8N(topentostpathR)R6(R1tbase_dirtpkg_info((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytwrite_pkg_infoRscCsdy*tjjd|ƒ}|js)t‚Wn3ttttfk
r_td||fƒ‚nXdS(Nsx=s4%r must be importable 'module:attrs' string (got %r)(	t
pkg_resourcest
EntryPointtparsetextrastAssertionErrort	TypeErrort
ValueErrortAttributeErrorR(tdisttattrtvaluetep((s3/tmp/pip-build-NDUwcL/setuptools/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)RCRDRERFR(RGRHRI((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytassert_string_lisths
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(RMthas_contents_forRt
rpartitiont	distutilstlogR(RGRHRItns_packagestnsptparenttseptchild((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyt	check_nsprs
	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_extratitemsRDRERFR(RGRHRI((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytcheck_extras„s
 cCsW|jdƒ\}}}|r@tj|ƒr@td|ƒ‚nttj|ƒƒdS(Nt:sInvalid environment marker: (t	partitionR?tinvalid_markerRRYtparse_requirements(textratreqstnameRVtmarker((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR\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})RHRIN(tboolRtformat(RGRHRIttmpl((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytassert_bool—scCs[yttj|ƒƒWn=ttfk
rV}d}t|jd|d|ƒƒ‚nXdS(s9Verify that install_requires is a valid requirements listsm{attr!r} must be a string or list of strings containing valid project/version requirement specifiers; {error}RHterrorN(RYR?RbRDRERRh(RGRHRIRkRi((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytcheck_requirementsžs
cCsXytjj|ƒ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}RHRkN(Rt
specifierstSpecifierSettInvalidSpecifierRRh(RGRHRIRkRi((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytcheck_specifierªs
cCs:ytjj|ƒWntk
r5}t|ƒ‚nXdS(s)Verify that entry_points map is parseableN(R?R@t	parse_mapRER(RGRHRIte((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytcheck_entry_points¶scCs%t|tjƒs!tdƒ‚ndS(Nstest_suite must be a string(t
isinstanceRtstring_typesR(RGRHRI((s3/tmp/pip-build-NDUwcL/setuptools/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(RttdictR]tstrtiterRDR(RGRHRItktv((s3/tmp/pip-build-NDUwcL/setuptools/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(tretmatchRQRRR(RGRHRItpkgname((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytcheck_packagesÕs

	cBseZdZdZd„Zdd„Zd„Zdd„Zd„Z	d„Z
d„Zd„Zd	„Z
d
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„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(NReR3sPKG-INFO(R?t	safe_nameRxtlowertworking_settby_keytgettNonethas_metadatatsafe_versiont_versiont
_patched_dist(R1tattrstkeyRG((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytpatch_missing_pkg_info'scCsLt|dƒ}|s!i|_n|p*i}d|ksEd|krRtjƒng|_i|_g|_|o‚|jddƒ|_	|j
|ƒ|dk	rÌ|jdgƒ|_t|d|jƒn|ròd|krò|j
|dƒnx0tjdƒD]}t|ƒj|jdƒqWtj||ƒt|jjtjƒrht|jjƒ|j_n|jjdk	ryftjj|jjƒ}t|ƒ}|jj|krßtjd|jj|fƒ||j_nWqtjjt fk
rtjd	|jjƒqXnt!|d
dƒr>|j"|j_"n|j#ƒdS(Ntpackage_datatfeaturestrequire_featurestsrc_roottdependency_linkstsetup_requiressdistutils.setup_keywordssNormalizing '%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.R($RRŽtFeaturetwarn_deprecatedRRt
dist_filestpopR†R‘RR’RMtfetch_build_eggsR?titer_entry_pointstvarst
setdefaultRet
_Distributiont__init__RttmetadataR3tnumberstNumberRxRtVersionRRtInvalidVersionRDtgetattrRt_finalize_requires(R1R‹thave_package_datat_attrs_dictRJtvertnormalized_version((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR4sL
			
	c
Cs§ttƒ}x‘t|ddƒp$ijƒD]q\}}xbtj|ƒD]Q}|j}|r‡d|_||dt|ƒj	|ƒqG||j	|ƒqGWq+Wg}x¹tjt|ddƒpÄdƒD]–}|j}|j
}|r|r|j	|ƒqÈnd|_
d|_xH|pd	D]:}|}	|rI|	dt|ƒ7}	n||	j	|ƒq WqÈWtd„|jƒDƒƒ|_g|D]}t|ƒ^qˆ|_
dS(
sr
        Fix environment markers in `install_requires` and `extras_require`.

        - move requirements in `install_requires` that are using environment
          markers or extras to `extras_require`.
        - convert requirements in `extras_require` of the form
          `"extra": ["barbazquux; {marker}"]` to
          `"extra:{marker}": ["barbazquux"]`.
        textras_requireR_tinstall_requiresRLcss:|]0\}}|g|D]}t|ƒ^qfVqdS(N(Rx(t.0RzR{tr((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pys	<genexpr>ŠsN(((RL(RRYR£R†R]R?RbRfRxtappendRBRwR©Rª(
R1R©RzR{R¬RfRªRBRrtsection((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR¤ds8
(		"			
		cCsKtj|d|ƒt||jƒt|ddƒrG|j|j_ndS(sYParses configuration files from various levels
        and loads configuration.

        t	filenamesRN(Rœtparse_config_filesRtcommand_optionsR£R†RRž(R1R¯((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR°scCs)tj|ƒ}|jr%|jƒn|S(s3Process features after parsing command line options(Rœtparse_command_lineRt_finalize_features(R1tresult((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR²šs	
cCsd|jddƒS(s;Convert feature name to corresponding option attribute nametwith_t-t_(treplace(R1Re((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyt_feature_attrname¡scCsUtjjtj|ƒd|jdtƒ}x$|D]}tjj|dtƒq1W|S(sResolve pre-setup requirementst	installertreplace_conflictingR¸(R?RƒtresolveRbtfetch_build_eggtTruetadd(R1Rtresolved_distsRG((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR˜¥s			
cCsÚtj|ƒ|jr#|jƒnxgtjdƒD]V}t||jdƒ}|dk	r3|j	d|j
ƒ|jƒ||j|ƒq3q3Wt|ddƒrÍg|jD]}t
jj|ƒ^q©|_n	g|_dS(Nsdistutils.setup_keywordsRºtconvert_2to3_doctests(Rœtfinalize_optionsRt_set_global_opts_from_featuresR?R™R£ReR†trequireR½tloadRÁR:R;tabspath(R1RJRItp((s3/tmp/pip-build-NDUwcL/setuptools/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.txtR7scThis 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.

(
R:R;R)tcurdirtexiststmkdirR
t	hide_fileR9R (R1t
egg_cache_dirtreadme_txt_filenametf((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytget_egg_cache_dirÃs



c
Csfy|j}g|j_Wn=tk
rXddlm}|jidgd6ƒ}|jƒ|jdƒ}d}x*t	|ƒD]}||kr~||=q~q~W|j
rë|j
}d|krØ|dd
jƒ|}nd|f|d<n|jƒ}	||dd
gd|	dt
dtdddtdtdt
dt
dtƒ
}|jƒ||_nX|j|ƒS(s Fetch an egg needed for buildingiÿÿÿÿ(teasy_installRÐtscript_argst
find_linkst	site_dirst	index_urltoptimizetallow_hostsitsetuptargstxtinstall_dirtexclude_scriptstalways_copytbuild_directoryteditabletupgradet
multi_versiont	no_reporttuser(s
find_linksRÓs	index_urlsoptimizeRÓRÖN(t_egg_fetchert
package_indextto_scanRFtsetuptools.command.easy_installRÐt	__class__R°tget_option_dictRYR’tsplitRÏR¾tFalseR†tensure_finalized(
R1treqtcmdRÐRGtoptstkeepRŒtlinksRÚ((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR½Òs6	

	


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)RLswith-sinclude swithout-sexclude N(tnegative_opttcopyRR]t_set_featureR†tvalidatetoptionaltdescriptiontinclude_by_defaulttextendtglobal_optionstfeature_optionstfeature_negopt(	R1tgotnoRetfeaturetdescrtincdeftexcdeftnew((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyRÃôs"
		
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R]tfeature_is_includedR†R÷t
include_inRótexclude_from(R1ReRþtenabled((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR³s

cCs|||jkr|j|Stjd|ƒ}xI|D]1}|jd|jƒ|jƒ|j|<}|SWtj||ƒSdS(s(Pluggable version of get_command_class()sdistutils.commandsRºN(tcmdclassR?R™RÄR½RÅRœtget_command_class(R1tcommandtepsRJR((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR s
cCsXxHtjdƒD]7}|j|jkr|jƒ}||j|j<qqWtj|ƒS(Nsdistutils.commands(R?R™ReRR¼Rœtprint_commands(R1RJR((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR-s
cCsXxHtjdƒD]7}|j|jkr|jƒ}||j|j<qqWtj|ƒS(Nsdistutils.commands(R?R™ReRR¼Rœtget_command_list(R1RJR((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR5s
cCst||j|ƒ|ƒdS(sSet feature's inclusion statusN(tsetattrR¹(R1Retstatus((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyRó=scCst||j|ƒƒS(sAReturn 1 if feature is included, 0 if excluded, 'None' if unknown(R£R¹(R1Re((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyRAscCs`|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(RRRöRRRó(R1ReRÿ((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytinclude_featureEscKsZxS|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(R]R£R†t
_include_misc(R1R‹RzR{tinclude((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyRPs

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 packageRNN(tpackagest
startswitht
py_modulestext_modulesRe(R1tpackagetpfxRÇ((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytexclude_packagefs
	.	.	cCsD|d}x3|jƒD]%}||ks8|j|ƒrtSqWdS(s<Return true if 'exclude_package(package)' would do somethingRNN(titer_distribution_namesRR¾(R1RRRÇ((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyRO|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(RttsequenceRR£RFR†R
(R1ReRItoldtitem((s3/tmp/pip-build-NDUwcL/setuptools/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(RtRRR£RFR†R
(R1ReRIRRR((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR˜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(R]R£R†R(R1R‹RzR{texclude((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR ¯s

cCs?t|tƒs%td|fƒ‚ntt|j|ƒƒdS(Ns.packages: setting must be a list or tuple (%r)(RtRRRYRR(R1R((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyt_exclude_packagesÆsc
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_argumentsscommand lineRØ(RçRùRñRètshlexRéR¾Rœt_parse_command_optsRR£R†(
R1tparserRØR	R"tsrctaliasR$tnargst	cmd_class((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR%Ís"
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.
        scommand lineR·R¶iRñsShouldn't be able to get hereiN(R±R]R¸tget_command_objRñRòtupdateR£R†RCR›(R1tdRíRîtoptR'tvaltcmdobjtneg_opttnegtpos((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pytget_cmdline_optionsçs(
	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((((RRRRtttupleRetendswith(R1tpkgR5textRet	buildinfo((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyRs			
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-8sutf8(tsysRtPY2t
help_commandsRœthandle_display_optionstioRttstdoutt
TextIOWrapperR8R‚terrorstplatformR†tline_bufferingtdetach(R1toption_orderR=RAR8RDtnewlineRF((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR@!s$!N("t__name__t
__module__t__doc__R†RŠRRR¤R°R²R¹R˜RÂRÏR½RÃR³RRRRóRRRRRORRR R!R%R4RR@(((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyRás>B	
0	+						"			
															(	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/tmp/pip-build-NDUwcL/setuptools/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•Rötstandardt	availableRõRtRxR	RtremoveRBR(
R1RöRORPRõRRQRBR¬ter((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR†s$
				+(
		cCs|jo|jS(s+Should this feature be included by default?(RPRO(R1((s3/tmp/pip-build-NDUwcL/setuptools/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(RPRRöRRBRR(R1RGRÎ((s3/tmp/pip-build-NDUwcL/setuptools/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(R RBRQR(R1RGR((s3/tmp/pip-build-NDUwcL/setuptools/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(RQRORRö(R1RGR((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyRôËs
(((RJRKRLtstaticmethodR•RêR¾RR÷RRRô(((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyR”Es7				(;t__all__R}R:RRŸt
distutils.logRQtdistutils.coret
distutils.cmdtdistutils.distRZtcollectionsRtdistutils.errorsRRRtdistutils.utilRtsetuptools.externRtsetuptools.extern.six.movesRtpkg_resources.externRtsetuptools.dependsR	t
setuptoolsR
tsetuptools.monkeyRtsetuptools.configRR?t
py36compatR
t
__import__RR6R>R6RYRRKRMRXR^R\RjRlRpRsRvR|R€tcoreRRœR”(((s3/tmp/pip-build-NDUwcL/setuptools/setuptools/dist.pyt<module>sX	

		+			
											ÿÿf