File "spawn.cpython-34.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python34/lib64/python3.4/distutils/__pycache__/spawn.cpython-34.pyc
File size: 5.36 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


i fZ@sdZddlZddlZddlmZmZddlmZddlm	Z	dddddZ
d	d
ZdddddZej
d
krddlmZdadandddddZdddZdS)zdistutils.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)DistutilsPlatformErrorDistutilsExecError)DEBUG)logcCsmt|}tjdkr1t||d|n8tjdkrVt||d|ntdtjdS)aRun 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.
    posixdry_runntz1don't know how to spawn programs on platform '%s'N)listosname_spawn_posix	_spawn_ntr)cmdsearch_pathverboserr4/opt/alt/python34/lib64/python3.4/distutils/spawn.pyspawnsrcCs>x7t|D])\}}d|kr
d|||<q
q
W|S)zQuote command-line arguments for DOS/Windows conventions.

    Just wraps every argument which contains blanks in double quotes, and
    returns a new argument list.
     z"%s")	enumerate)argsiargrrr_nt_quote_args+srcCs	|d}t|}|r1t|p+|}ntjdj|g|dd|sytjtj||}WnQtk
r}z1t	s|}nt
d||jdfWYdd}~XnX|dkrt	s|}nt
d||fqndS)Nrrrzcommand %r failed: %sz%command %r failed with exit status %d)rfind_executablerinfojoinrspawnvP_WAITOSErrorrrr)rrrr
executablercexcrrrr;s$
'	-	rdarwin)	sysconfigcCsztjdj||r dS|d}|r9tjp?tj}d}tjdkr/tdkrt	j
dpudatrddtjdDaqntr/tj
jdt}td	d|jdDkrd
|tf}t|nttj
d|}|r tjp&tj}q/ntj}	|	dkry0|dkrf|||n||||Wn^tk
r}
z>ts|}ntjjd||
jftjdWYdd}
~
XnXts|}ntjjd
|tjdnkxhytj|	d\}	}Wnutk
r}zUddl}
|j|
jkrcwntsr|}ntd||jdfWYdd}~XnXtj|rts|}ntd|tj |fqtj!|r8tj"|}|dkrdSts|}ntd||fqtj#|rMqqts\|}ntd||fqWdS)Nrrr%MACOSX_DEPLOYMENT_TARGETcSsg|]}t|qSr)int).0xrrr
<listcomp>es	z _spawn_posix.<locals>.<listcomp>.cSsg|]}t|qSr)r))r*r+rrrr,ks	zF$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configurezunable to execute %r: %s
rz(unable to execute %r for unknown reasonszcommand %r failed: %sz"command %r terminated by signal %dz%command %r failed with exit status %dz1unknown error executing %r: termination status %dr)$rrrrexecvpexecvsysplatform_cfg_targetr&get_config_varsplit_cfg_target_splitenvirongetrdictexecvpeexecveforkr!rstderrwritestrerror_exitwaitpiderrnoZEINTRrrWIFSIGNALEDWTERMSIG	WIFEXITEDWEXITSTATUS
WIFSTOPPED)rrrrr"Zexec_fnenvZ
cur_targetZmy_msgpideZstatusr$rAZexit_statusrrrr
Xs
""
		 		-			r
cCs|dkrtjd}n|jtj}tjj|\}}tjdkrn|dkrn|d}ntjj|sx9|D]1}tjj	||}tjj|r|SqWdS|SdS)zTries 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.
    NPATHwin32z.exe)
rr6r4pathseppathsplitextr0r1isfiler)r"rMpathsbaseZextpfrrrrs

r)__doc__r0rZdistutils.errorsrrZdistutils.debugrZ	distutilsrrrrr1r&r2r5r
rrrrr<module>s	T