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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
U
G=®d8ã@sndZddlZddlZddlZddlmZmZddlmZddl    m
Z
ej dkrVda da d dd    „Zd d
d „ZdS)zìdistutils.spawn
 
Provides the 'spawn()' function, a front-end to various platform-
specific functions for launching another program in a sub-process.
Also provides the 'find_executable()' to search the path for a given
executable name.
éN)ÚDistutilsPlatformErrorÚDistutilsExecError)ÚDEBUG)ÚlogÚdarwinéc
Csxt|ƒ}t d |¡¡|r dS|r@t|dƒ}|dk    r@||d<|dk    rL|nttjƒ}tj    dkrät
dkršddl m }|  d¡p€da
t
ršdd    „t
 d
¡Dƒat
rätj dt
¡}td d    „| d
¡DƒkrØd |t
f}t|ƒ‚|j|d z tj||d}    |     ¡|    j}
WnJtk
rN} z*ts&|d}td|| jdfƒ| ‚W5d} ~ XYnX|
rttsd|d}td||
fƒ‚dS)aRun another program, specified as a command list 'cmd', in a new process.
 
    'cmd' is just the argument list for the new process, ie.
    cmd[0] is the program to run and cmd[1:] are the rest of its arguments.
    There is no way to run a program with a name different from that of its
    executable.
 
    If 'search_path' is true (the default), the system's executable
    search path will be used to find the program; otherwise, cmd[0]
    must be the exact path to the executable.  If 'dry_run' is true,
    the command will not actually be run.
 
    Raise DistutilsExecError if running the program fails in any way; just
    return on success.
    ú Nrr)Ú    sysconfigÚMACOSX_DEPLOYMENT_TARGETÚcSsg|] }t|ƒ‘qS©©Úint©Ú.0Úxr r úRD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\setuptools/_distutils/spawn.pyÚ
<listcomp>=szspawn.<locals>.<listcomp>Ú.cSsg|] }t|ƒ‘qSr r rr r rrCszF$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configure)r
)Úenvzcommand %r failed: %séÿÿÿÿz#command %r failed with exit code %s)ÚlistrÚinfoÚjoinÚfind_executableÚdictÚosÚenvironÚsysÚplatformÚ _cfg_targetÚ    distutilsr    Úget_config_varÚsplitÚ_cfg_target_splitÚgetrÚupdateÚ
subprocessÚPopenÚwaitÚ
returncodeÚOSErrorrrÚargs) ÚcmdÚ search_pathÚverboseÚdry_runrÚ
executabler    Ú
cur_targetÚmy_msgÚprocÚexitcodeÚexcr r rÚspawnsZ 
 ÿÿþ 
ÿÿ
ÿr7c    CsÊtj |¡\}}tjdkr*|dkr*|d}tj |¡r:|S|dkr†tj dd¡}|dkr†zt d¡}Wnt    t
fk
r„tj }YnX|sŽdS|  tj ¡}|D]&}tj ||¡}tj |¡rž|SqždS)zÚTries to find 'executable' in the directories listed in 'path'.
 
    A string listing directories separated by 'os.pathsep'; defaults to
    os.environ['PATH'].  Returns the complete filename or None if not found.
    Úwin32z.exeNÚPATHÚCS_PATH)rÚpathÚsplitextrrÚisfilerr%ÚconfstrÚAttributeErrorÚ
ValueErrorÚdefpathr#Úpathsepr)r1r;Ú_ÚextÚpathsÚpÚfr r rr[s(    
r)rrrN)N)Ú__doc__rrr'Údistutils.errorsrrÚdistutils.debugrr!rrr r$r7rr r r rÚ<module>s  
 
D