1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
U
H=®d¹ã@sÒdZddlZddlZddlZddlmZddlmZddlm    Z    ddl
m Z ddl m Z ddlmZdd    lmZdd
lmZer¬dd lmZmZmZdd lmZdd lmZe e¡ZGdd„deƒZ dd„Z!dS)z6Legacy installation process, i.e. `setup.py install`.
éN)Ú change_root)ÚInstallationError)Ú
indent_log)Ú
ensure_dir)Úmake_setuptools_install_args)Úrunner_with_spinner_message)Ú TempDirectory)ÚMYPY_CHECK_RUNNING)ÚListÚOptionalÚSequence)ÚBuildEnvironment)ÚSchemec@seZdZdd„ZdS)ÚLegacyInstallFailurecCst ¡|_dS©N)ÚsysÚexc_infoÚparent)Úself©rú^D:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/operations/install/legacy.pyÚ__init__szLegacyInstallFailure.__init__N)Ú__name__Ú
__module__Ú __qualname__rrrrrrsrcsÎ|j}tddÖ}z–tj |jd¡}t||||ˆ|||||    |d }td |
¡ƒ}tƒ"| ||| dW5QRXW5QRXtj     |¡s¦t
  d|¡WW5QR£dSWnt k
rÀt ‚YnXt|ƒ}| ¡ ¡}W5QRXW5QRX‡fd    d
„}|D](}tj |¡}| d ¡rü||ƒ}q8qüd  | ¡}t|ƒ‚g}|D]@}| ¡}tj |¡rf|tjj7}| tj ||ƒ|¡¡q@| ¡t|ƒtj |d ¡}t|dƒ}| d |¡d¡W5QRXdS)NÚrecord)Úkindzinstall-record.txt)
Úglobal_optionsÚinstall_optionsÚrecord_filenameÚrootÚprefixÚ
header_dirÚhomeÚ use_user_siteÚno_user_configÚ    pycompilezRunning setup.py install for {})ÚcmdÚcwdzRecord file %s not foundFcs&ˆdkstj |¡s|Stˆ|ƒSdSr)ÚosÚpathÚisabsr)r*©r rrÚ prepend_root`szinstall.<locals>.prepend_rootz    .egg-infoz„{} did not indicate that it installed an .egg-info directory. Only setup.py projects generating .egg-info directories are supported.zinstalled-files.txtÚwÚ
T)Úheadersrr)r*ÚjoinrrÚformatrÚexistsÚloggerÚdebugÚ    ExceptionrÚopenÚreadÚ
splitlinesÚdirnameÚendswithrÚstripÚisdirÚsepÚappendÚrelpathÚsortrÚwrite)rrr r#r!r$r&ÚschemeÚ setup_py_pathÚisolatedÚreq_nameÚ    build_envÚunpacked_source_directoryÚreq_descriptionr"Útemp_dirrÚ install_argsÚrunnerÚfÚ record_linesr-ÚlineÚ    directoryÚ egg_info_dirÚmessageÚ    new_linesÚfilenameÚinst_files_pathrr,rÚinstall!sr õÿþ  
 
   
ÿü ÿ rV)"Ú__doc__Úloggingr)rÚdistutils.utilrÚpip._internal.exceptionsrÚpip._internal.utils.loggingrÚpip._internal.utils.miscrÚ$pip._internal.utils.setuptools_buildrÚpip._internal.utils.subprocessrÚpip._internal.utils.temp_dirrÚpip._internal.utils.typingr    Útypingr
r r Úpip._internal.build_envr Úpip._internal.models.schemerÚ    getLoggerrr4r6rrVrrrrÚ<module>s$