a0bi
X S r SSKrSSKrSSKrSSKJr SSKJr SSKJ r S S jr
S
S jrg)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 )DistutilsExecError)DEBUG)logc [ U 5 n [ R " [ R " U 5 5 U( a gU( a [ U S 5 nUb XPS' Ub UO[
[ R 5 n[ R S:X a SSKJnJ
n U" 5 nU( a XU' [ R " XS9n U R 5 U R n
U
( a* [$ ( d U S n [' SR) X
5 5 eg! [" a= n[$ ( d U S n [' SR) XR* S 5 5 UeSnAff = f) ac 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.
Nr darwin)MACOSX_VERSION_VARget_macosx_target_ver)envzcommand {!r} failed: {}z%command {!r} failed with exit code {})listr info
subprocesslist2cmdlinefind_executabledictosenvironsysplatformdistutils.utilr r
Popenwait
returncodeOSErrorr r formatargs)cmdsearch_pathverbosedry_runr
executabler r
macosx_target_verprocexitcodeexcs ڔ/builddir/build/BUILDROOT/alt-python313-setuptools-69.0.2-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/setuptools/_distutils/spawn.pyspawnr( s $ s)CHHZ
$
$S
)*$SV,
!F#d2::&6C
||xL13&7"# - ?? ua&C 3::3I
ua&C %,,S((2,?
s '0D
E8EEc [ R R U 5 u p#[ R S:X a US:w a U S- n [ R R U 5 ( a U $ Uc: [ R R SS5 nUc [ R " S5 nU( d gUR [ R 5 nU HJ n[ R R XP5 n[ R R U5 ( d MH Us $ g! [ [ 4 a [ R n Nf = f)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.
win32z.exeNPATHCS_PATH)r pathsplitextr r isfiler getconfstrAttributeError
ValueErrordefpathsplitpathsepjoin)r" r- _extpathspfs r' r r K s WW
j
)FAcVm&(
ww~~j!!|zz~~fd+<
"zz), JJrzz"E
GGLL'
77>>!H
! #J/
"zz
"s D D?>D?)r r r N)N)__doc__r r r errorsr debugr _logr r( r r'