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
U
H=®d ã@sdZddlZddlZddlZddlmZddlZddlmZddl    m
Z
ddl m Z m Z ddlmZe e¡Zd    d
„Zd d „Zd d„Zdd„Zd#dd„Ze ¡Zejdddejdddddejdddddejddddd d!„Zed"kree ¡ƒdS)$z%Build a project using PEP 517 hooks.
éN)Útomlé)ÚBuildEnvironment)ÚPep517HookCaller)ÚtempdirÚmkdir_p)ÚFileNotFoundErrorcCs4ddh}|t|ƒks0dj|t|ƒd}t|ƒ‚dS)z7
    Ensure build system has the requisite fields.
    Úrequiresú build-backendz"Missing required fields: {missing})ÚmissingN)ÚsetÚformatÚ
ValueError)ÚsystemÚrequiredÚmessage©rúOD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_vendor/pep517/build.pyÚvalidate_systems  
ÿrc    Cs4tj |d¡}t|ƒ}t |¡}W5QRX|dS)zC
    Load the build system from a source dir (pyproject.toml).
    zpyproject.tomlz build-system)ÚosÚpathÚjoinÚopenrÚload)Ú
source_dirÚ    pyprojectÚfZpyproject_datarrrÚ load_systems
rc    CsJz t|ƒ}Wnttfk
r(i}YnX| dd¡| dddg¡|S)zÔ
    Given a source dir, attempt to get a build system backend
    and requirements from pyproject.toml. Fallback to
    setuptools but only if the file was not found or a build
    system was not indicated.
    r
z setuptools.build_meta:__legacy__r    Ú
setuptoolsÚwheel)rrÚKeyErrorÚ
setdefault)rrrrrÚ compat_system's 
þr"c
Cs²djftƒŽ}t||ƒ}|iƒ}t d|¡| |¡t d¡tƒb}t d||¡djftƒŽ}t||ƒ}    |    |iƒ}
tj     ||
¡} t
  | tj     |tj  |
¡¡¡W5QRXdS)Nzget_requires_for_build_{dist}zGot build requires: %sz$Installed dynamic build dependencieszTrying to build %s in %sz build_{dist}) r ÚlocalsÚgetattrÚlogÚinfoÚ pip_installrrrrÚshutilÚmoveÚbasename) ÚhooksÚenvÚdistÚdestZget_requires_nameÚ get_requiresÚreqsÚtdZ
build_nameÚbuildÚfilenameÚsourcerrrÚ    _do_build:s
 
 
 
 
r5c    Csv|p
t|ƒ}tj ||pd¡}t|ƒt|ƒt||d| d¡ƒ}tƒ"}|     |d¡t
||||ƒW5QRXdS)Nr-r
z backend-pathr    ) rrrrrrrÚgetrr'r5)rr-r.rr+r,rrrr2Ls ÿr2rz%A directory containing pyproject.toml)Úhelpz--binaryz-bÚ
store_trueF)ÚactionÚdefaultz--sourcez-sz    --out-dirz-oz>Destination in which to save the builds relative to source dircCsPttd|js|jsdnd|js$|js(dndfƒƒ}|D]}t|j||jƒq6dS)NÚsdistr)ÚlistÚfilterr4Úbinaryr2rZout_dir)ÚargsÚdistsr-rrrÚmainps þrAÚ__main__)NN)Ú__doc__ÚargparseÚloggingrÚ pip._vendorrr(ZenvbuildrÚwrappersrZdirtoolsrrÚcompatrÚ    getLoggerÚ__name__r%rrr"r5r2ÚArgumentParserÚparserÚ add_argumentrAÚ
parse_argsrrrrÚ<module>sP    
 
 
þýýþ