ok

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/setuptools/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyc

�
0��`c@s�dgZddlZddlZddlZddlZddlZddlZddlZddl	Zddl
ZddlmZddl
mZmZmZddlmZddlmZddlmZddlmZdd	lmZddlZd
�Zee�Zd�Ze�eefZ d�Z!d
�Z"d�Z#d�Z$d�Z%d�Z&d�Z'd�Z(d�Z)d�Z*defd��YZx)ej+ej,ej-fD]Z.ee._q�Wdfd��YZ/dS(tDistributioni����N(R(tDistutilsOptionErrortDistutilsPlatformErrortDistutilsSetupError(tsix(tmap(t	packaging(tRequire(twindows_supportcCsNx"|jjd�r$|j\}qW|jjd�sJtd|��n|S(s�Protect against re-patching the distutils if reloaded

    Also ensures that no other distutils extension monkeypatched the distutils
    first.
    t
setuptoolst	distutilss(distutils has already been patched by %r(t
__module__t
startswitht	__bases__tAssertionError(tcls((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyt_get_unpatchedscCsIdtjd kodkn}|s-dSd�}|tjj_dS(s�
    Workaround issue #197 - Python 3 prior to 3.2.2 uses an environment-local
    encoding to save the pkg_info. Monkey-patch its write_pkg_info method to
    correct this undesirable behavior.
    iiNcSs>ttjj|d�ddd��}|j|�WdQXdS(s7Write the PKG-INFO file into the release tree.
        sPKG-INFOtwtencodingsUTF-8N(topentostpathtjointwrite_pkg_file(tselftbase_dirtpkg_info((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytwrite_pkg_info4s(i(iii(tsystversion_infoR
tdisttDistributionMetadataR(tenvironment_localR((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyt+_patch_distribution_metadata_write_pkg_info)s
#	cCsdy*tjjd|�}|js)t�Wn3ttttfk
r_td||f��nXdS(Nsx=s4%r must be importable 'module:attrs' string (got %r)(	t
pkg_resourcest
EntryPointtparsetextrasRt	TypeErrort
ValueErrortAttributeErrorR(Rtattrtvaluetep((s@/opt/alt/python27/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(RRR&R'R(R(RR)R*((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytassert_string_listKs
cCs�t|||�x�|D]|}|j|�sCtdd|��nd|krdj|jd�d �}||kr�tjjd||�q�qqWdS(s(Verify that namespace packages are valids1Distribution contains no modules or packages for snamespace package %rt.i����s^WARNING: %r is declared as a package namespace, but %r is not: please correct this in setup.pyN(R.thas_contents_forRRtsplitR
tlogtwarn(RR)R*tnsptparent((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyt	check_nspSs
	cCs�y}xv|j�D]h\}}d|kre|jdd�\}}tj|�retd|��qenttj|��qWWn&ttt	fk
r�td��nXdS(s+Verify that extras_require mapping is validt:isInvalid environment marker: s�'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.N(
titemsR1R"tinvalid_markerRtlisttparse_requirementsR&R'R((RR)R*tktvtm((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytcheck_extrasdscCs=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})R)R*N(tboolRtformat(RR)R*ttmpl((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytassert_booltscCs[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}R)terrorN(R:R"R;R&R'RRA(RR)R*RDRB((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytcheck_requirements{s
cCs:ytjj|�Wntk
r5}t|��nXdS(s)Verify that entry_points map is parseableN(R"R#t	parse_mapR'R(RR)R*te((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytcheck_entry_points�scCs%t|tj�s!td��ndS(Nstest_suite must be a string(t
isinstanceRtstring_typesR(RR)R*((s@/opt/alt/python27/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(RItdictR8tstrtiterR&R(RR)R*R<R=((s@/opt/alt/python27/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(tretmatchR
R2R3(RR)R*tpkgname((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytcheck_packages�s

	cBs
eZdZdZd�Zdd�Zd�Zd�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�ZRS(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(NtnametversionsPKG-INFO(R"t	safe_nameRMtlowertworking_settby_keytgettNonethas_metadatatsafe_versiont_versiont
_patched_dist(RtattrstkeyR((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytpatch_missing_pkg_info�scCst|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�qXndS(
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.(!thasattrRctFeaturetwarn_deprecatedReRdt
dist_filestpopR[RfRbRgR.tfetch_build_eggsR"titer_entry_pointstvarst
setdefaultRTt
_Distributiont__init__RItmetadataRUtnumberstNumberRMRtVersiontwarningsR3tInvalidVersionR&(RR`thave_package_datat_attrs_dictR+tvertnormalized_version((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyRs�sF
			
	cCs)tj|�}|jr%|j�n|S(s3Process features after parsing command line options(Rrtparse_command_lineRdt_finalize_features(Rtresult((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR~)s	
cCsd|jdd�S(s;Convert feature name to corresponding option attribute nametwith_t-t_(treplace(RRT((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyt_feature_attrname0scCsUtjjtj|�d|jdt�}x$|D]}tjj|dt�q1WdS(sResolve pre-setup requirementst	installertreplace_conflictingR�N(R"RXtresolveR;tfetch_build_eggtTruetadd(Rtrequirestresolved_distsR((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyRn4s			
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(Rrtfinalize_optionsRdt_set_global_opts_from_featuresR"RotgetattrRTR[trequireR�tloadR�RRtabspath(RR+R*tp((s@/opt/alt/python27/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.txtRscThis 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.

(
RRRtcurdirtexiststmkdirRt	hide_fileRtwrite(Rt
egg_cache_dirtreadme_txt_filenametf((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytget_egg_cache_dirNs



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(R�R�R�R�R�R�N(t_egg_fetchert
package_indextto_scanR(tsetuptools.command.easy_installR�t	__class__tparse_config_filestget_option_dictR:RgR1R�R�tFalseR[tensure_finalized(
RtreqtcmdR�RtoptstkeepRatlinksR�((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR�]s4	

	


cCsg}|jj�}x�|jj�D]�\}}|j|d�|j|�|jr%|j}d}d}|j	�s�||}}n|j
d|dd||f�|j
d|dd||f�d||d|<q%q%W||j|_|_||_|_
dS(s;Add --with-X/--without-X options based on optional featuress
 (default)R-swith-sinclude swithout-sexclude N(tnegative_opttcopyRdR8t_set_featureR[tvalidatetoptionaltdescriptiontinclude_by_defaulttappendtglobal_optionstfeature_optionstfeature_negopt(RtgotnoRTtfeaturetdescrtincdeftexcdef((s@/opt/alt/python27/lib/python2.7/site-packages/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(RdR8tfeature_is_includedR[R�t
include_inR�texclude_from(RRTR�tenabled((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR�s

cCsv||jkr|j|SxUtjd|�D]1}|jd|j�|j�|j|<}|SWtj||�SdS(s(Pluggable version of get_command_class()sdistutils.commandsR�N(tcmdclassR"RoR�R�R�Rrtget_command_class(RtcommandR+R�((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR��scCsXxHtjd�D]7}|j|jkr|j�}||j|j<qqWtj|�S(Nsdistutils.commands(R"RoRTR�R�Rrtprint_commands(RR+R�((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR��s
cCsXxHtjd�D]7}|j|jkr|j�}||j|j<qqWtj|�S(Nsdistutils.commands(R"RoRTR�R�Rrtget_command_list(RR+R�((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR��s
cCst||j|�|�dS(sSet feature's inclusion statusN(tsetattrR�(RRTtstatus((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR��scCst||j|��S(sAReturn 1 if feature is included, 0 if excluded, 'None' if unknown(R�R�(RRT((s@/opt/alt/python27/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�RdR�RR�R�(RRTR�((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytinclude_feature�s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(R8R�R[t
_include_misc(RR`R<R=tinclude((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR��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 packageR/N(tpackagesRt
py_modulestext_modulesRT(RtpackagetpfxR�((s@/opt/alt/python27/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 somethingR/N(titer_distribution_namesRR�(RR�R�R�((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR0s
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(RItsequenceRR�R(R[R�(RRTR*toldtitem((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyt
_exclude_miscs
cCs�t|t�s(td||f��nyt||�}Wn!tk
r^td|��nX|dkr~t|||�nUt|t�s�t|d��n3t|||g|D]}||kr�|^q��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(RIR�RR�R(R[R�(RRTR*R�R�((s@/opt/alt/python27/lib/python2.7/site-packages/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(R8R�R[R�(RR`R<R=texclude((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR�4s

cCs?t|t�s%td|f��ntt|j|��dS(Ns.packages: setting must be a list or tuple (%r)(RIR�RR:RR�(RR�((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyt_exclude_packagesKsc
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�tshlexR1R�Rrt_parse_command_optsR�R�R[(
RtparserR�R�R�tsrctaliasR�tnargst	cmd_class((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR�Rs"
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(tcommand_optionsR8R�tget_command_objR�R�tupdateR�R[RRq(RtdR�R�toptR�tvaltcmdobjtneg_opttnegtpos((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pytget_cmdline_optionsls(
	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((((R�R�R�RIttupleRTtendswith(RtpkgRtextRTt	buildinfo((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR��s			
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(RRtPY2t
help_commandsRrthandle_display_optionstioRItstdoutt
TextIOWrapperRRWterrorstplatformR[tline_bufferingtdetach(Rtoption_orderRR
RRtnewlineR((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR�s$!N( t__name__Rt__doc__R[R_RbRsR~R�RnR�R�R�R�RR�R�R�R�R�R�R�R�R0R�R�R�R�R�RR�R(((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR�s:B	
-			
			!																		(	RjcBsYeZdZed��Zeeeddd�Zd�Zd�Z	d�Z
d�ZRS(	s�
    **deprecated** -- The `Feature` facility was never completely implemented
    or supported, `has reported issues
    <https://bitbucket.org/pypa/setuptools/issue/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'.
    cCstjdtdd�dS(NsmFeatures are deprecated and will be removed in a future version. See http://bitbucket.org/pypa/setuptools/65.t
stackleveli(RxR3tDeprecationWarning(((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyRksc
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(NResgFeature %s: must define 'require_features', 'remove', or at least one of 'packages', 'py_modules', etc.(RkR�tstandardt	availableR�RIRMRRetremoveR%R(
RR�RRR�ReRR%trter((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyRss$
				+(
		cCs|jo|jS(s+Should this feature be included by default?(RR(R((s@/opt/alt/python27/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(RRR�R�R%ReR�(RRR�((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR�1s
	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�R%RR�(RRR�((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR�Fs
	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(RR0RR�(RRR�((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyR�Vs
(((RRRtstaticmethodRkR�R�RsR�R�R�R�(((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyRj�s7				(0t__all__RPRRRxRut
distutils.logR
tdistutils.coret
distutils.cmdtdistutils.distRRrtdistutils.errorsRRRtsetuptools.externRtsetuptools.extern.six.movesRtpkg_resources.externRtsetuptools.dependsRR	RR"RR!RR:R�R,R.R6R?RCRERHRKRORSRtcoreR�RRj(((s@/opt/alt/python27/lib/python2.7/site-packages/setuptools/dist.pyt<module>sL														��$


Zerion Mini Shell 1.0