PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  lYJ @sdZddlZddlZddlZddddgZd0Zd1ZdZdddZddZ ddZ da ddZ ddZ ddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,dZd-dZd.dZd/dZdS)2zShared OS X support functions.Ncompiler_fixupcustomize_config_varscustomize_compilerget_platform_osxCFLAGSLDFLAGSCPPFLAGS BASECFLAGS BLDSHAREDLDSHAREDCCCXX PY_CFLAGS PY_LDFLAGS PY_CPPFLAGSPY_CORE_CFLAGSZ_OSX_SUPPORT_INITIAL_cCs|dkrtjd}|jtj}tjj|\}}tjdkrh|dkrh|d}tjj|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) osenvironsplitpathseppathsplitextsysplatformisfilejoin) executablerpathsbaseextpfr$+/opt/python35/lib/python3.5/_osx_support.py_find_executables    r&cCsddl}yddl}|j}Wn.tk rXtdtjfd}YnX|j|F}d||jf}tj |s|j j dj SdSWdQRXdS)z0Output from successful command execution or NonerNz/tmp/_osx_support.%szw+bz%s 2>/dev/null >'%s'zutf-8) contextlibtempfileNamedTemporaryFile ImportErroropenrgetpidclosingnamesystemreaddecodestrip)Z commandstringr'r(fpcmdr$r$r% _read_output7s   r5cCs#t|p"td|fp"dS)z0Find a build tool on current path or using xcrunz/usr/bin/xcrun -find %s)r&r5)Ztoolnamer$r$r%_find_build_toolJs r7cCstdkrdaytd}Wntk r6YnbXztjd|j}Wd|jX|dk rdj|jdj dddatS)z*Return the OS X system version as a stringNr6z0/System/Library/CoreServices/SystemVersion.plistz=ProductUserVisibleVersion\s*(.*?).) _SYSTEM_VERSIONr+OSErrorresearchr0closergroupr)r#mr$r$r%_get_system_versionSs     +rBcCs1x*t|D]}|jtr ||=q WdS)z-Remove original unmodified values for testingN)list startswith_INITPRE) _config_varskr$r$r%_remove_original_valuesqsrHcCsJ|j|d}||kr<t||kr<||t|<|||sz-_supports_universal_builds..r8r6 F)rPrQ)rBtupler ValueErrorbool)Z osx_versionr$r$r%_supports_universal_buildss &  rUcCs5dtjkr|S|djd}}t|sFtd}nXtjj|jdrtd|j ddf}|rd|krtd}|st d ||kr1xrt D]j}||kr|tjkr||j}|d kr|n|d |d/dev/nullrVz'"'"'z-arch\s+ppc\w*\srW) rrr=r>r/rYr_r`rK)rFstatusrJr^r$r$r%_remove_unsupported_archss   rdcCsdtjkrtjd}xgtD]_}||kr#d||kr#||}tjdd|}|d|}t|||q#W|S)z2Allow override of all archs with ARCHFLAGS env var ARCHFLAGSz-archz -arch\s+\w+\srW)rrr_r=r`rK)rFZarchrJr^r$r$r%_override_all_archss   rfcCs|jdd}tjd|}|dk r|jd}tjj|sxXtD]P}||krX|tjkrX||}tj dd|}t |||qXW|S)z+Remove references to any SDKs not availablerr6z-isysroot\s+(\S+)Nr9z-isysroot\s+\S+(?:\s|$)rW) rIr=r>r@rrexistsr_rr`rK)rFcflagsrAZsdkrJr^r$r$r%_check_for_unavailable_sdks    ric Csd}}t|}ts,d}}nd|k}d|k}|sYdtjkrx>y$|jd}|||d=Wq\tk rPYq\Xq\Wdtjkr| r|tjdj}|rx>y$|jd}|||d=Wqtk r PYqXqWd}d|kr@|jd}||d}n)d|kri|jd}||d}|rtjj| rd d l m }|j d ||j d |S) ae This function will strip '-isysroot PATH' and '-arch ARCH' from the compile flags if the user has specified one them in extra_compile_flags. This is needed because '-arch ARCH' adds another architecture to the build, without a way to remove an architecture. Furthermore GCC will barf if multiple '-isysroot' arguments are present. FTz-archz -isysrootrer:Nr9r)logz4Compiling with an SDK that doesn't seem to exist: %sz$Please check your Xcode installation) rCrUrrindexrSrrisdirZ distutilsrjwarn)Z compiler_soZcc_argsZ stripArchZ stripSysrootrkZsysrootidxrjr$r$r%r0sF              cCs+tst|t|t||S)aCustomize Python build configuration variables. Called internally from sysconfig with a mutable mapping containing name/value pairs parsed from the configured makefile used to build this interpreter. Returns the mapping updated as needed to reflect the environment in which the interpreter is running; in the case of a Python from a binary installer, the installed environment may be very different from the build environment, i.e. different OS levels, different built tools, different available CPU architectures. This customization is performed whenever distutils.sysconfig.get_config_vars() is first called. It may be used in environments where no compilers are present, i.e. when installing pure Python dists. Customization of compiler paths and detection of unavailable archs is deferred until the first extension module build is requested (in distutils.sysconfig.customize_compiler). Currently called from distutils.sysconfig )rUrbrfri)rFr$r$r%rps     cCs"t|t|t||S)zCustomize compiler path and configuration variables. This customization is performed when the first extension module build is requested in distutils.sysconfig.customize_compiler). )r]rdrf)rFr$r$r%rs   c Cs|jdd}tp|}|p*|}|r|}d}|jtd|jdd}|ry0tdd|jddd D}Wqtk rd}YqXnd}|dkrd |jkrd }tjd|}tt t |}t |dkr(|d}q|dkr=d }q|d krRd}q|d!krgd}q|d"kr|d}q|d#krd}qtd|fnN|dkrt j d$krd}n*|d%krt j d&krd}nd}|||fS)'z Filter values for get_platform()MACOSX_DEPLOYMENT_TARGETr6Zmacosxrcss|]}t|VqdS)N)rL)rMrNr$r$r%rOsz#get_platform_osx..r8rr:rPrQz-archZfatz -arch\s+(\S+)r9i386ppcx86_64ZintelZfat3ppc64Zfat64 universalz%Don't know machine value for archs=%r PowerPCPower_Macintosh)rPr)rPr)rPrQ)rprq)rprr)rprqrr)rsrr)rprqrsrrl)rvrwl)rIrBrErRrrSr2r=findallsortedsetlenrmaxsize)rFosnamereleasemachineZmacverZ macreleaserhZarchsr$r$r%rsP   0                ) rrrr r r r r rrrr)r r r r )__doc__rr=r__all__r_r[rEr&r5r7r;rBrHrKrUr]rbrdrfrirrrrr$r$r$r%s<           >  (   @ )