python (3.12.0)
ˑeU d Z ddlZddlZddlZg dZdZdZdZddZddZ d Z
dad
Zda
d Zd Zd
Zdad Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zy)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 }|j t j }t j j | \ }}t j dk( r
|dk7 r| dz } t j j | sK|D ]E }t j j || }t j j | sC|c S y| 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.12.0/bootstrap/lib/python3.12/_osx_support.py_find_executabler) s |zz&!JJrzz"E ,ID#cVm&(
77>>*% AQ
+Aww~~a
c ddl } ddl}|j }|j | 5 }|r| d|j d}n| d|j d}t j | s-|j j d j ndcddd S # t $ r$ t dt j d }Y w xY w# 1 sw Y yxY w)
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>