• File: __init__.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/setuptools/__pycache__/__init__.cpython-37.pyc
  • Date Modified: 11/13/2023 9:30 PM
  • File size: 8.39 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

mRe@sRdZddlmZddlZddlZddlZddlZddlZddl	Z
ddlmZddl
mZddlmZddlZddlmZdd	lmZdd
lmZddlmZdd
ddddddgZejjZdZGdddZGdddeZ ej!Z"e j!Z#ddZ$ddZ%e
j&j%je%_e'e
j&j(Z)Gddde)Z(ddZ*ej+fddZ,Gd d!d!e-Z.e/dS)"z@Extensions to the 'distutils' for large or complex distributions)fnmatchcaseN)DistutilsOptionError)convert_path)SetuptoolsDeprecationWarning)	Extension)Distribution)Require)monkeysetuprCommandrr	r
find_packagesfind_namespace_packagesc@sBeZdZdZedddZeddZed	d
ZeddZ	d
S)
PackageFinderzI
    Generate a list of all Python packages found within a directory
    .*cCs&t|t||jd||j|S)a	Return a list all Python packages found within directory 'where'

        'where' is the root directory which will be searched for packages.  It
        should be supplied as a "cross-platform" (i.e. URL-style) path; it will
        be converted to the appropriate local path syntax.

        'exclude' is a sequence of package names to exclude; '*' can be used
        as a wildcard in the names, such that 'foo.*' will exclude all
        subpackages of 'foo' (but not 'foo' itself).

        'include' is a sequence of package names to include.  If it's
        specified, only the named packages will be included.  If it's not
        specified, all found packages will be included.  'include' can contain
        shell style wildcard patterns just like 'exclude'.
        ez_setup*__pycache__)rr)list_find_packages_iterr
_build_filter)clswhereexcludeincluderrD/opt/alt/python37/lib/python3.7/site-packages/setuptools/__init__.pyfind-s
zPackageFinder.findccsxtj|ddD]\}}}|dd}g|dd<xl|D]d}tj||}	tj|	|}
|
tjjd}d|ks8||	s|q8||r||s|V||q8WqWdS)zy
        All the packages found in 'where' that pass the 'include' filter, but
        not the 'exclude' filter.
        T)followlinksNr)	oswalkpathjoinrelpathreplacesep_looks_like_packageappend)rrrrrootdirsfilesZall_dirsdir	full_pathZrel_pathpackagerrrrGs
z!PackageFinder._find_packages_itercCstjtj|dS)z%Does a directory look like a package?z__init__.py)r r"isfiler#)r"rrrr'csz!PackageFinder._looks_like_packagecsfddS)z
        Given a list of patterns, return a callable that will be true only if
        the input matches at least one of the patterns.
        cstfddDS)Nc3s|]}t|dVqdS))patN)r).0r0)namerr	<genexpr>nsz@PackageFinder._build_filter.<locals>.<lambda>.<locals>.<genexpr>)any)r2)patterns)r2r<lambda>nz-PackageFinder._build_filter.<locals>.<lambda>r)r5r)r5rrhszPackageFinder._build_filterN)rrr)
__name__
__module____qualname____doc__classmethodrrstaticmethodr'rrrrrr(src@seZdZeddZdS)PEP420PackageFindercCsdS)NTr)r"rrrr'rsz'PEP420PackageFinder._looks_like_packageN)r8r9r:r=r'rrrrr>qsr>cCsJGdddtjj}||}|jdd|jrFtdt||jdS)Nc@s eZdZdZddZddZdS)z4_install_setup_requires.<locals>.MinimalDistributionzl
        A minimal version of a distribution for supporting the
        fetch_build_eggs interface.
        cs6d}fddt|t@D}tjj||dS)N)Zdependency_linkssetup_requirescsi|]}||qSrr)r1k)attrsrr
<dictcomp>szQ_install_setup_requires.<locals>.MinimalDistribution.__init__.<locals>.<dictcomp>)set	distutilscorer__init__)selfrAZ_inclZfilteredr)rArrFsz=_install_setup_requires.<locals>.MinimalDistribution.__init__cSsdS)zl
            Disable finalize_options to avoid building the working set.
            Ref #2158.
            Nr)rGrrrfinalize_optionsszE_install_setup_requires.<locals>.MinimalDistribution.finalize_optionsN)r8r9r:r;rFrHrrrrMinimalDistribution~srIT)Zignore_option_errorszdsetup_requires is deprecated. Supply build dependencies using PEP 517 pyproject.toml build-requires.)	rDrErZparse_config_filesr?warningswarnrZfetch_build_eggs)rArIdistrrr_install_setup_requires{srMcKst|tjjf|S)N)rMrDrEr)rArrrrsc@s:eZdZejZdZddZdddZddZd
d
dZ	dS)rFcKst||t||dS)zj
        Construct the command for dist, updating
        vars(self) with any keyword parameters.
        N)_CommandrFvarsupdate)rGrLkwrrrrFszCommand.__init__NcCsBt||}|dkr"t||||St|ts>td|||f|S)Nz'%s' must be a %s (got `%s`))getattrsetattr
isinstancestrr)rGoptionZwhatdefaultvalrrr_ensure_stringlikes

zCommand._ensure_stringlikecCspt||}|dkrdSt|tr6t||td|n6t|trTtdd|D}nd}|sltd||fdS)zEnsure that 'option' is a list of strings.  If 'option' is
        currently a string, we split it either on /,\s*/ or /\s+/, so
        "foo bar baz", "foo,bar,baz", and "foo,   bar baz" all become
        ["foo", "bar", "baz"].
        Nz,\s*|\s+css|]}t|tVqdS)N)rTrU)r1vrrrr3sz-Command.ensure_string_list.<locals>.<genexpr>Fz''%s' must be a list of strings (got %r))	rRrTrUrSresplitrallr)rGrVrXokrrrensure_string_lists


zCommand.ensure_string_listrcKs t|||}t|||S)N)rNreinitialize_commandrOrP)rGZcommandZreinit_subcommandsrQcmdrrrr`szCommand.reinitialize_command)N)r)
r8r9r:rNr;Zcommand_consumes_argumentsrFrYr_r`rrrrrs
cCs&ddtj|ddD}ttjj|S)z%
    Find all files under 'path'
    css,|]$\}}}|D]}tj||VqqdS)N)r r"r#)r1baser*r+filerrrr3sz#_find_all_simple.<locals>.<genexpr>T)r)r r!filterr"r/)r"resultsrrr_find_all_simplesrfcCs6t|}|tjkr.tjtjj|d}t||}t|S)z
    Find all files under 'dir' and return the list of full filenames.
    Unless dir is '.', return full filenames with dir prepended.
    )start)	rfr curdir	functoolspartialr"r$mapr)r,r+Zmake_relrrrfindalls


rlc@seZdZdZdS)sicz;Treat this string as-is (https://en.wikipedia.org/wiki/Sic)N)r8r9r:r;rrrrrmsrm)0r;Zfnmatchrrir r[rJZ_distutils_hack.overrideZ_distutils_hackZdistutils.corerDZdistutils.errorsrZdistutils.utilrZ_deprecation_warningrZsetuptools.versionZ
setuptoolsZsetuptools.extensionrZsetuptools.distrZsetuptools.dependsr	r
__all__version__version__Zbootstrap_install_fromrr>rr
rrMrrEZ
get_unpatchedrrNrfrhrlrUrmZ	patch_allrrrr<module>sLI!3