zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
U
H=®dã@sâddlmZddlZddlZddlZddlmZddlmZddl    m
Z
m Z ddl m Z ddlmZddlmZdd    lmZmZdd
lmZdd lmZdd lmZmZerÄdd lmZddlmZe  e!¡Z"Gdd„de
ƒZ#dS)é)Úabsolute_importN)Ú
WheelCache)Ú
cmdoptions)ÚRequirementCommandÚ with_cleanup)ÚSUCCESS)Ú CommandError)Úget_requirement_tracker)Ú
ensure_dirÚnormalize_path)Ú TempDirectory)ÚMYPY_CHECK_RUNNING)ÚbuildÚshould_build_for_wheel_command)ÚValues)ÚListc@s(eZdZdZdZdd„Zedd„ƒZdS)Ú WheelCommanda´
    Build Wheel archives for your requirements and dependencies.
 
    Wheel is a built-package format, and offers the advantage of not
    recompiling your software during every install. For more details, see the
    wheel docs: https://wheel.readthedocs.io/en/latest/
 
    Requirements: setuptools>=0.8, and wheel.
 
    'pip wheel' uses the bdist_wheel setuptools extension from the wheel
    package to build individual wheels.
 
    zõ
      %prog [options] <requirement specifier> ...
      %prog [options] -r <requirements file> ...
      %prog [options] [-e] <vcs project url> ...
      %prog [options] [-e] <local project path> ...
      %prog [options] <archive url/path> ...cCs||jjddddtjdd|j t ¡¡|j t ¡¡|j t ¡¡|jjddd    d
d d |j t ¡¡|j t     ¡¡|j t 
¡¡|j t  ¡¡|j t  ¡¡|j t  ¡¡|j t ¡¡|j t ¡¡|j t ¡¡|j t ¡¡|j t ¡¡|jjd dd
d    dd|jjddddd|j t ¡¡t tj|j¡}|j d|¡|j d|j¡dS)Nz-wz --wheel-dirÚ    wheel_dirÚdirzLBuild wheels into <dir>, where the default is the current working directory.)ÚdestÚmetavarÚdefaultÚhelpz--build-optionÚ build_optionsÚoptionsÚappendz9Extra arguments to be supplied to 'setup.py bdist_wheel'.)rrÚactionrz--global-optionÚglobal_optionszZExtra global options to be supplied to the setup.py call before the 'bdist_wheel' command.)rrrrz--preÚ
store_trueFzYInclude pre-release and development versions. By default, pip only finds stable versions.)rrrr)Úcmd_optsÚ
add_optionÚosÚcurdirrÚ    no_binaryÚ only_binaryÚ prefer_binaryÚno_build_isolationÚ
use_pep517Ú no_use_pep517Ú constraintsÚeditableÚ requirementsÚsrcÚignore_requires_pythonÚno_depsÚ    build_dirÚ progress_barÚrequire_hashesÚmake_option_groupÚ index_groupÚparserÚinsert_option_group)ÚselfÚ
index_opts©r8úSD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/commands/wheel.pyÚ add_options2sbûûûüþzWheelCommand.add_optionsc Csœt |¡| |¡}| ||¡}|jp*|j }t|j|jƒ}t    |j
ƒ|_
t |j
ƒ|  t ƒ¡}t|j|ddd}| ||||¡}    |j||||||j
dd}
|j|
||||j|jd} | |¡| j|    dd} dd    „| j ¡Dƒ} t| ||jpîg|jpögd
\}}|D]|}|jr|jjst‚|js*t‚zt  |j|j
¡Wn>t!k
r|}zt" #d |j$|¡| %|¡W5d}~XYnXqt&|ƒd kr˜t'd ƒ‚t(S)NÚwheelT)ÚdeleteÚkindÚglobally_managedF)Útemp_build_dirrÚ req_trackerÚsessionÚfinderÚwheel_download_dirÚ use_user_site)ÚpreparerrBrÚ wheel_cacher-r')Úcheck_supported_wheelscSsg|]}t|ƒr|‘qSr8)r)Ú.0Úrr8r8r9Ú
<listcomp>Ÿsÿz$WheelCommand.run.<locals>.<listcomp>)rFrrz Building wheel for %s failed: %srz"Failed to build one or more wheels))rÚcheck_install_build_globalÚget_default_sessionÚ_build_package_finderÚno_cleanr/rÚ    cache_dirÚformat_controlr rr
Ú enter_contextr    r Úget_requirementsÚmake_requirement_preparerÚ make_resolverr-r'Útrace_basic_infoÚresolver+ÚvaluesrrrÚlinkÚis_wheelÚAssertionErrorÚlocal_file_pathÚshutilÚcopyÚOSErrorÚloggerÚwarningÚnamerÚlenrr)r6rÚargsrArBÚ build_deleterFr@Ú    directoryÚreqsrEÚresolverÚrequirement_setÚ reqs_to_buildÚbuild_successesÚbuild_failuresÚreqÚer8r8r9Úrunms~
 
 
 üù
ú    
ÿÿü
 þ ÿzWheelCommand.runN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__Úusager:rrnr8r8r8r9rs
;r)$Ú
__future__rÚloggingr!r\Úpip._internal.cacherZpip._internal.clirÚpip._internal.cli.req_commandrrÚpip._internal.cli.status_codesrÚpip._internal.exceptionsrÚpip._internal.req.req_trackerr    Úpip._internal.utils.miscr
r Úpip._internal.utils.temp_dirr Úpip._internal.utils.typingr Úpip._internal.wheel_builderrrÚoptparserÚtypingrÚ    getLoggerror_rr8r8r8r9Ú<module>s$