Your IP : 18.227.134.165


Current Path : /opt/alt/python33/lib/python3.3/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/setuptools/__pycache__/dist.cpython-33.pyc

�
�Re$c@s�dgZddlZddlZddlZddlZddlZddlZddlZddlm	Z
ddlmZm
Z
mZddlmZddlmZmZddlZdd�Zee
�Z
eefZd	d
�Zdd�Zd
d�Zdd�Zdd�Zdd�Zdd�Zdd�Z dd�Z!dd�Z"Gdd�de
�Z	x)ej#ej$ej%fD]Z&e	e&_	q�WGdd�d�Z'dS( uDistributioniN(uDistribution(uDistutilsOptionErroruDistutilsPlatformErroruDistutilsSetupError(uRequire(u
numeric_typesu
basestringcCsNx"|jjd�r$|j\}qW|jjd�sJtd|��n|S(u�Protect against re-patching the distutils if reloaded

    Also ensures that no other distutils extension monkeypatched the distutils
    first.
    u
setuptoolsu	distutilsu(distutils has already been patched by %r(u
__module__u
startswithu	__bases__uAssertionError(ucls((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu_get_unpatchedsu_get_unpatchedcCsey*tjjd|�}|js)t�Wn4ttttfk
r`td||f��YnXdS(Nux=u4%r must be importable 'module:attrs' string (got %r)(	u
pkg_resourcesu
EntryPointuparseuextrasuAssertionErroru	TypeErroru
ValueErroruAttributeErroruDistutilsSetupError(udistuattruvalueuep((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyucheck_importable$sucheck_importablecCsZydj|�|kst�Wn4ttttfk
rUtd||f��YnXdS(u*Verify that value is a string list or Noneuu%%r must be a list of strings (got %r)N(ujoinuAssertionErroru	TypeErroru
ValueErroruAttributeErroruDistutilsSetupError(udistuattruvalue((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuassert_string_list/s
uassert_string_listcCs�t|||�x�|D]�}|j|�sCtdd|��nd|krdj|jd�dd��}||kr�tjjd||�q�qqWdS(u(Verify that namespace packages are validu1Distribution contains no modules or packages for unamespace package %ru.Niu^WARNING: %r is declared as a package namespace, but %r is not: please correct this in setup.pyi����(uassert_string_listuhas_contents_foruDistutilsSetupErrorujoinusplitu	distutilsuloguwarn(udistuattruvalueunspuparent((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu	check_nsp7s
"	u	check_nspc
Cs�y}xv|j�D]h\}}d|kre|jdd�\}}tj|�retd|��qenttj|��qWWn'ttt	fk
r�td��YnXdS(u+Verify that extras_require mapping is validu:iuInvalid environment marker: u�'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.N(
uitemsusplitu
pkg_resourcesuinvalid_markeruDistutilsSetupErrorulistuparse_requirementsu	TypeErroru
ValueErroruAttributeError(udistuattruvalueukuvum((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyucheck_extrasHsucheck_extrascCs/t|�|kr+td||f��ndS(u)Verify that value is True, False, 0, or 1u#%r must be a boolean value (got %r)N(ubooluDistutilsSetupError(udistuattruvalue((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuassert_boolXsuassert_boolcCsIyttj|��Wn+ttfk
rDtd|f��YnXdS(u9Verify that install_requires is a valid requirements listu^%r must be a string or list of strings containing valid project/version requirement specifiersN(ulistu
pkg_resourcesuparse_requirementsu	TypeErroru
ValueErroruDistutilsSetupError(udistuattruvalue((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyucheck_requirements^sucheck_requirementscCsIytjj|�Wn.tk
rDtj�d}t|��YnXdS(u)Verify that entry_points map is parseableiN(u
pkg_resourcesu
EntryPointu	parse_mapu
ValueErrorusysuexc_infouDistutilsSetupError(udistuattruvalueue((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyucheck_entry_pointsgs

ucheck_entry_pointscCs"t|t�std��ndS(Nutest_suite must be a string(u
isinstanceu
basestringuDistutilsSetupError(udistuattruvalue((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyucheck_test_suiteosucheck_test_suitecCs~t|t�rjxX|j�D]C\}}t|t�s;Pnyt|�Wqtk
r^PYqXqWdSnt|d��dS(u@Verify that value is a dictionary of package names to glob listsNuI must be a dictionary mapping package names to lists of wildcard patterns(u
isinstanceudictuitemsustruiteru	TypeErroruDistutilsSetupError(udistuattruvalueukuv((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyucheck_package_datass

ucheck_package_datacCs=x6|D].}tjd|�stjjd|�qqWdS(Nu\w+(\.\w+)*uZWARNING: %r not a valid package name; please use only.-separated package names in setup.py(ureumatchu	distutilsuloguwarn(udistuattruvalueupkgname((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyucheck_packages�s

	ucheck_packagescBsO|EeZdZdZd4Zdd�Zd4dd�Zdd�Zdd	�Z	d
d�Z
dd
�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4S(5uDistributionu�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(NunameuversionuPKG-INFO(u
pkg_resourcesu	safe_nameustruloweruworking_setuby_keyugetuNoneuhas_metadatausafe_versionu_versionu
_patched_dist(uselfuattrsukeyudist((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyupatch_missing_pkg_info�su#Distribution.patch_missing_pkg_infoc	Cs}t|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
|jd��nx?tjd�D].}t||j�st||jd�qqWtj||�t|jjt�ryt|jj�|j_ndS(Nupackage_dataufeaturesurequire_featuresusrc_rootudependency_linksusetup_requiresudistutils.setup_keywords(uhasattrupackage_datauFeatureuwarn_deprecatedurequire_featuresufeaturesu
dist_filesupopuNoneusrc_rootupatch_missing_pkg_infoudependency_linksuassert_string_listufetch_build_eggsu
pkg_resourcesuiter_entry_pointsunameusetattru
_Distributionu__init__u
isinstanceumetadatauversionu
numeric_typesustr(uselfuattrsuhave_package_datau_attrs_dictuep((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu__init__�s,
			
uDistribution.__init__cCs)tj|�}|jr%|j�n|S(u3Process features after parsing command line options(u
_Distributionuparse_command_lineufeaturesu_finalize_features(uselfuresult((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuparse_command_line�s	
uDistribution.parse_command_linecCsd|jdd�S(u;Convert feature name to corresponding option attribute nameuwith_u-u_(ureplace(uselfuname((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu_feature_attrname�suDistribution._feature_attrnamecCsPddlm}m}x3|j||�d|j�D]}|j|�q5WdS(uResolve pre-setup requirementsi(uworking_setuparse_requirementsu	installerN(u
pkg_resourcesuworking_setuparse_requirementsuresolveufetch_build_egguadd(uselfurequiresuworking_setuparse_requirementsudist((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyufetch_build_eggss	uDistribution.fetch_build_eggscCs�tj|�|jr#|j�nxgtjd�D]V}t||jd�}|dk	r3|j	d|j
�|j�||j|�q3q3Wt|dd�r�dd�|jD�|_n	g|_dS(Nudistutils.setup_keywordsu	installeruconvert_2to3_doctestscSs"g|]}tjj|��qS((uosupathuabspath(u.0up((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
<listcomp>s	u1Distribution.finalize_options.<locals>.<listcomp>(
u
_Distributionufinalize_optionsufeaturesu_set_global_opts_from_featuresu
pkg_resourcesuiter_entry_pointsugetattrunameuNoneurequireufetch_build_egguloaduconvert_2to3_doctests(uselfuepuvalue((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyufinalize_optionss
	
 uDistribution.finalize_optionsc	Csgy|j}g|j_Wn>tk
rYddlm}|jidgd6�}|j�|jd�}d}x*|j	�D]}||kr~||=q~q~W|j
r�|j
d
d
�}d|kr�|ddj�|}nd|f|d<n||d
dgdtj
dddddd
dddddddddd�
}|j�||_YnX|j|�S(u Fetch an egg needed for buildingi(ueasy_installueasy_installuscript_argsu
find_linksu	site_dirsu	index_urluoptimizeuallow_hostsNiusetupuargsuxuinstall_diruexclude_scriptsualways_copyubuild_directoryueditableuupgradeu
multi_versionu	no_reportuuser(u
find_linksu	site_dirsu	index_urluoptimizeu	site_dirsuallow_hostsTF(u_egg_fetcheru
package_indexuto_scanuAttributeErrorusetuptools.command.easy_installueasy_installu	__class__uparse_config_filesuget_option_dictukeysudependency_linksusplituosucurdiruTrueuFalseuNoneuensure_finalized(	uselfurequcmdueasy_installudistuoptsukeepukeyulinks((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyufetch_build_eggs2	

	
uDistribution.fetch_build_eggcCsg}|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(u;Add --with-X/--without-X options based on optional featuresu
 (default)uuwith-uinclude uwithout-uexclude N(unegative_optucopyufeaturesuitemsu_set_featureuNoneuvalidateuoptionaludescriptionuinclude_by_defaultuappenduglobal_optionsufeature_optionsufeature_negopt(uselfugounounameufeatureudescruincdefuexcdef((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu_set_global_opts_from_features;s 
		""u+Distribution._set_global_opts_from_featurescCs�xj|jj�D]Y\}}|j|�}|sI|dkr|j�r|j|�|j|d�qqWxL|jj�D];\}}|j|�s}|j|�|j|d�q}q}WdS(u9Add/remove features and resolve dependencies between themiiN(ufeaturesuitemsufeature_is_includeduNoneuinclude_by_defaultu
include_inu_set_featureuexclude_from(uselfunameufeatureuenabled((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu_finalize_featuresSs

uDistribution._finalize_featurescCsv||jkr|j|SxUtjd|�D]1}|jd|j�|j�|j|<}|SWtj||�SdS(u(Pluggable version of get_command_class()udistutils.commandsu	installerN(ucmdclassu
pkg_resourcesuiter_entry_pointsurequireufetch_build_egguloadu
_Distributionuget_command_class(uselfucommanduepucmdclass((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuget_command_classdsuDistribution.get_command_classcCs[xKtjd�D]:}|j|jkr|jd�}||j|j<qqWtj|�S(Nudistutils.commandsF(u
pkg_resourcesuiter_entry_pointsunameucmdclassuloaduFalseu
_Distributionuprint_commands(uselfuepucmdclass((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuprint_commandsps
uDistribution.print_commandscCst||j|�|�dS(uSet feature's inclusion statusN(usetattru_feature_attrname(uselfunameustatus((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu_set_featurewsuDistribution._set_featurecCst||j|��S(uAReturn 1 if feature is included, 0 if excluded, 'None' if unknown(ugetattru_feature_attrname(uselfuname((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyufeature_is_included{su Distribution.feature_is_includedcCs`|j|�dkr8|j|j}t|d��n|j|j|�|j|d�dS(u)Request inclusion of feature named 'name'iu2 is required, but was excluded or is not availableiN(ufeature_is_includedufeaturesudescriptionuDistutilsOptionErroru
include_inu_set_feature(uselfunameudescr((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuinclude_featuresuDistribution.include_featurecKsZxS|j�D]E\}}t|d|d�}|rB||�q
|j||�q
WdS(u�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.
        u	_include_N(uitemsugetattruNoneu
_include_misc(uselfuattrsukuvuinclude((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuinclude�s

uDistribution.includecs��d�|jr8��fdd�|jD�|_n|jrf��fdd�|jD�|_n|jr���fdd�|jD�|_ndS(u9Remove packages, modules, and extensions in named packageu.cs2g|](}|�kr|j��r|�qS((u
startswith(u.0up(upackageupfx(u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
<listcomp>�s	u0Distribution.exclude_package.<locals>.<listcomp>cs2g|](}|�kr|j��r|�qS((u
startswith(u.0up(upackageupfx(u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
<listcomp>�s	cs8g|].}|j�kr|jj��r|�qS((unameu
startswith(u.0up(upackageupfx(u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
<listcomp>�s	N(upackagesu
py_modulesuext_modules(uselfupackage((upackageupfxu(/tmp/pip-k8wh6o-build/setuptools/dist.pyuexclude_package�s
	%	%	uDistribution.exclude_packagecCsD|d}x3|j�D]%}||ks8|j|�rdSqWdS(u<Return true if 'exclude_package(package)' would do somethingu.NT(uiter_distribution_namesu
startswithuTrue(uselfupackageupfxup((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuhas_contents_for�s
uDistribution.has_contents_forcs�t�t�s(td|�f��nyt||�}Wn"tk
r_td|��YnX|dk	r�t|t�r�t|d��n,|r�t||�fdd�|D��ndS(uAHandle 'exclude()' for list/tuple attrs without a special handleru(%s: setting must be a list or tuple (%r)u %s: No such distribution settingu4: this setting cannot be changed via include/excludecs"g|]}|�kr|�qS(((u.0uitem(uvalue(u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
<listcomp>�s	u.Distribution._exclude_misc.<locals>.<listcomp>N(u
isinstanceusequenceuDistutilsSetupErrorugetattruAttributeErroruNoneusetattr(uselfunameuvalueuold((uvalueu(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
_exclude_misc�s
uDistribution._exclude_misccs�t|t�s(td||f��nyt||��Wn"tk
r_td|��YnX�dkrt|||�nIt�t�s�t|d��n't||��fdd�|D��dS(uAHandle 'include()' for list/tuple attrs without a special handleru%s: setting must be a list (%r)u %s: No such distribution settingu4: this setting cannot be changed via include/excludecs"g|]}|�kr|�qS(((u.0uitem(uold(u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
<listcomp>�s	u.Distribution._include_misc.<locals>.<listcomp>N(u
isinstanceusequenceuDistutilsSetupErrorugetattruAttributeErroruNoneusetattr(uselfunameuvalue((uoldu(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
_include_misc�s
uDistribution._include_misccKsZxS|j�D]E\}}t|d|d�}|rB||�q
|j||�q
WdS(uRemove 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.
        u	_exclude_N(uitemsugetattruNoneu
_exclude_misc(uselfuattrsukuvuexclude((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuexclude�s

uDistribution.excludecCs?t|t�s%td|f��ntt|j|��dS(Nu.packages: setting must be a list or tuple (%r)(u
isinstanceusequenceuDistutilsSetupErrorulistumapuexclude_package(uselfupackages((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu_exclude_packages�suDistribution._exclude_packagesc
Cs�|jj|_|jj|_|d}|jd�}xY||kr�||\}}||=ddl}|j|d�|dd�<|d}q:Wtj|||�}|j	|�}	t
|	dd�r�d|f|j|�d<|dk	r�gSn|S(Niualiasesiucommand_consumes_argumentsucommand lineuargsT(u	__class__uglobal_optionsunegative_optuget_option_dictushlexusplituTrueu
_Distributionu_parse_command_optsuget_command_classugetattruNone(
uselfuparseruargsucommandualiasesusrcualiasushlexunargsu	cmd_class((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu_parse_command_optss"
u Distribution._parse_command_optscCs'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(	uhReturn 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.
        ucommand lineu_u-iunegative_optuShouldn't be able to get hereiN(ucommand_optionsuitemsureplaceuget_command_objunegative_optucopyuupdateugetattruNoneuAssertionErroru
setdefault(uselfuducmduoptsuoptusrcuvalucmdobjuneg_optunegupos((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuget_cmdline_options s(
	u Distribution.get_cmdline_optionsccs�x|jpfD]}|VqWx|jp.fD]}|Vq/Wxe|jpMfD]T}t|t�rr|\}}n	|j}|jd�r�|dd�}n|VqNWdS(u@Yield all packages, modules, and extension names in distributionumoduleNii����(upackagesu
py_modulesuext_modulesu
isinstanceutupleunameuendswith(uselfupkgumoduleuextunameu	buildinfo((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuiter_distribution_namesHs			u$Distribution.iter_distribution_namescCs6ddl}|jdks$|jr4tj||�Sddl}t|j|j�setj||�S|jj	j
�d	kr�tj||�S|jj	}|jj}|jdkr�dp�d}|jj}|j|jj�d|||�|_ztj||�SWd|j|jj�||||�|_XdS(
u�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.
        iNiuutf-8uutf8uwin32u
(i(uutf-8uutf8(usysuversion_infou
help_commandsu
_Distributionuhandle_display_optionsuiou
isinstanceustdoutu
TextIOWrapperuencodinguloweruerrorsuplatformuNoneuline_bufferingudetach(uselfuoption_orderusysuiouencodinguerrorsunewlineuline_buffering((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuhandle_display_optionsZs$!u#Distribution.handle_display_optionsN(u__name__u
__module__u__qualname__u__doc__uNoneu
_patched_distupatch_missing_pkg_infou__init__uparse_command_lineu_feature_attrnameufetch_build_eggsufinalize_optionsufetch_build_eggu_set_global_opts_from_featuresu_finalize_featuresuget_command_classuprint_commandsu_set_featureufeature_is_includeduinclude_featureuincludeuexclude_packageuhas_contents_foru
_exclude_miscu
_include_miscuexcludeu_exclude_packagesu_parse_command_optsuget_cmdline_optionsuiter_distribution_namesuhandle_display_options(u
__locals__((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuDistribution�s6B
 	(cBsw|EeZdZdZedd��Zdddffdd�Zdd�Z	dd	�Z
d
d�Zdd
�ZdS(uFeatureu�
    **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(NumFeatures are deprecated and will be removed in a future version. See http://bitbucket.org/pypa/setuptools/65.u
stackleveli(uwarningsuwarnuDeprecationWarning(((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuwarn_deprecated�suFeature.warn_deprecatedc	Ks�|j�||_||_||_||_t|ttf�rO|f}ndd�|D�|_dd�|D�}|r�||d<nt|t�r�|f}n||_	||_
|r�|r�|r�td��ndS(NcSs%g|]}t|t�r|�qS((u
isinstanceustr(u.0ur((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
<listcomp>�s	u$Feature.__init__.<locals>.<listcomp>cSs%g|]}t|t�s|�qS((u
isinstanceustr(u.0ur((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
<listcomp>�s	urequire_featuresugFeature %s: must define 'require_features', 'remove', or at least one of 'packages', 'py_modules', etc.(uwarn_deprecatedudescriptionustandardu	availableuoptionalu
isinstanceustruRequireurequire_featuresuremoveuextrasuDistutilsSetupError(	uselfudescriptionustandardu	availableuoptionalurequire_featuresuremoveuextrasuer((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu__init__�s$
				
		uFeature.__init__cCs|jo|jS(u+Should this feature be included by default?(u	availableustandard(uself((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuinclude_by_default�suFeature.include_by_defaultcCsT|jst|jd��n|j|j�x|jD]}|j|�q9WdS(uEnsure 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.

        u2 is required,but is not available on this platformN(u	availableuDistutilsPlatformErrorudescriptionuincludeuextrasurequire_featuresuinclude_feature(uselfudistuf((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu
include_in�s
	uFeature.include_incCsA|j|j�|jr=x!|jD]}|j|�q#WndS(u2Ensure 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(uexcludeuextrasuremoveuexclude_package(uselfudistuitem((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuexclude_from�s
	uFeature.exclude_fromcCsFx?|jD]4}|j|�s
td|j||f��q
q
WdS(u�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.
        ug%s wants to be able to remove %s, but the distribution doesn't contain any packages or modules under %sN(uremoveuhas_contents_foruDistutilsSetupErrorudescription(uselfudistuitem((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuvalidate
s
uFeature.validateNFT(
u__name__u
__module__u__qualname__u__doc__ustaticmethoduwarn_deprecateduFalseuTrueu__init__uinclude_by_defaultu
include_inuexclude_fromuvalidate(u
__locals__((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyuFeature�s7	uFeature((u__all__ureuosusysuwarningsu
distutils.logu	distutilsudistutils.coreu
distutils.cmduDistributionu
_Distributionudistutils.errorsuDistutilsOptionErroruDistutilsPlatformErroruDistutilsSetupErrorusetuptools.dependsuRequireusetuptools.compatu
numeric_typesu
basestringu
pkg_resourcesu_get_unpatchedutupleulistusequenceucheck_importableuassert_string_listu	check_nspucheck_extrasuassert_boolucheck_requirementsucheck_entry_pointsucheck_test_suiteucheck_package_dataucheck_packagesudistucoreucmdumoduleuFeature(((u(/tmp/pip-k8wh6o-build/setuptools/dist.pyu<module>s<			��


?>