tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
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
[\¬Qc@sÙdZdZddlZddlZddlmZmZddlmZdddd„Z    d    „Z
dddd
„Z dddd „Z ej d kr·dd lmZdadandddd„Zdd„ZdS(sì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.
s$Id$iÿÿÿÿN(tDistutilsPlatformErrortDistutilsExecError(tlogiicCsƒtjdkr%t||d|ƒnZtjdkrJt||d|ƒn5tjdkrot||d|ƒntdtj‚dS(s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.
    tposixtdry_runtnttos2s1don't know how to spawn programs on platform '%s'N(tostnamet _spawn_posixt    _spawn_ntt
_spawn_os2R(tcmdt search_pathtverboseR((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/spawn.pytspawnscCs>x7t|ƒD])\}}d|kr d|||<q q W|S(sªQuote command-line arguments for DOS/Windows conventions.
 
    Just wraps every argument which contains blanks in double quotes, and
    returns a new argument list.
    t s"%s"(t    enumerate(targstitarg((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/spawn.pyt_nt_quote_args+s  cCsÒ|d}t|ƒ}|r1t|ƒp+|}ntjdj|g|dƒƒ|sÎytjtj||ƒ}Wn.tk
r¤}t    d|d|df‚nX|dkrÎt    d|d|f‚qÎndS(NiRiscommand '%s' failed: %siÿÿÿÿs'command '%s' failed with exit status %d(
Rtfind_executableRtinfotjoinRtspawnvtP_WAITtOSErrorR(R R RRt
executabletrctexc((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/spawn.pyR
;s
 ! cCsá|d}|r%t|ƒp|}ntjdj|g|dƒƒ|sÝytjtj||ƒ}Wn.tk
r˜}td|d|df‚nX|dkrÝtj    d|d|fƒtd|d|f‚qÝndS(NiRiscommand '%s' failed: %siÿÿÿÿs'command '%s' failed with exit status %d(
RRRRRRRRRtdebug(R R RRRRR((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/spawn.pyR Os
! tdarwin(t    sysconfigc
Cstjdj|ƒƒ|r dS|r/tjp5tj}|d|g}tjdkrTtdkr¬t
j dƒpudatr¬gtj dƒD]}t |ƒ^qŽaq¬ntrTtjjdtƒ}tg|j dƒD]}t |ƒ^qÚkrd|tf}t|ƒ‚nttjd|ƒ}    |r8tjp>tj}|j|    ƒqTntjƒ}
|
dkræy||ŒWnAtk
r½} tjjd|d| jfƒtjd    ƒnXtjjd
|dƒtjd    ƒnxytj|
dƒ\}
} WnRtk
rY} d dl}| j|jkr;qéntd |d| d f‚nXtj | ƒrŒtd |dtj!| ƒf‚qétj"| ƒrÔtj#| ƒ}|dkrºdStd|d|f‚qétj$| ƒréqéqétd|d| f‚qédS(NRiR tMACOSX_DEPLOYMENT_TARGETtt.sF$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configuresunable to execute %s: %s
is(unable to execute %s for unknown reasonsiÿÿÿÿscommand '%s' failed: %ss$command '%s' terminated by signal %ds'command '%s' failed with exit status %ds3unknown error executing '%s': termination status %d(%RRRRtexecvptexecvtsystplatformt _cfg_targettNoneR!tget_config_vartsplittintt_cfg_target_splittenvirontgetRtdicttexecvpetexecvetappendtforkRtstderrtwritetstrerrort_exittwaitpidterrnotEINTRRt WIFSIGNALEDtWTERMSIGt    WIFEXITEDt WEXITSTATUSt
WIFSTOPPED(R R RRtexec_fnt    exec_argstxt
cur_targettmy_msgtenvtpidtetstatusRR;t exit_status((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/spawn.pyR    hsp ..           cCs×|dkrtjd}n|jtjƒ}tjj|ƒ\}}tjdksdtj    dkr}|dkr}|d}ntjj
|ƒsÏx9|D]1}tjj ||ƒ}tjj
|ƒr–|Sq–WdS|SdS(sÚ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.
    tPATHtwin32Rs.exeN( R*RR/R,tpathseptpathtsplitextR'R(RtisfileR(RROtpathstbasetexttptf((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/spawn.pyR±s *  (t__doc__t __revision__R'Rtdistutils.errorsRRt    distutilsRRRR
R R(R!R*R)R.R    R(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/distutils/spawn.pyt<module>s          I