MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/proc/2/root/proc/2/task/2/root/usr/lib/python2.4/site-packages/setuptools/dist.pyo
m
k8Hc@skdgZdklZdklZdklZdkl	Z	dk
lZdkl
Z
lZdklZdkZdkZdkZdkZdkZdkZd	ZeeZeefZd
ZdZdZd
ZdZdZdZ dZ!dZ"defdYZx)ei#ei$ei%fD]Z&ee&_qAWdfdYZ'dS(tDistribution(sDistribution(sRequire(sinstall(ssdist(sinstall_lib(sDistutilsOptionErrorsDistutilsPlatformError(sDistutilsSetupErrorNcCsRx$|iido|i\}qW|iidptd|n|S(sProtect 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 %rN(tclst
__module__t
startswitht	__bases__tAssertionError(R((t3/usr/lib/python2.4/site-packages/setuptools/dist.pyt_get_unpatched
scCsVytiid|}Wn5ttttfj
ot	d||fnXdS(Nsx=s4%r must be importable 'module:attrs' string (got %r)(t
pkg_resourcest
EntryPointtparsetvaluetept	TypeErrort
ValueErrortAttributeErrorRtDistutilsSetupErrortattr(tdistRR
R((Rtcheck_importables
cCs@yWn5ttttfj
otd||fnXdS(s*Verify that value is a string list or Nones%%r must be a list of strings (got %r)N(RRRRRRR
(RRR
((Rtassert_string_list*s
cCsMt|||x6|D].}|i|ptdd|qqWdS(s(Verify that namespace packages are valids1Distribution contains no modules or packages for snamespace package %rN(RRRR
tnspthas_contents_forR(RRR
R((Rt	check_nsp3scCscy4x-|iD]\}}tti|qWWn(ttt	fj
ot
dnXdS(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(R
titemstktvtlistR
tparse_requirementsRRRR(RRR
RR((Rtcheck_extras>s
cCs1t||jotd||fndS(s)Verify that value is True, False, 0, or 1s#%r must be a boolean value (got %r)N(tboolR
RR(RRR
((Rtassert_boolJscCsJytti|Wn,ttfj
otd|fnXdS(s9Verify that install_requires is a valid requirements lists^%r must be a string or list of strings containing valid project/version requirement specifiersN(RR
RR
RRRR(RRR
((Rtcheck_requirementsSs
cCs<ytii|Wn!tj
o}t|nXdS(s)Verify that entry_points map is parseableN(R
Rt	parse_mapR
RteR(RRR
R$((Rtcheck_entry_points]s
cCs$t|tptdndS(Nstest_suite must be a string(t
isinstanceR
t
basestringR(RRR
((Rtcheck_test_suiteescCst|to_x\|iD]F\}}t|tpPnyt|Wqtj
oPqXqWdSnt	|ddS(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
tdictRRRtstrtiterRRR(RRR
RR((Rtcheck_package_datajs

cBstZdZeZdZedZdZdZdZ	dZ
dZdZd	Z
d
ZdZdZd
ZdZdZdZdZdZdZdZdZdZdZdZRS(sxDistribution 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' -- 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|pd|jp
d|jodSntit|di}tiii|}|dj	o:|ido)tit|d|_
||_ndS(NtnametversionsPKG-INFO(tattrsR
t	safe_nameR*tlowertkeytworking_settby_keytgetRtNonethas_metadatatsafe_versiont_versiontselft
_patched_dist(R:R/RR2((Rtpatch_missing_pkg_infos"cCsEt|d}|p
h|_ng|_h|_g|_|i||dj	o,|i
dg|_t|d|in|o'd|jo|i
|i
dnxAtidD]0}t||ipt||idqqWti||t|iitttfot|ii|i_ndS(Ntpackage_datatdependency_linkstsetup_requiressdistutils.setup_keywords(thasattrR:thave_package_dataR=trequire_featurestfeaturest
dist_filesR<R/R6tpopR>Rtfetch_build_eggsR
titer_entry_pointsRR-tsetattrt
_Distributiont__init__R&tmetadataR.tinttlongtfloatR*(R:R/RAR((RRJs&
			

cCs+ti|}|io|in|S(s3Process features after parsing command line optionsN(RItparse_command_lineR:tresultRCt_finalize_features(R:RP((RROs

cCsd|iddS(s;Convert feature name to corresponding option attribute nametwith_t-t_N(R-treplace(R:R-((Rt_feature_attrnamescCsMdkl}l}x3|i||d|iD]}|i|q2WdS(sResolve pre-setup requirements(sworking_setsparse_requirementst	installerN(	R
R3RtresolvetrequiresR:tfetch_build_eggRtadd(R:RYRRR3((RRFs
cCsti||io|inxitidD]X}t||i	d}|dj	o0|id|i
|i||i	|q5q5WdS(Nsdistutils.setup_keywordsRW(RItfinalize_optionsR:RCt_set_global_opts_from_featuresR
RGRtgetattrR-R6R
trequireRZtload(R:R
R((RR\s


c	CsRy
|i}Wn5tj
o)dkl}|ihddg<}|i|i	d}d}x,|iD]}||jo||=qrqrW|ioG|i}d|jo|dd	i|}nd
|f|d<n||ddgd
tidtdtdddtdtdtdt	}|i||_nX|i|S(s Fetch an egg needed for building(seasy_installtscript_argsteasy_installt
find_linkst	site_dirst	index_urltoptimizetallow_hostsitsetuptargstxtinstall_dirtexclude_scriptstalways_copytbuild_directoryteditabletupgradet
multi_versiont	no_reportN(RcRdReRfRdRg(R:t_egg_fetchertcmdRtsetuptools.command.easy_installRbt	__class__Rtparse_config_filestget_option_dicttoptstkeeptkeysR2R>tlinkstsplittostcurdirtTruetFalseR6tensure_finalizedtreq(	R:RRR|RtRzRbR2Ry((RRZs0








cCsg}|ii}x|iiD]\}}|i	|d|i||io|i
}d}d}|ip||}}n|id|dd||f|id|dd||fd||d|<q%q%W||i|_|_||_|_dS(s;Add --with-X/--without-X options based on optional featuress
 (default)tswith-sinclude swithout-sexclude N(tgoR:tnegative_opttcopytnoRCRR-tfeaturet_set_featureR6tvalidatetoptionaltdescriptiontdescrtincdeftexcdeftinclude_by_defaulttappendtglobal_optionstfeature_optionstfeature_negopt(R:R-RRRRRR((RR] s$

	
""cCsxn|iiD]]\}}|i|}|p|djo.|io!|i	||i
|dqqWxN|iiD]=\}}|i|p!|i||i
|dqqWdS(s9Add/remove features and resolve dependencies between themiiN(R:RCRR-Rtfeature_is_includedtenabledR6Rt
include_inRtexclude_from(R:RR-R((RRQIs!

cCs~||ijo|i|SnxXtid|D]4}|id|i|i|i|<}|Sq2Wt	i
||SdS(s(Pluggable version of get_command_class()sdistutils.commandsRWN(tcommandR:tcmdclassR
RGRR_RZR`RItget_command_class(R:RRR((RR[scCs]xMtidD]<}|i|ijo#|it}||i|i<qqWti	|S(Nsdistutils.commands(
R
RGRR-R:RR`RRItprint_commands(R:RR((RRgscCst||i||dS(sSet feature's inclusion statusN(RHR:RVR-tstatus(R:R-R((RRrscCst||i|S(sAReturn 1 if feature is included, 0 if excluded, 'None' if unknownN(R^R:RVR-(R:R-((RRvscCsb|i|djo$|i|i}t|dn|i|i||i|ddS(s)Request inclusion of feature named 'name'is2 is required, but was excluded or is not availableiN(	R:RR-RCRRtDistutilsOptionErrorRR(R:R-R((Rtinclude_featurezscKs\xU|iD]G\}}t|d|d}|o||q
|i||q
WdS(sAdd 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/RRRR^R:R6tincludet
_include_misc(R:R/RRR((RRs
cCs|d}|ioMg}|iD]/}||jo|i|o||q"q"~|_n|ioMg}|iD]/}||jo|i|o||qyqy~|_n|ioSg}|iD]5}|i	|jo|i	i|o||qq~|_ndS(s9Remove packages, modules, and extensions in named packaget.N(
tpackagetpfxR:tpackagest_[1]tpRt
py_modulestext_modulesR-(R:RRRR((Rtexclude_packages

M
M
cCsJ|d}x9|iD]+}||jp|i|otSqqWdS(s<Return true if 'exclude_package(package)' would do somethingRN(RRR:titer_distribution_namesRRR(R:RRR((RRs

cCst|tptd||fnyt||}Wn#tj
otd|nX|dj	o%t|tot|dnH|o@t
||g}|D]}||jo||qq~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&R
tsequenceRR-R^R:toldRR6RHRtitem(R:R-R
RRR((Rt
_exclude_miscscCst|tptd||fnyt||}Wn#tj
otd|nX|djot
|||net|tpt|dnAt
|||g}|D]}||jo||qq~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-R^R:RRR6RHRR(R:R-R
RRR((RRs
cKs\xU|iD]G\}}t|d|d}|o||q
|i||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/RRRR^R:R6texcludeR(R:R/RRR((RRs
cCs;t|tptd|fnt|i|dS(Ns.packages: setting must be a list or tuple (%r)(R&RRRtmapR:R(R:R((Rt_exclude_packagessc
Cs|ii|_|ii|_|d}|id}	xR||	joD|	|\}}|	|=dk
}|i|t|d*|d}q:Wt
i|||}|i|}t|ddo2d|f|i|d<|dj	ogSqn|S(Nitaliasesitcommand_consumes_argumentsscommand lineRi(R:RvRRRiRRxRtsrctaliastshlexR}RRIt_parse_command_optstparsertnargsRt	cmd_classR^R6(
R:RRiRRRRRRR((RRs$

	
cCs/h}x"|iiD]\}}
x|
iD]\}\}}|djoq/n|i	dd}|djo|i
|}	|ii
}|it|	dhx_|iD]*\}}||jo|}d}PqqWtdn|djo
d}n||i|h|<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 lineRTRSiRsShouldn't be able to get hereiN(tdR:tcommand_optionsRRtRytoptRtvalRUtget_command_objtcmdobjRRtneg_opttupdateR^tnegtposR6Rt
setdefault(R:RRRRRRtRRRRy((Rtget_cmdline_options?s0




	

ccsx|ipfD]
}|VqWx|ipfD]
}|Vq0Wxc|ipfD]Q}t|to|\}}n
|i	}|ido|d }n|VqOWdS(s@Yield all packages, modules, and extension names in distributiontmoduleiN(R:RtpkgRRRtextR&ttupleR-t	buildinfotendswith(R:R-RRRR((RRhs	(t__name__Rt__doc__R6R;R<RJRORVRFR\RZR]RQRRRRRRRRRRRRRRR(((RR|s4A	
						)														)	)tFeaturecBsJtZdZeeeffdZdZdZdZdZ	RS(sA 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'.
    cKs$||_||_||_||_t|ttfo
|f}ng}	|D]!}t|to|	|qRqR~	|_g}	|D]!}t|tp|	|qq~	}
|
o|
|d<nt|to
|f}n||_
||_|o |o|otdndS(NRBsgFeature %s: must define 'require_features', 'remove', or at least one of 'packages', 'py_modules', etc.(RR:tstandardt	availableRR&RBR*tRequireRtrtertextrastremoveR(R:RRRRRBRRRRR((RRJs 				
85
		cCs|io|iS(s+Should this feature be included by default?N(R:RR(R:((RRscCsV|ipt|idn|i|ix|iD]}|i	|q;WdS(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.

        s2 is required,but is not available on this platformN(
R:RtDistutilsPlatformErrorRRRRRBtfR(R:RR((RRs

cCsC|i|i|io%x"|iD]}|i|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(RRR:RRRR(R:RR((RRs

cCsHxA|iD]6}|i|p td|i||fq
q
WdS(sVerify 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(R:RRRRRR(R:RR((RRs


(
RRRRRRJRRRR(((RRs1			((t__all__tdistutils.coreRRItsetuptools.dependsRtsetuptools.command.installtinstalltsetuptools.command.sdisttsdisttsetuptools.command.install_libtinstall_libtdistutils.errorsRRRRR
Rtdistutils.distt
distutils.cmdR~R	RRRRRRRR!R"R%R(R,RtcoreRtRR(RRRRRRRRR!RRR(RR"RRR,RRR	RRIR
RRR%R~((Rt?s8	





-