/snap/core18/2999/usr/lib/python3.6/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-36.pyc65250644editdlrm
bcppcompiler.cpython-36.pyc64790644editdlrm
ccompiler.cpython-36.pyc333450644editdlrm
cmd.cpython-36.pyc149860644editdlrm
config.cpython-36.pyc34850644editdlrm
core.cpython-36.pyc68010644editdlrm
cygwinccompiler.cpython-36.pyc85060644editdlrm
debug.cpython-36.pyc1860644editdlrm
dep_util.cpython-36.pyc27020644editdlrm
dir_util.cpython-36.pyc61770644editdlrm
dist.cpython-36.pyc342110644editdlrm
errors.cpython-36.pyc54720644editdlrm
extension.cpython-36.pyc69480644editdlrm
fancy_getopt.cpython-36.pyc106510644editdlrm
filelist.cpython-36.pyc98630644editdlrm
file_util.cpython-36.pyc58950644editdlrm
log.cpython-36.pyc22970644editdlrm
msvc9compiler.cpython-36.pyc174420644editdlrm
msvccompiler.cpython-36.pyc145660644editdlrm
spawn.cpython-36.pyc49910644editdlrm
sysconfig.cpython-36.pyc126100644editdlrm
text_file.cpython-36.pyc84560644editdlrm
unixccompiler.cpython-36.pyc69930644editdlrm
util.cpython-36.pyc155210644editdlrm
version.cpython-36.pyc73520644editdlrm
versionpredicate.cpython-36.pyc50810644editdlrm
_msvccompiler.cpython-36.pyc135600644editdlrm
__init__.cpython-36.pyc3760644editdlrm
Edit: /snap/core18/2999/usr/lib/python3.6/distutils/__pycache__/sysconfig.cpython-36.pyc (12610B)
3 ] T @sdZddlZddlZddlZddlZddlZddlmZejj ej Z ejj ej Z ejj ejZejj ejZdejkrejjejdZnejjejjejZejdkrejjd,rejjejjeZd d Zeed dZerejdkrejjd-rejjejjeZd d ZeZdZyes:ej ZWne!k rRYnXddZ"d.ddZ#d/ddZ$ddZ%ddZ&ddZ'd0ddZ(ej)dZ*ej)dZ+ej)dZ,d1d d!Z-d"d#Z.da/d$d%Z0d&d'Z1d(d)Z2d*d+Z3dS)2aProvide access to Python's configuration information. The specific configuration variables available depend heavily on the platform and configuration. The values may be retrieved using get_config_var(name), and the list of variables is available via get_config_vars().keys(). Additional convenience functions are also available. Written by: Fred L. Drake, Jr. Email: N)DistutilsPlatformErrorZ_PYTHON_PROJECT_BASEnt\pcbuild\win32\pcbuild\amd64cCs.x(dD] }tjjtjj|d|rdSqWdS)N Setup.dist Setup.localZModulesTF)rr)ospathisfilejoin)dfnr)/usr/lib/python3.6/distutils/sysconfig.py_is_python_source_dir*s rZ_homecCstr ttSttS)N) _sys_homer project_baserrrr _python_build3srcCsdtjddS)zReturn a string containing the major and minor Python version, leaving off the patchlevel. Sample return values could be '1.5' or '2.2'. z%d.%dN)sys version_inforrrrget_python_versionEsrcCs|dkr|rtpt}tjdkrtrL|r.tp,tStjjt dd}tjj |Sdt t }t rv|rvddl }|jdStjj|d|Stjd krtjj|dStd tjdS) aReturn the directory containing installed Python header files. If 'plat_specific' is false (the default), this is the path to the non-platform-specific header files, i.e. Python.h and so on; otherwise, this is the path to platform-specific header files (namely pyconfig.h). If 'prefix' is supplied, use it instead of sys.base_prefix or sys.base_exec_prefix -- i.e., ignore 'plat_specific'. NposixsrcdirZIncludepythonrZ platincludeZincluderzFI don't know where Python installs its C header files on platform '%s')BASE_EXEC_PREFIX BASE_PREFIXr name python_buildrrr r get_config_varnormpathr build_flags sysconfigZget_pathr) plat_specificprefixZincdirZ python_dirr$rrrget_python_incMs$       r'cCs| ptjj|dk}|dkr<|r0|r*tp,t}n |r8tp:t}tjdkrtjj|ddt }|rd|S|rdtj krdtj krd t j krt j t jkrtjj|dd d Stjj|d Sntj d} dtj kr^| dtj d}n | d| }|d|}|j|||d|||||d||_dS)zDo any platform-specific customization of a CCompiler instance. Mainly needed on Unix, so we can plug in the information that varies across Unices and is stored in Python's Makefile. ZunixdarwinZCUSTOMIZED_OSX_COMPILERrNTrueZCCZCXXZOPTCFLAGSZCCSHAREDZLDSHAREDZ SHLIB_SUFFIXZARZARFLAGSZCONFIGURE_CPPFLAGSZCONFIGURE_CFLAGSZCONFIGURE_LDFLAGSz *-4.[0-8]z-fstack-protector-strongz-fstack-protectorZCPPz -ELDFLAGS CPPFLAGS)Z preprocessorcompilerZ compiler_soZ compiler_cxxZ linker_soZ linker_exearchiver)Z compiler_typerplatformr! _osx_supportcustomize_compiler _config_varsget_config_varsr r, startswithlenfnmatchfilterreplaceZset_executablesZshared_lib_extension)r7r:ZccZcxxZoptZcflagsZccsharedZldsharedZ shlib_suffixZarZar_flagsZconfigure_cppflagsZconfigure_cflagsZconfigure_ldflagsZnewccZcppr8Zcc_cmdrrrr;sx     "                             r;cCsDtr,tjdkr"tjjtptd}q6tp(t}n tdd}tjj|dS)z2Return full pathname of installed pyconfig.h file.rZPCr)r%z pyconfig.h)r r rr r rrr')Zinc_dirrrrget_config_h_filenames    rCcCs\trtjjtptdStddd}djtt }t t j drL|dt j j 7}tjj||dS)zAReturn full pathname of installed Makefile from the Python build.ZMakefilerr)r%r/z config-{}{} _multiarchz-%s)r r r r rrr0formatrr#hasattrrimplementationrD)Zlib_dirZ config_filerrrget_makefile_filenames  rHc Cs|dkr i}tjd}tjd}xx|j}|s0P|j|}|rz|jdd\}}y t|}Wntk rnYnX|||<q"|j|}|r"d||jd<q"W|S)zParse a config.h-style file. A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary. Nz"#define ([A-Z][A-Za-z0-9_]+) (.*) z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/ rrr)recompilereadlinematchgroupint ValueError)fpgZ define_rxZundef_rxlinemnvrrrparse_config_hs(      rVz"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)z\$\(([A-Za-z][A-Za-z0-9_]*)\)z\${([A-Za-z][A-Za-z0-9_]*)}c Csddlm}||ddddd}|dkr*i}i}i}x|j}|dkrFPtj|}|r4|jdd\}} | j} | jdd } d | kr| ||<q4y t| } Wn$t k r| jdd ||<Yq4X| ||<q4Wd} x|rxt |D]} || } t j | pt j | }|rx|jd}d}||kr2t||}n||krBd}nx|tjkrZtj|}n`|| kr| jdr| dd| krd }n$d||krd}nt|d|}n d ||<}|r~| |jd}| d|j||} d |kr| || <nzy t| } Wn"t k r*| j|| <Yn X| || <|| =| jdr~| dd| kr~| dd} | |kr~| || <q|| =qWqW|jx.|jD]"\}} t| tr| j||<qW|j||S)zParse a Makefile-style file. A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary. r)TextFilersurrogateescape)Zstrip_commentsZ skip_blanksZ join_lineserrorsNrz$$r$r3r4r6TFZPY_)r3r4r6)Zdistutils.text_filerWrK _variable_rxrLrMstriprBrNrOlist _findvar1_rxsearch _findvar2_rxstrr r,r>endstartcloseitems isinstanceupdate)rrQrWrPZdoneZnotdonerRrSrTrUZtmpvZrenamed_variablesrvaluefounditemZafterkrrrparse_makefile4s                       rmcCsZxTtj|ptj|}|rP|j\}}|d||j|jd||d}qPqW|S)aExpand Makefile-style variables -- "${foo}" or "$(foo)" -- in 'string' according to 'vars' (a dictionary mapping variable names to values). Variables not present in 'vars' are silently expanded to the empty string. The variable values in 'vars' should not contain further variable expansions; if 'vars' is the output of 'parse_makefile()', you're fine. Returns a variable-expanded version of 's'. rrN)r_r`raspangetrM)svarsrSZbegrcrrrexpand_makefile_varss *rrc CsVtjjddjtjtjttjddd}t |t t dgd}|j }ia t j|dS) z7Initialize the module as appropriate for POSIX systems.Z_PYTHON_SYSCONFIGDATA_NAMEz+_sysconfigdata_{abi}_{platform}_{multiarch}rDr)Zabir9Z multiarchbuild_time_varsrN)r r,rorErabiflagsr9getattrrG __import__globalslocalsrsr<rh)rZ_temprsrrr _init_posixsrycCs~i}tddd|d<tddd|d<tdd|d<tjd|d<d |d <tjd d |d <tjjtjj t j |d<|a dS)z+Initialize the module as appropriate for NTrr)r%r/ZLIBDESTZ BINLIBDEST)r%Z INCLUDEPY EXT_SUFFIXz.exeZEXE.rZVERSIONZBINDIRN) r0r'_impextension_suffixesrrBr r dirnameabspathr executabler<)rQrrr_init_ntsrcGs^tdkr(tjdtj}|r(|niattd<ttd<tjd}|dk rV|td<tjdt}tjdkrtrtj j t }tj j ||}ntj j t }tj j tj j|td<totjdkr t}tj jtd o|tjkr tj j |td}tj j|td<tjd kr(d dl}|jt|rVg}x|D]}|jtj|q8W|StSdS) aWith no arguments, return a dictionary of all configuration variables relevant for the current platform. Generally this includes everything needed to build extensions and install both pure modules and extensions. On Unix, this means every variable defined in Python's installed Makefile; on Windows it's a much smaller set. With arguments, return a list of values that result from looking up each argument in the configuration variable dictionary. NZ_init_r& exec_prefixrzSOrrr1r)r<rwror rr+r*rr r r~rHr rr"isabsgetcwdrr9r:Zcustomize_config_varsappend)argsfuncrrbaser:Zvalsrrrrr=s@       r=cCs*|dkrddl}|jdtdtj|S)zReturn the value of a single variable using the dictionary returned by 'get_config_vars()'. Equivalent to get_config_vars().get(name) rrNz SO is deprecated, use EXT_SUFFIXr)warningswarnDeprecationWarningr=ro)rrrrrr!&sr!)rr)rr)rN)rrN)N)N)4__doc__r|r rIrr@rYrr r"r&r+rr*r.rbase_exec_prefixrr,rrr~rrlowerendswithrrurrr r#rtAttributeErrorrr'r0r;rCrHrVrJr\r_rarmrrr<ryrr=r!rrrr s\      & .X      jJ