python (3.11.7)
eU d Z ddlZddlZddlZg dZdZdZdZddZdd Z d
Z
dad Zda
d Zd
Zd Zdad Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd ZdS )zShared OS X support functions. N)compiler_fixupcustomize_config_varscustomize_compilerget_platform_osx)
CFLAGSLDFLAGSCPPFLAGS
BASECFLAGS BLDSHAREDLDSHAREDCCCXX PY_CFLAGS
PY_LDFLAGSPY_CPPFLAGSPY_CORE_CFLAGSPY_CORE_LDFLAGS)r r r
r _OSX_SUPPORT_INITIAL_c |t j d }| t j }t j | \ }}t j dk r|dk r| dz } t j | sJ|D ]E}t j || }t j | r|c S FdS | S )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)
osenvironsplitpathseppathsplitextsysplatformisfilejoin)
executabler pathsbaseextpfs @/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/_osx_support.py_find_executabler) s |z&!JJrz""E ,,ID#cVmm&(
7>>*%% AQ
++Aw~~a
t Fc ddl } ddl}| }n4# t $ r' t dt j d }Y nw xY w| | 5 }|r| d|j d}n
| d|j d}t j | s9|
d ndcddd S # 1 swxY w Y dS )
z0Output from successful command execution or Noner Nz/tmp/_osx_support.zw+bz >'z' 2>&1z 2>/dev/null >''utf-8)
contextlibtempfileNamedTemporaryFileImportErroropenr getpidclosingnamesystemreaddecodestrip)
commandstringcapture_stderrr. r/ fpcmds r( _read_outputr>