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
U
G=®dßã@s”ddlZddlZddlZddlZddlmZddlmZddlZddl    m
Z
ddl m Z ddl mZddlmZd    d
„Zd d „Zd d„Zdd„ZdS)éN)Úlog)ÚDistutilsError)Ú easy_install)Úsix)ÚWheelé)ÚTemporaryDirectorycCs*t|tjƒr| ¡St|ttfƒs&t‚|S)z8Ensure find-links option end-up being a list of strings.)Ú
isinstancerÚ string_typesÚsplitÚtupleÚlistÚAssertionError)Ú
find_links©rúKD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\setuptools/installer.pyÚ_fixup_find_linkss rc Cs¶| ddgi¡}| d¡}| ¡| dd„| d¡ ¡Dƒ¡|jr||jdd…}d|krpt|ddƒ|}d|f|d<| ¡}t|d    g|d
d dd d d
d
d d  }|     ¡| |¡S) zJFetch an egg needed for building.
 
    Legacy path using EasyInstall.
    Ú script_argsrcss"|]\}}|dkr||fVqdS))rÚ    site_dirsÚ    index_urlÚoptimizerÚ allow_hostsNr)Ú.0ÚkÚvrrrÚ    <genexpr> sþz*_legacy_fetch_build_egg.<locals>.<genexpr>NrrÚsetupÚxTF)
ÚargsÚ install_dirZexclude_scriptsZ always_copyZbuild_directoryÚeditableÚupgradeZ multi_versionZ    no_reportÚuser)
Ú    __class__Úget_option_dictÚclearÚupdateÚitemsÚdependency_linksrÚget_egg_cache_dirrÚensure_finalized)ÚdistÚreqZtmp_distÚoptsÚlinksrÚcmdrrrÚ_legacy_fetch_build_eggs6
 
 þ ür0c Cs¬zt d¡Wn.tjk
r<| dtj¡t||ƒYSXzt d¡Wn$tjk
rp| dtj¡YnXt|ƒ}| d¡}d|kr”t    dƒ‚dt
j ks¨d    t
j kr®d
}nd }d t
j krÂd }nd|krØ|dd}nd }d|krt |ddƒd d …}ng}|j r| |j ¡t
j | ¡¡}t ¡}t |¡D]$}||kr:| |¡r:|Sq:tƒ:}    tjdddddd|    g}
|r|
 d¡|d k    r¨|
 d|f¡|d k    rÌ|D]} |
 d| f¡q¶|jrâ|
 |j¡n|
 t|ƒ¡zt |
¡Wn4tjk
r2} zt    t| ƒƒ| ‚W5d } ~ XYnXtt t
j  |    d¡¡dƒ} t
j  ||  !¡¡}|  "|¡t #|t
j  |d¡¡}tj$j%||d}|W5QR£SQRXd S)zLFetch an egg needed for building.
 
    Use pip/wheel to fetch/build a wheel.Úpipz­WARNING: The pip package is not available, falling back to EasyInstall for handling setup_requires/test_requires; this is deprecated and will be removed in a future version.Úwheelz,WARNING: The wheel package is not available.rrzQthe `allow-hosts` option is not supported when using pip to install requirements.Z    PIP_QUIETZ PIP_VERBOSEFTZ PIP_INDEX_URLNrrrz-mz--disable-pip-version-checkz    --no-depsz-wz--quietz --index-urlz --find-linksz*.whlrzEGG-INFO)Úmetadata)&Ú pkg_resourcesÚget_distributionÚDistributionNotFoundÚannouncerÚWARNr0Ú strip_markerr$rÚosÚenvironrr(ÚextendÚpathÚrealpathr)Ú EnvironmentÚfind_distributionsÚcan_addrÚsysÚ
executableÚappendÚurlÚstrÚ
subprocessÚ
check_callÚCalledProcessErrorrÚglobÚjoinÚegg_nameZinstall_as_eggÚ PathMetadataÚ DistributionÚ from_filename)r+r,r-ÚquietrrZeggs_dirÚ environmentZegg_distÚtmpdirr/ÚlinkÚer2Ú dist_locationZ dist_metadatarrrÚfetch_build_egg8sŒü
 
 
 
ü
 
 
 
 ÿÿrVcCstj t|ƒ¡}d|_|S)z«
    Return a new requirement without the environment marker to avoid
    calling pip with something like `babel; extra == "i18n"`, which
    would always be ignored.
    N)r4Ú RequirementÚparserFÚmarker)r,rrrr9sr9)rJr:rGrBÚ    distutilsrÚdistutils.errorsrr4Zsetuptools.command.easy_installrZsetuptools.externrZsetuptools.wheelrÚ
py31compatrrr0rVr9rrrrÚ<module>s       U