Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/setuptools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/setuptools/build_meta.pyo
�
�fc@s�dZddlZddlZddlZddlZddlZddlZddlZdefd��YZ	dej
jfd��YZdd�Zd	�Z
d
�Zd�Zdd�Zdd
�Zdd�Zddd�Zdd�ZdS(s-A PEP 517 interface to setuptools

Previously, when a user or a command line tool (let's call it a "frontend")
needed to make a request of setuptools to take a certain action, for
example, generating a list of installation requirements, the frontend would
would call "setup.py egg_info" or "setup.py bdist_wheel" on the command line.

PEP 517 defines a different method of interfacing with setuptools. Rather
than calling "setup.py" directly, the frontend should:

  1. Set the current directory to the directory with a setup.py file
  2. Import this module into a safe python interpreter (one in which
     setuptools can potentially set global variables or crash hard).
  3. Call one of the functions defined in PEP 517.

What each function does is defined in PEP 517. However, here is a "casual"
definition of the functions (this definition should not be relied on for
bug reports or API stability):

  - `build_wheel`: build a wheel in the folder and return the basename
  - `get_requires_for_build_wheel`: get the `setup_requires` to build
  - `prepare_metadata_for_build_wheel`: get the `install_requires`
  - `build_sdist`: build an sdist in the folder and return the basename
  - `get_requires_for_build_sdist`: get the `setup_requires` to build

Again, this is not a formal definition! Just a "taste" of the module.
i����NtSetupRequirementsErrorcBseZd�ZRS(cCs
||_dS(N(t
specifiers(tselfR((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pyt__init__(s(t__name__t
__module__R(((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pyR'stDistributioncBs)eZd�Zeejd���ZRS(cCst|��dS(N(R(RR((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pytfetch_build_eggs-sccs5tjj}|tj_z	dVWd|tj_XdS(sw
        Replace
        distutils.dist.Distribution with this class
        for the duration of this context.
        N(t	distutilstcoreR(tclstorig((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pytpatch0s
	(RRRtclassmethodt
contextlibtcontextmanagerR(((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pyR,s	ssetup.pycBsa|}d}eede�|�}|j�jdd�}|j�e||d�e�UdS(Nt__main__topens\r\ns\ntexec(tgetattrttokenizeRtreadtreplacetclosetcompiletlocals(tsetup_scriptt__file__Rtftcode((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pyt
_run_setup@s
cCs |p	i}|jdg�|S(Ns--global-option(t
setdefault(tconfig_settings((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pyt_fix_configKscCs|t|�}ddg}tjd dg|dt_ytj��t�WdQXWn tk
rw}||j7}nX|S(Nt
setuptoolstwheelitegg_infos--global-option(R!tsystargvRRRRR(R trequirementste((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pyt_get_build_requiresQs
cCsAgtj|�D]-}tjjtjj||��r|^qS(N(tostlistdirtpathtisdirtjoin(ta_dirtname((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pyt_get_immediate_subdirectories`scCst|�}t|�S(N(R!R)(R ((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pytget_requires_for_build_wheelescCst|�}t|�S(N(R!R)(R ((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pytget_requires_for_build_sdistjscCstjd dd|gt_t�|}x�tr�gtj|�D]}|jd�rC|^qC}t|�dkr�tt|��dkr�tj	j
|tj|�d�}q-nPq-W||krtjtj	j
||d�|�tj
|dt�n|dS(Nit	dist_infos
--egg-bases
.dist-infoit
ignore_errors(R%R&RtTrueR*R+tendswithtlenR1R,R.tshutiltmovetrmtree(tmetadata_directoryR tdist_info_directoryRt
dist_infos((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pyt prepare_metadata_for_build_wheelos$		cCs�t|�}tjj|�}tjd dg|dt_t�|dkrptj|�tj	d|�ngtj
|�D]}|jd�r�|^q�}|dS(Nitbdist_wheels--global-optiontdists.whli(R!R*R,tabspathR%R&RR9R;tcopytreeR+R7(twheel_directoryR R<Rtwheels((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pytbuild_wheel�s
cCs�t|�}tjj|�}tjd dg|dt_t�|dkrptj|�tj	d|�ngtj
|�D]}|jd�r�|^q�}|dS(Nitsdists--global-optionRAs.tar.gzi(R!R*R,RBR%R&RR9R;RCR+R7(tsdist_directoryR Rtsdists((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pytbuild_sdist�s
(t__doc__R*R%RR9RR"Rt
BaseExceptionRRARRR!R)R1tNoneR2R3R?RFRJ(((s9/usr/lib/python2.7/site-packages/setuptools/build_meta.pyt<module>s&			
Name
Size
Permissions
Options
_vendor
--
drwxr-xr-x
command
--
drwxr-xr-x
extern
--
drwxr-xr-x
__init__.py
5.566 KB
-rw-r--r--
__init__.pyc
7.446 KB
-rw-r--r--
__init__.pyo
7.446 KB
-rw-r--r--
archive_util.py
6.438 KB
-rw-r--r--
archive_util.pyc
5.998 KB
-rw-r--r--
archive_util.pyo
5.998 KB
-rw-r--r--
build_meta.py
5.538 KB
-rw-r--r--
build_meta.pyc
6.483 KB
-rw-r--r--
build_meta.pyo
6.369 KB
-rw-r--r--
config.py
15.997 KB
-rw-r--r--
config.pyc
16.492 KB
-rw-r--r--
config.pyo
16.492 KB
-rw-r--r--
dep_util.py
0.913 KB
-rw-r--r--
dep_util.pyc
0.942 KB
-rw-r--r--
dep_util.pyo
0.942 KB
-rw-r--r--
depends.py
5.7 KB
-rw-r--r--
depends.pyc
6.331 KB
-rw-r--r--
depends.pyo
6.331 KB
-rw-r--r--
dist.py
41.518 KB
-rw-r--r--
dist.pyc
40.529 KB
-rw-r--r--
dist.pyo
40.473 KB
-rw-r--r--
extension.py
1.688 KB
-rw-r--r--
extension.pyc
2.361 KB
-rw-r--r--
extension.pyo
2.361 KB
-rw-r--r--
glibc.py
3.072 KB
-rw-r--r--
glibc.pyc
1.914 KB
-rw-r--r--
glibc.pyo
1.914 KB
-rw-r--r--
glob.py
5.085 KB
-rw-r--r--
glob.pyc
4.705 KB
-rw-r--r--
glob.pyo
4.645 KB
-rw-r--r--
launch.py
0.769 KB
-rw-r--r--
launch.pyc
0.977 KB
-rw-r--r--
launch.pyo
0.977 KB
-rw-r--r--
lib2to3_ex.py
1.966 KB
-rw-r--r--
lib2to3_ex.pyc
2.934 KB
-rw-r--r--
lib2to3_ex.pyo
2.934 KB
-rw-r--r--
monkey.py
5.653 KB
-rw-r--r--
monkey.pyc
6.194 KB
-rw-r--r--
monkey.pyo
6.194 KB
-rw-r--r--
msvc.py
39.919 KB
-rw-r--r--
msvc.pyc
39.406 KB
-rw-r--r--
msvc.pyo
39.406 KB
-rw-r--r--
namespaces.py
3.124 KB
-rw-r--r--
namespaces.pyc
4.915 KB
-rw-r--r--
namespaces.pyo
4.915 KB
-rw-r--r--
package_index.py
39.212 KB
-rw-r--r--
package_index.pyc
38.812 KB
-rw-r--r--
package_index.pyo
38.812 KB
-rw-r--r--
pep425tags.py
10.627 KB
-rw-r--r--
pep425tags.pyc
9.115 KB
-rw-r--r--
pep425tags.pyo
9.115 KB
-rw-r--r--
py27compat.py
0.523 KB
-rw-r--r--
py27compat.pyc
1.021 KB
-rw-r--r--
py27compat.pyo
1.021 KB
-rw-r--r--
py31compat.py
1.164 KB
-rw-r--r--
py31compat.pyc
1.854 KB
-rw-r--r--
py31compat.pyo
1.854 KB
-rw-r--r--
py33compat.py
1.154 KB
-rw-r--r--
py33compat.pyc
1.68 KB
-rw-r--r--
py33compat.pyo
1.68 KB
-rw-r--r--
py36compat.py
2.823 KB
-rw-r--r--
py36compat.pyc
2.795 KB
-rw-r--r--
py36compat.pyo
2.795 KB
-rw-r--r--
sandbox.py
13.941 KB
-rw-r--r--
sandbox.pyc
18.457 KB
-rw-r--r--
sandbox.pyo
18.457 KB
-rw-r--r--
script (dev).tmpl
0.196 KB
-rw-r--r--
script.tmpl
0.135 KB
-rw-r--r--
site-patch.py
2.253 KB
-rw-r--r--
site-patch.pyc
1.698 KB
-rw-r--r--
site-patch.pyo
1.698 KB
-rw-r--r--
ssl_support.py
8.293 KB
-rw-r--r--
ssl_support.pyc
8.316 KB
-rw-r--r--
ssl_support.pyo
8.316 KB
-rw-r--r--
unicode_utils.py
0.973 KB
-rw-r--r--
unicode_utils.pyc
1.438 KB
-rw-r--r--
unicode_utils.pyo
1.438 KB
-rw-r--r--
version.py
0.141 KB
-rw-r--r--
version.pyc
0.314 KB
-rw-r--r--
version.pyo
0.314 KB
-rw-r--r--
wheel.py
7.061 KB
-rw-r--r--
wheel.pyc
7.171 KB
-rw-r--r--
wheel.pyo
7.138 KB
-rw-r--r--
windows_support.py
0.697 KB
-rw-r--r--
windows_support.pyc
1.244 KB
-rw-r--r--
windows_support.pyo
1.244 KB
-rw-r--r--