Files
Home-AssistantConfig/deps/setuptools/__pycache__/dist.cpython-34.pyc
T

286 lines
34 KiB
Plaintext
Raw Normal View History

2016-10-11 16:42:06 +00:00
î
ø¾ûWã@dgZddlZddlZddlZddlZddlZddlZddlZddl Zddl
m Z m Z m
Z
ddlmZddlmZddlmZddlmZddlmZdd lmZdd
lmZddlZd d Zd
dZddZe e!fZ"ddZ#ddZ$ddZ%ddZ&ddZ'ddZ(ddZ)dd Z*d!d"Z+d#d$Z,d%d&Z-eej.j/ƒZ0Gd'dde0ƒZ/Gd(d)d)ƒZ1dS)*Ú DistributionéN)ÚDistutilsOptionErrorÚDistutilsPlatformErrorÚDistutilsSetupError)Ú
rfc822_escape)Úsix)Úmap)Ú packaging)ÚRequire)Úwindows_support)Ú
get_unpatchedcCstjdtƒt|ƒS)NzDo not call this function)ÚwarningsÚwarnÚDeprecationWarningr )Úcls©rú5/tmp/pip-build-fo9udfsu/setuptools/setuptools/dist.pyÚ_get_unpatchedsrcCsd}|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)z5Write the PKG-INFO format data to a file object.
z1.0z1.1Úpython_requiresz1.2zMetadata-Version: %s
z Name: %s
z Version: %s
z Summary: %s
zHome-page: %s
z Author: %s
zAuthor-email: %s
z License: %s
zDownload-URL: %s
zDescription: %s
ú,z
Keywords: %s
ÚPlatformÚ
ClassifierÚRequiresÚProvidesÚ ObsoleteszRequires-Python: %s
N)ÚprovidesÚrequiresÚ obsoletesÚ classifiersÚ download_urlÚhasattrÚwriteÚget_nameÚ get_versionÚget_descriptionÚget_urlÚ get_contactÚget_contact_emailÚ get_licenserÚget_long_descriptionÚjoinÚ get_keywordsÚ _write_listÚ
get_platformsÚget_classifiersÚ get_requiresÚ get_providesÚ
get_obsoletesr)ÚselfÚfileÚversionÚ long_descÚkeywordsrrrÚwrite_pkg_files8   r7c Cs>ttjj|dƒdddƒ}|j|ƒWdQXdS)z3Write the PKG-INFO file into the release tree.
zPKG-INFOÚencodingzUTF-8N)ÚopenÚosÚpathr*r7)r2Úbase_dirÚpkg_inforrrÚwrite_pkg_infoJs r?cCsey*tjjd|ƒ}|j s)tWn4ttttfk
r`td||fƒYnXdS)Nzx=z4%r must be importable 'module:attrs' string (got %r)) Ú
pkg_resourcesÚ
EntryPointÚparseÚextrasÚAssertionErrorÚ TypeErrorÚ
ValueErrorÚAttributeErrorr)ÚdistÚattrÚvalueÚeprrrÚcheck_importableUsrLcCsZydj|ƒ|kstWn4ttttfk
rUtd||fƒYnXdS)z*Verify that value is a string list or NoneÚz%%r must be a list of strings (got %r)N)r*rDrErFrGr)rHrIrJrrrÚassert_string_list`s
rNcCt|||ƒ|D]}|j|ƒsCtdd|ƒnd|krdj|jdƒddƒ}||kr™tjjd||ƒq™qqWdS)z(Verify that namespace packages are validz1Distribution contains no modules or packages for znamespace package %rÚ.Néz^WARNING: %r is declared as a package namespace, but %r is not: please correct this in setup.pyéÿÿÿÿ)rNÚhas_contents_forrr*ÚsplitÚ distutilsÚlogr)rHrIrJÚnspÚparentrrrÚ check_nspjs
 "  rXc
Cy}xv|jƒD]h\}}d|kre|jddƒ\}}tj|ƒretd|ƒqenttj|ƒƒqWWn'ttt fk
tdƒYnXdS)z+Verify that extras_require mapping is validú:rPzInvalid environment marker: z'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.N)
ÚitemsrSr@Úinvalid_markerrÚlistÚparse_requirementsrErFrG)rHrIrJÚmrrrÚ check_extras|s racCs=t|ƒ|kr9d}t|jd|d|ƒƒndS)z)Verify that value is True, False, 0, or 1z0{attr!r} must be a boolean value (got {value!r})rIrJN)ÚboolrÚformat)rHrIrJÚtmplrrrÚ assert_boolsrecCsmyttj|ƒƒWnOttfk
rh}z)d}t|jd|d|ƒƒWYdd}~XnXdS)z9Verify that install_requires is a valid requirements listzm{attr!r} must be a string or list of strings containing valid project/version requirement specifiers; {error}rIÚerrorN)r\r@r]rErFrrc)rHrIrJrfrdrrrÚcheck_requirements”s
rgcCsjytjj|ƒWnOtjjk
re}z)d}t|jd|d|ƒƒWYdd}~XnXdS)z.Verify that value is a valid version specifierzY{attr!r} must be a string or list of strings containing valid version specifiers; {error}rIrfN)r Ú
specifiersÚ SpecifierSetÚInvalidSpecifierrrc)rHrIrJrfrdrrrÚcheck_specifier s
rkcCsLytjj|ƒWn1tk
rG}zt|ƒWYdd}~XnXdS)z)Verify that entry_points map is parseableN)r@rAÚ parse_maprFr)rHrIrJÚerrrÚcheck_entry_points¬srncCs%t|tjƒs!tdƒndS)Nztest_suite must be a string)Ú
isinstancerÚ string_typesr)rHrIrJrrrÚcheck_test_suite´srqc Cs~t|tƒrjxX|jƒD]C\}}t|tƒs;Pnyt|ƒWqtk
r^PYqXqWdSnt|dƒdS)z@Verify that value is a dictionary of package names to glob listsNzI must be a dictionary mapping package names to lists of wildcard patterns)roÚdictrZÚstrÚiterrEr)rHrIrJr^r_rrrÚcheck_package_data¹s

rucCs=x6|D].}tjd|ƒstjjd|ƒqqWdS)Nz \w+(\.\w+)*z[WARNING: %r not a valid package name; please use only .-separated package names in setup.py)ÚreÚmatchrTrUr)rHrIrJÚpkgnamerrrÚcheck_packagesËs

 ryc@sceZdZdZdZddZdddZddZd d
Zd d Z d
dZ
ddZ ddZ ddZ
ddZddZddZddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,Zd-d.Zd/d0Zd1d2Zd3d4Zd5d6Zd7d8ZdS)9raDistribution 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.
NcC| sd|ksd|kr#dStjt|dƒƒjƒ}tjjj|ƒ}|dk r|jdƒ rtjt|dƒƒ|_ ||_
ndS)namer4zPKG-INFO) r@Ú safe_namersÚlowerÚ working_setÚby_keyÚgetÚ has_metadataÚ safe_versionÚ_versionÚ
_patched_dist)r2ÚattrsÚkeyrHrrrÚpatch_missing_pkg_infosz#Distribution.patch_missing_pkg_infoc CsCt|dƒ}|s!i|_n|p*i}d|ksEd|krRtjƒng|_i|_g|_|o|jddƒ|_|j |ƒ|dk |jdgƒ|_
t |d|j
ƒn|d|k|j |dƒnx0t
jdƒD]}t|ƒj|jdƒqWtj||ƒt|jjtjƒrht|jjƒ|j_n|jjdk ryftjj|jjƒ}t|ƒ}|jj|ktjd|jj|fƒ||j_nWqtjjtfk
rtjd |jjƒYqXnt |d
dƒr?|j!|j_!ndS) package_dataÚfeaturesÚrequire_featuresÚsrc_rootÚdependency_linksZsetup_requireszdistutils.setup_keywordszNormalizing '%s' to '%s'z¦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)"r r‡ÚFeatureÚwarn_deprecatedr‰rˆÚ
dist_filesÚpoprŠr†rrNÚfetch_build_eggsr@Úiter_entry_pointsÚvarsÚ
setdefaultrzÚ
_DistributionÚ__init__roÚmetadatar4ÚnumbersÚNumberrsr ÚVersionr
rÚInvalidVersionrEÚgetattrr)r2r„Zhave_package_dataZ _attrs_dictrKÚverZnormalized_versionrrrr•*sJ  
   
    zDistribution.__init__cCs)tj|ƒ}|jr%|jƒn|S)z3Process features after parsing command line options)r”Úparse_command_linerˆÚ_finalize_features)r2ÚresultrrrrYs 
zDistribution.parse_command_linecCsd|jddƒS)z;Convert feature name to corresponding option attribute nameZwith_ú_)Úreplace)r2rzrrrÚ_feature_attrname`szDistribution._feature_attrnamecCsUtjjtj|ƒd|jddƒ}x$|D]}tjj|ddƒq1W|S)zResolve pre-setup requirementsÚ installerÚreplace_conflictingTr¢)r@r}Úresolver]Úfetch_build_eggÚadd)r2rZresolved_distsrHrrrrds   
zDistribution.fetch_build_eggscCtj|ƒ|jr#|jƒnxgtjdƒD]V}t||jdƒ}|dk r3|jd|j ƒ|j
ƒ||j|ƒq3q3Wt|ddƒdd|j |_ n g|_ dS)Nzdistutils.setup_keywordsr¤Úconvert_2to3_doctestscSs"g|]}tjj|ƒqSr)r;r<Úabspath)Ú.0Úprrrú
<listcomp>{s z1Distribution.finalize_options.<locals>.<listcomp>) r”Úfinalize_optionsrˆÚ_set_global_opts_from_featuresr@rrrzÚrequirer§Úloadr©)r2rKrJrrros
 
  zDistribution.finalize_optionsc Ctjjtjdƒ}tjj|ƒstj|ƒtj|ƒtjj|dƒ}t|dƒ.}|j dƒ|j dƒ|j dƒWdQXn|S)Nz.eggsz
README.txtr8zcThis directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.
zAThis directory caches those eggs to prevent repeated downloads.
z/However, it is safe to delete this directory.
)
r;r<r*ÚcurdirÚexistsÚmkdirr Z hide_filer:r!)r2Z
egg_cache_dirZreadme_txt_filenameÚfrrrÚget_egg_cache_dirs



zDistribution.get_egg_cache_dirc
Cspy|j}g|j_WnGtk
rbddlm}|jidgd}|jƒ|jdƒ}d}x*t |ƒD]}||kr~||=q~q~W|j
|j
d
d
}d|k|dd j ƒ|}nd |f|d<n|j ƒ} ||d
dgd| dddddd
ddddddddddƒ
}|j
ƒ||_YnX|j|ƒS)z Fetch an egg needed for buildingr)Ú easy_installr·Ú script_argsÚ
find_linksÚ site_dirsÚ index_urlÚoptimizeÚ allow_hostsNrPÚsetupÚargsÚ install_dirZexclude_scriptsTZ always_copyFZbuild_directoryÚeditableÚupgradeZ
multi_versionZ no_reportÚuser)z
find_linksrºz index_urlzoptimizerº)Z _egg_fetcherZ
package_indexZto_scanrGZsetuptools.command.easy_installr·Ú __class__Úparse_config_filesÚget_option_dictr\rrSÚensure_finalized)
r2ÚreqÚcmdr·rHÚoptsZkeepr…ÚlinksrÁrrrŽs4 

    
zDistribution.fetch_build_eggcCsg}|jjƒ}|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)z;Add --with-X/--without-X options based on optional featuresNz
(default)rMzwith-zinclude zwithout-zexclude )
Ú negative_optÚcopyrˆrZÚ _set_featureÚvalidateÚoptionalÚ descriptionÚinclude_by_defaultÚappendÚglobal_optionsZfeature_optionsZfeature_negopt)r2ZgoÚnorzÚfeatureÚdescrZincdefZexcdefrrr¯s 
   ""z+Distribution._set_global_opts_from_featurescCxj|jjƒD]Y\}}|j|ƒ}|sI|dkr|jƒr|j|ƒ|j|dƒqqWxL|jjƒD];\}}|j|ƒs}|j|ƒ|j|dƒq}q}WdS)z9Add/remove features and resolve dependencies between themNrPr)rˆrZÚfeature_is_includedrÓÚ
include_inrÏÚ exclude_from)r2rzr×ZenabledrrrÇs

zDistribution._finalize_featurescCsv||jkr|j|SxUtjd|ƒD]1}|jd|jƒ|jƒ|j|<}|SWtj||ƒSdS)z(Pluggable version of get_command_class()zdistutils.commandsr¤N)Úcmdclassr@rr”Úget_command_class)r2ÚcommandrKrrrØs zDistribution.get_command_classcCsXxHtjdƒD]7}|j|jkr|jƒ}||j|j<qqWtj|ƒS)Nzdistutils.commands)r@rrzr”Úprint_commands)r2rKrrräs
 zDistribution.print_commandscCsXxHtjdƒD]7}|j|jkr|jƒ}||j|j<qqWtj|ƒS)Nzdistutils.commands)r@rrzr”Úget_command_list)r2rKrrrìs
 zDistribution.get_command_listcCst||j|ƒ|ƒdS)zSet feature's inclusion statusN)Úsetattrr£)r2rzÚstatusrrrôszDistribution._set_featurecCst||j|ƒƒS)zAReturn 1 if feature is included, 0 if excluded, 'None' if unknown)r)r2rzrrrøsz Distribution.feature_is_includedcCs`|j|ƒdkr8|j|j}t|dƒn|j|j|ƒ|j|dƒdS)z)Request inclusion of feature named 'name'rz2 is required, but was excluded or is not availablerPN)rˆr)r2rzrrrÚinclude_featureüs zDistribution.include_featurecKsZxS|jƒD]E\}}t|d|dƒ}|rB||ƒq
|j||ƒq
WdS)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.
Z _include_N)rZrÚ
_include_misc)r2r„r^r_Úincluderrrs

zDistribution.includecs˜ˆd|jr8fdd|j|_n|jrffdd|j|_n|jr”fdd|j|_ndS)z9Remove packages, modules, and extensions in named packagerOcs2g|](}|ˆkr|jˆƒ r|qSr)Ú
startswith))ÚpackageÚpfxrrr­#s z0Distribution.exclude_package.<locals>.<listcomp>cs2g|](}|ˆkr|jˆƒ r|qSr)))rrr­)s cs8g|].}|jˆkr|jjˆƒ r|qSr)rz))rrr­/s N)ÚpackagesÚ
py_modulesÚ ext_modules)r2r)rÚexclude_packages
 % % zDistribution.exclude_packagecCsD|d}x3|jƒD]%}||ks8|j|ƒrdSqWdS)z<Return true if 'exclude_package(package)' would do somethingrOTN)Úiter_distribution_namesræ)r2rrrrR3s
zDistribution.has_contents_forcs¿tˆtƒs(td|ˆfƒnyt||ƒ}Wn"tk
r_td|ƒYnX|dk rt|tƒ rt|dƒn,|t||fdd|ƒndS)zAHandle 'exclude()' for list/tuple attrs without a special handlerz(%s: setting must be a list or tuple (%r)z %s: No such distribution settingNz4: this setting cannot be changed via include/excludecs"g|]}|ˆkr|qSrr)Úitem)rJrrr­Ms z.Distribution._exclude_misc.<locals>.<listcomp>)roÚsequencerrrG)r2rzrJÚoldr)rJrÚ
_exclude_misc<s
zDistribution._exclude_miscct|tƒs(td||fƒnyt||ƒWn"tk
r_td|ƒYnXˆdkrt|||ƒnItˆtƒt|dƒn't||ˆfdd|ƒdS)zAHandle 'include()' for list/tuple attrs without a special handlerz%s: setting must be a list (%r)z %s: No such distribution settingNz4: this setting cannot be changed via include/excludecs"g|]}|ˆkr|qSrr))rrr­cs z.Distribution._include_misc.<locals>.<listcomp>)rorrrG)r2rzrJr)rOs
 zDistribution._include_misccKsZxS|jƒD]E\}}t|d|dƒ}|rB||ƒq
|j||ƒq
WdS)aRemove 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.
Z _exclude_N)rZr)r2r„r^r_Úexcluderrres

zDistribution.excludecCs?t|tƒs%td|fƒntt|j|ƒƒdS)Nz.packages: setting must be a list or tuple (%r))rorr\r)r2rrrÚ_exclude_packages|szDistribution._exclude_packagesc
C|jj|_|jj|_|d}|jdƒ}xY||kr||\}}||=ddl}|j|dƒ|dd<|d}q:Wtj|||ƒ}|j|ƒ} t | ddƒd|f|j|ƒd<|dk gSn|S)NrÚaliasesTrPZcommand_consumes_argumentsz command liner¿)
ÚshlexrSr”Ú_parse_command_optsrÝr)
r2Úparserr¿ÚsrcÚaliasrõÚnargsÚ cmd_classrrrƒs"
  z Distribution._parse_command_optsc Cs'i}x|jjƒD] \}}|jƒD]ì\}\}}|dkrSq/n|jddƒ}|dk|j|ƒ}|jjƒ}|jt|diƒƒxZ|jƒD](\} }
|
|k| }d}PqµWtdƒn|dkrd}n||j |iƒ|<q/WqW|S) ahReturn 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.
z command liner¡r rNzShouldn't be able to get hererP)
Úcommand_optionsrZÚget_command_objrÍÚupdaterrDr“) r2ÚdrÊÚoptrøÚvalZcmdobjÚneg_optÚnegÚposrrrÚget_cmdline_optionss(
     z Distribution.get_cmdline_optionsccx|jpfD] }|VqWx|jp.fD] }|Vq/Wxe|jpMfD]T}t|tƒrr|\}}n |j}|jdƒr|dd}n|VqNWdS)z@Yield all packages, modules, and extension names in distributionÚmoduleNéiúÿÿÿ)roÚtuplerzÚendswith)r2ÚpkgrÚextrzZ buildinforrrÅs   z$Distribution.iter_distribution_namescCs0ddl}tjs|jr.tj||ƒSddl}t|j|j ƒs_tj||ƒS|jj
j ƒdkr‡tj||ƒS|jj
}|jj }|j
dkr´dd}|jj}|j |jjƒd|||ƒ|_ztj||ƒSWd|j |jjƒ||||ƒ|_XdS)zÚ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.
rutf-8Úutf8Úwin32Ú
)r zutf8)ÚsysrÚPY2Ú
help_commandsr”Úhandle_display_optionsÚioroÚstdoutÚ
TextIOWrapperr9r|ÚerrorsÚplatformÚline_bufferingÚdetach)r2Ú option_orderrrr9rÚnewlinerrrrr×s$     !z#Distribution.handle_display_options) Ú__name__Ú
__module__Ú __qualname__Ú__doc__rƒr†r•rrrRrrrrrrr×s: B
/     !              ( c@sseZdZdZeddƒZdddffddZdd Zd
d Zd d
Z ddZ
dS)
**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