zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
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
U
H=®d ã@s†ddlZddlZddlmZddlmZddlmZm    Z    m
Z
ddl m Z e r`ddl mZmZmZe e¡Zdd„Zd    d
„Zd d „ZdS) éN)Ú open_spinner)Ú make_setuptools_bdist_wheel_args)Ú LOG_DIVIDERÚcall_subprocessÚformat_command_args)ÚMYPY_CHECK_RUNNING)ÚListÚOptionalÚTextcCs^t|ƒ}d |¡}|s |d7}n:t ¡tjkr8|d7}n"| d¡sJ|d7}|d |t¡7}|S)z'Format command information for logging.zCommand arguments: {}
zCommand output: Nonez'Command output: [use --verbose to show]Ú
zCommand output:
{}{})rÚformatÚloggerÚgetEffectiveLevelÚloggingÚDEBUGÚendswithr)Ú command_argsÚcommand_outputÚ command_descÚtext©rúbD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/operations/build/wheel_legacy.pyÚformat_command_results
 
 
 
rcCstt|ƒ}|s2d |¡}|t||ƒ7}t |¡dSt|ƒdkrbd ||¡}|t||ƒ7}t |¡tj ||d¡S)z>Return the path to the wheel in the temporary build directory.z1Legacy build of wheel for {!r} created no files.
NézZLegacy build of wheel for {!r} created more than one file.
Filenames (choosing first): {}
r)    Úsortedr rr ÚwarningÚlenÚosÚpathÚjoin)ÚnamesÚtemp_dirÚnamerrÚmsgrrrÚget_legacy_build_wheel_path*s$
ÿþ
 ÿý
r$c
Cs°t||||d}d |¡}t|ƒ„}t d|¡zt|||d}    Wn6tk
rx| d¡t d|¡YW5QR£dSXt     
|¡}
t |
||||    d} | W5QR£SQRXdS)    zŒBuild one unpacked package using the "legacy" build process.
 
    Returns path to wheel if successfully built. Otherwise, returns None.
    )Úglobal_optionsÚ build_optionsÚdestination_dirz Building wheel for {} (setup.py)zDestination directory: %s)ÚcwdÚspinnerÚerrorzFailed building wheel for %sN)r r!r"rr) rr rr ÚdebugrÚ    ExceptionÚfinishr*rÚlistdirr$) r"Ú setup_py_pathÚ
source_dirr%r&ÚtempdÚ
wheel_argsÚ spin_messager)Úoutputr Ú
wheel_pathrrrÚbuild_wheel_legacyHs8 ü
 
 ý
 
 
ûr6)rÚos.pathrÚpip._internal.cli.spinnersrÚ$pip._internal.utils.setuptools_buildrÚpip._internal.utils.subprocessrrrÚpip._internal.utils.typingrÚtypingrr    r
Ú    getLoggerÚ__name__r rr$r6rrrrÚ<module>s