a  ze~T@sdZddlZddlZddlZddlZddlmZdejvZej ej Z ej ej Zej ejZej ejZdejvrej ejdZn&ejrej ej ejZneZddZeed dZejd krd d ZeeZeeZd dZeZdZ zes ej!Z Wne"y"Yn0ddZ#d-ddZ$d.ddZ%ddZ&ddZ'ddZ(d/ddZ)e*dZ+e*dZ,e*d Z-d0d!d"Z.d#d$Z/da0d%d&Z1d'd(Z2d)d*Z3d+d,Z4dS)1aProvide 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__pypy__Z_PYTHON_PROJECT_BASEcCs,dD]"}tjtj|d|rdSqdS)N)Setupz Setup.localModulesTF)ospathisfilejoin)dfnr a/opt/bitninja-python-dojo/embedded/lib/python3.9/site-packages/setuptools/_distutils/sysconfig.py_is_python_source_dir,sr_homentcCs0|r,tj|tjtjtdr,tS|S)NZPCbuild)rrnormcase startswithr PREFIX)r r r r _fix_pcbuild5s rcCstr ttSttS)N) _sys_homer project_baser r r r _python_build=srcCsdtjddS)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_infor r r r get_python_versionQsrcCs|dur|rtpt}tjdkrtr:tjdkr:tj|dSt rh|rJt pHt Stjt dd}tj |Strpdnd}|tt}tj|d|Stjd krt rtj|dtjjtj|d Stj|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'. NposixincludesrcdirIncludepypypythonrPCzFI don't know where Python installs its C header files on platform '%s')BASE_EXEC_PREFIX BASE_PREFIXrnameIS_PYPYrrrr python_buildrrget_config_varnormpathr build_flagspathsepr) plat_specificprefixincdirimplementation python_dirr r r get_python_incYs0       r5cCstrBtjdkrB|durt}|r4tj|dtjdStj|dS|durh|r\|rVtpXt }n |rdt pft}tj dkr|sz|rt tdd}nd}trd nd }tj|||t }|r|Stj|dSn|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. N_init_r1 exec_prefixrSOr"rrAr)r\rrarr)rr:r*rr+rrrxr rr-isabsgetcwdrrYrZcustomize_config_varsappend)argsfuncrr"baserZvalsr)r r r r]sD       r]cCs*|dkrddl}|dtdt|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]ra)r)rr r r r,:sr,)rN)rrN)N)N)5__doc__rrryrrrbuiltin_module_namesr*rr-r1rrr: base_prefixr(base_exec_prefixr'r^rrrrrrr;rr)rrr+r.rAttributeErrorrr5r?r[rprxrrzrrrrrr\rrr]r,r r r r s\        + 8K      jK