1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
U
G=®d›ã@s\ddlmZmZddlZddlmZddlmZddlmZddl    Z    Gdd„dej
eƒZ dS)é)ÚlogÚdir_utilN)ÚCommand)Ú
namespaces)Úunpack_archivec@sBeZdZdZdZdgZdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d S)Úinstall_egg_infoz.Install an .egg-info directory for the package)z install-dir=Údzdirectory to install tocCs
d|_dS©N)Ú install_dir©Úself©r úZD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\setuptools/command/install_egg_info.pyÚinitialize_optionssz#install_egg_info.initialize_optionscCsV| dd¡| d¡}t dd|j|j¡ ¡d}|j|_tj     
|j |¡|_ g|_ dS)NÚ install_lib)r
r
Úegg_infoz    .egg-info)Úset_undefined_optionsÚget_finalized_commandÚ pkg_resourcesÚ DistributionÚegg_nameZ egg_versionrÚsourceÚosÚpathÚjoinr
ÚtargetÚoutputs)r Zei_cmdÚbasenamer r rÚfinalize_optionssÿ
ÿþz!install_egg_info.finalize_optionscCsœ| d¡tj |j¡r:tj |j¡s:tj|j|jdn(tj     |j¡rb| 
tj |jfd|j¡|jstt   |j¡| 
|jdd|j|jf¡| ¡dS)Nr)Údry_runz    Removing r úCopying %s to %s)Ú run_commandrrÚisdirrÚislinkrÚ remove_treerÚexistsÚexecuteÚunlinkrÚensure_directoryÚcopytreerZinstall_namespacesr r r rÚrun!s
 ÿzinstall_egg_info.runcCs|jSr    )rr r r rÚ get_outputs.szinstall_egg_info.get_outputscs ‡fdd„}tˆjˆj|ƒdS)NcsDdD] }| |¡sd||krdSqˆj |¡t d||¡|S)N)z.svn/zCVS/ú/r )Ú
startswithrÚappendrÚdebug)ÚsrcÚdstÚskipr r rÚskimmer3s  z*install_egg_info.copytree.<locals>.skimmer)rrr)r r3r r rr)1s zinstall_egg_info.copytreeN) Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú descriptionÚ user_optionsrrr*r+r)r r r rr
sÿ  r) Ú    distutilsrrrÚ
setuptoolsrrZsetuptools.archive_utilrrZ    Installerrr r r rÚ<module>s