Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.cpython-314.pyc175 linesDownload Raw Back to __pycache__
1+
2���i�q���Rt^RIt^RIt^RIt^RIHt.RYOtRR0tRRRRR	R3RRR
RRRRRRRR/RRRRRR4RRRRRRRRRRR/RRRRRR5RRRRRRRRRRR/R RRRR	R6RRR
RRRRRRRR/R!RRRRR7RRRRRRRRRRR//t]PR8Xd]R!,]R"&M]R ,]R"&R#t8R$t]!4RJt]'d:]R%RR&RR&R9R'RR'RR(RR)RR*/R+RR,RR,R10R-RR-RR.RR/RR*/R0RR1RR1R11R2RR2RR3RR/RR*//,tRZt
]PP4^,t]P"^,R4]P"^,2t]P"^,]P"^,2t]P(P+]P,4t]P(P+]P04t]P(P+]P44t]P8!4tRsR5sRt R6t!]PD'd-]P(PG]!!]PD44t$M]!!]PJ!44t$]&!]R7R4t']''d]'t$]PR8Xd)]!!]$4PQ]!!]R8244'd]t$R9]PR9d]!!]PRR9,4t$R[R:lt*]*!4t+]+'d*R\F"t,]],,t,],R,],R;&R<],R&R=],R&K$	A,R>t-R?t.R@t/RAt0RBt1RCt2RDt3REt4RFt5RGt6RHt7RIt8RJt9R[RKlt:RLt;RMt<RNt=]2!4RRO3RPlt>]2!4RRO3RQlt?RRt@RStARTtBRUtCRVtDRWtERXtFR#)]z-Access to Python's configuration information.N)�realpath�IPHONEOS_DEPLOYMENT_TARGET�MACOSX_DEPLOYMENT_TARGET�posix_prefix�stdlibzR{installed_base}/{platlibdir}/{implementation_lower}{py_version_short}{abi_thread}�12platstdlibzL{platbase}/{platlibdir}/{implementation_lower}{py_version_short}{abi_thread}�purelibzM{base}/lib/{implementation_lower}{py_version_short}{abi_thread}/site-packages�platlibzZ{platbase}/{platlibdir}/{implementation_lower}{py_version_short}{abi_thread}/site-packages�includezK{installed_base}/include/{implementation_lower}{py_version_short}{abiflags}�platincludezO{installed_platbase}/include/{implementation_lower}{py_version_short}{abiflags}�scriptsz13{base}/bin�dataz{base}�14posix_homez+{installed_base}/lib/{implementation_lower}z!{base}/lib/{implementation_lower}z/{installed_base}/include/{implementation_lower}�ntz{installed_base}/Libz15{base}/Libz{base}/Lib/site-packagesz{installed_base}/Includez{base}/Scripts�16posix_venv�nt_venv�venvc��R#)�Python�r��Lib\sysconfig\__init__.py�_get_implementationrms��rc	��\PPRR4pV'dV#\PPR\P4PR4^,pVR9dR#Rp\PR8Xd;\PPR4;'gRpV!V\44#\PR8Xd_\P'dIV!RR	\P\P^,R17\P^,24#V!RR4#)
�PYTHONUSERBASEN�_PYTHON_HOST_PLATFORM�-c�x�\PP\PP!V!4#�N)�os�path�18expanduser�join)�argss*r�joinuser�_getuserbase.<locals>.joinuser}s$���w�w�!�!�"�'�'�,�,��"5�6�6rr�APPDATA�~�darwin�Library�.z.local>�ios�tvos�wasi�vxworks�watchos�19emscripten)20r�environ�get�sys�platform�split�namer�21_framework�version_info)�env_base�system_namer$�bases    r�_getuserbaser<rs����z�z�~�~�.��5�H�����*�*�.�.�!8�#�,�,�G�M�M�c�R�ST�U�K��Q�Q��7�22�w�w�$���z�z�~�~�i�(�/�/�C����2�4�5�5�23�|�|�x��C�N�N�N���Y�����+�+�A�.�/�q��1A�1A�!�1D�0E�F�H�	H��C��"�"r�nt_userz2{userbase}/{implementation}{py_version_nodot_plat}z@{userbase}/{implementation}{py_version_nodot_plat}/site-packagesz:{userbase}/{implementation}{py_version_nodot_plat}/Includez:{userbase}/{implementation}{py_version_nodot_plat}/Scriptsz24{userbase}�25posix_userzL{userbase}/{platlibdir}/{implementation_lower}{py_version_short}{abi_thread}zQ{userbase}/lib/{implementation_lower}{py_version_short}{abi_thread}/site-packageszG{userbase}/include/{implementation_lower}{py_version_short}{abi_thread}z{userbase}/bin�osx_framework_userz%{userbase}/lib/{implementation_lower}z3{userbase}/lib/{implementation_lower}/site-packagesz;{userbase}/include/{implementation_lower}{py_version_short}r*Fc�@�\V4# \dTu#i;ir)r�OSError)r s&r�_safe_realpathrB�s%�����~��������s�26
�
��_homez\PCbuild�_PYTHON_PROJECT_BASEc���Ve^RIpVPR\^R7RFNp\PP\PP
\RV44'gKMR#	R#)NzThe check_home argument of sysconfig.is_python_build is deprecated and its value is ignored. It will be removed in Python 3.15.��27stacklevel�ModulesTF)�SetupzSetup.local)�warnings�warn�DeprecationWarningrr �isfiler"�
_PROJECT_BASE)�28check_homerJ�fns&  r�is_python_buildrQ�sa������
�
�5�
��	�	29�'��
�7�7�>�>�"�'�'�,�,�}�i��D�E�E��'�r�headersz{srcdir}/Includez{projectbase}/.c���VP!R/VB# \dHpTP!R/\PBuRp?# \d\	T4Rhi;iRp?ii;i)Nr)�format�KeyErrorrr1�AttributeError)�s�30local_vars�vars&& r�_subst_varsrZ�sa��5��x�x�%�*�%�%���5�	5��8�8�)�b�j�j�)�)���	5� �C�5�*��4�	5��5�s%��A&�A�A&�A�A!�!A&c�p�VP4pVP4Fwr4W29dK
W@V&K	R#r)�keys�items)�target_dict�31other_dict�target_keys�key�values&&   r�_extend_dictrcs6���"�"�$�K� �&�&�(�32����� �C��)rc��/pVf/p\V\44\PR8XdVRR/,p\V,P4Fcwr4\PR9d \PPV4p\PP\WA44W#&Ke	V#)Nr�33platlibdir�lib)�posixr)34rc�get_config_varsrr6�_INSTALL_SCHEMESr]r r!�normpathrZ)�scheme�vars�resrarbs&&   r�_expand_varsrns���35�C��|������(�)�	�w�w�$���|�U�+�+��&�v�.�4�4�6�36��
�7�7�o�%��G�G�&�&�u�-�E��7�7�#�#�K��$<�=���7��Jrc��\PR8Xd	RRRRRR/#\PR8Xd\P'd	RRRRRR/#RRRRRR	/#)37r�prefix�homer�userr=r(rr?r>)rr6r3r4r7rrr�_get_preferred_schemesrs"sq��	�w�w�$���d��L��I�38�	39�40�|�|�x��C�N�N�N��n��L��(�41�	42�	�.������rc��VR8Xd&\P\P8wdR#\4V,pV\9d\V:RV:R24hV#)rprz43 returned z., which is not a valid scheme on this platform)r3rp�base_prefixrsri�44ValueError)rarks& r�get_preferred_schemerw7sZ��45�h��3�:�:����8��
#�
%�c�
*�F�
�%�%���g�Z��z�*�
 �46�	47��Mrc��\R4#)rp)rwrrr�get_default_schemeryCs
����)�)rc�0�\PPR4;p'd!\PP	VR4#\48'd%\PP	\R4#\\R4'dR\\P2pMRp\\PR4'd%VR\PP2,
p\PP	\R4VR4#)	z Return the path of the Makefile.rD�Makefile�abiflagszconfig-�config�49_multiarchrr)rr1r2r r"�
_PYTHON_BUILDrN�hasattrr3�_PY_VERSION_SHORTr|�implementationr~�get_path)�50cross_base�config_dir_names  r�get_makefile_filenamer�Gs����Z�Z�^�^�$:�;�;�z�;��w�w�|�|�J�51�3�3��}��w�w�|�|�M�:�6�6��s�J���#�$5�#6�s�|�|�n�E��"���s�!�!�<�0�0��Q�s�1�1�<�<�=�>�>��
�7�7�<�<���*�O�Z�H�Hrc�H�V\P9dx^RIp^RIpVPP52P
W.4pVPPV4pVPPV4V\PV&\PV,#)�N)r3�modules�importlib.machinery�importlib.util�	machinery�53PathFinder�	find_spec�util�module_from_spec�loader�exec_module)r r6�	importlib�spec�modules&&   r�_import_from_directoryr�\su���3�;�;��"���"�"�-�-�7�7��f�E�����0�0��6��������'�"����D���;�;�t��rc	���\\PRR4p\PPRR\PR\PRV24#)r~��_PYTHON_SYSCONFIGDATA_NAME�_sysconfigdata_�_)�getattrr3r�rr1r2r|r4)�	multiarchs r�_get_sysconfigdata_namer�hsL����*�*�L�"�=�I�
�:�:�>�>�$�54�#�,�,��q�����a�	�{�C��rc���^RIp\4p\PP	R4pV'd\W!4pVP#VP
V4pVP#)r�N�_PYTHON_SYSCONFIGDATA_PATH)r�r�rr1r2r��
import_module�build_time_vars)r�r6r r�s    r�_get_sysconfigdatar�psY���"�$�D�
�:�:�>�>�6�7�D�37�
#�D�
/�F��!�!�!�>G�=T�=T�UY�=Z�F��!�!�!rc���\PR8wd\R4h\4pVR,\	\55RR48g;'gVR,\	\56RR48g#)zaIs the Python installation running from a different prefix than what was targetted when building?rgzKsysconfig._installation_is_relocated() is currently only supported on POSIXrprur��exec_prefix�base_exec_prefix)rr6�NotImplementedErrorr�r�r3)r
s r�_installation_is_relocatedr�zs_��	�w�w�'��!�"o�p�p���D��X��'�#�}�b�9�9�	G�	G��
��'�#�/A�2�"F�F�rc�F�VP\4V,4R#)z7Initialize the module as appropriate for POSIX systems.N)�updater�)rls&r�_init_posixr��s��	�K�K�"�$�t�+�,rc���^RIp^RIp\R4VR&\R4VR&\R4VR&VPVP	44RPVR	,'dR57MRVR,'dRMR34VR
&\
\PP\R4R44VR&\\R4'dWVP\P4p\PP\
V44VR&VR,VR&RVR&\VR&\PP!\
\P"44VR&RVR&R#)z+Initialize the module as appropriate for NTNr�LIBDESTr�58BINLIBDESTr59�	INCLUDEPYr��Py_GIL_DISABLED�t�Py_DEBUG�_d�ABIFLAGS�installed_base�libs�LIBDIR�	dllhandle�LIBRARY�	LDLIBRARYz.exe�EXE�VERSION�BINDIR�TZPATH)�_winapi�60_sysconfigr�r��config_varsr"rBrr �get_config_varr�r3�GetModuleFileNamer��basename�_PY_VERSION_SHORT_NO_DOT�dirname�61executable)rlr�r�r�s&   r�_init_non_posixr��s2�����x�(�D��O�!�,�/�D��� ��+�D���	�K�K�62�&�&�(�)��w�w��)�*�*�C����$�$�D�"�	63��D���$�B�G�G�L�L��@P�1Q�SY�$Z�[�D��N��s�K� � ��-�-�c�m�m�<�	��'�'�*�*�>�)�+D�E��Y�� ��O��[���D��K�.�D��O��W�W�_�_�^�C�N�N�%C�D�D��N��D��Nrc��Vf/p^RIpVPR4pVPR4pVP4pV'gV#VPV4pV'd8VP	^^4wrxV\649d\h\V4pW�V&KlVPV4pV'gK�^WP	^4&K� \dLCi;i)z�Parse a config.h-style file.65 66A dictionary containing name/value pairs is returned.  If an67optional dictionary is passed in as the second argument, it is68used instead of a new dictionary.69Nz"#define ([A-Z][A-Za-z0-9_]+) (.*)70z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/71)�re�compile�readline�match�group�_ALWAYS_STRrv�int)	�fprlr��	define_rx�undef_rx�line�m�n�vs	&&       r�parse_config_hr��s����|���
��72�73�@�A�I��z�z�C�D�H�74��{�{�}�����K�
�O�O�D�!����7�7�1�a�=�D�A�
���#�$�$���F����G����t�$�A��q�#$��W�W�Q�Z� ��
�
��
�s�7C	�	C�Cc���\'dB\PR8Xd&\PP	\75R4pM\76pM\
R4p\PP	VR4#)zReturn the path of pyconfig.h.r�PCrz77pyconfig.h)rrr6r r"rNr�)�inc_dirs r�get_config_h_filenamer��sJ���}�
�7�7�d�?��g�g�l�l�=�$�7�G�#�G��=�)��
�7�7�<�<���.�.rc�2�\\\44#)z,Return a tuple containing the schemes names.)�tuple�sortedrirrr�get_scheme_namesr��s����(�)�*�*rc��\#)z*Return a tuple containing the paths names.)�_SCHEME_KEYSrrr�get_path_namesr��s���rTc�B�V'd\W4#\V,#)z�Return a mapping containing an install scheme.78 79``scheme`` is the install scheme name. If not provided, it will80return the default scheme for the current platform.81)rnri)rkrl�expands&&&r�	get_pathsr��s����F�)�)���'�'rc�(�\WV4V,#)zSReturn a path corresponding to the scheme.82 83``scheme`` is the install scheme name.84)r�)r6rkrlr�s&&&&rr�r��s��85�V�6�*�4�0�0rc�8�/s\PP\P864p\PP\P4p\p\p\Pp\PR8Xdf\\4R\P9dB\R,p\R,p\R,p\R,p\R,pV\R&V\R&\\R&\\R	&\ \R87&V\R&V\R&V\R
&V\R&\"\R&\P$\R&\'4\R&\'4P)4\R&V\R&\P*P-RR4\R&\PR8XdS\/\4\P0\R&\PP3\4RR4\R&\6'd\94\R&\P;R4'dRMR\R&\P;R\"4p\PR8Xd{\<'dH\PP?\A44p\PP3We4pM'\PP?\A44p\CV4\R&\PDR 8Xd^R!I#pVPI\4R"s%R!# \dRpELi;i \dR\R&EL�i;i)#r�rgrD�host_prefix�host_exec_prefixr�rpr��88py_version�py_version_short�py_version_nodotr�r;�installed_platbase�platbase�projectbaserer��implementation_lowerr|r*�py_version_nodot_platr�VPATH�share�zoneinfor��userbaser�r��89abi_thread�srcdirr(NT)&�_CONFIG_VARSrr rjr3rpr��_BASE_PREFIX�_BASE_EXEC_PREFIXr|rVr6r�r1�_PY_VERSIONr�r�rNrer�lower�winver�replacer��_vpathr"�_PREFIX�_HAS_USER_BASEr<r2rr�r�rBr4�_osx_support�customize_config_vars�_CONFIG_VARS_INITIALIZED)rpr�rur�r|r�r;rs        r�_init_config_varsr�s����L�
�W�W�
�
�c�j�j�
)�F��'�'�"�"�3�?�?�3�K��K�(����<�<��90�w�w�'���L�!�!�R�Z�Z�/�!�-�0�F�&�'9�:�K�&�}�5�K�+�,>�?��#�J�/�H�91$�L���"-�L���!,�L���'8�L�#�$�'?�L�#�$�%0�L�!�"�!�L���)9�L�%�&�*�L���"/�L���!$���L���%8�%:�L�!�"�+>�+@�+F�+F�+H�L�'�(�'�L���3�03�92�93�0B�0B�3��0K��,�-�94�w�w�$����%� #�95�96��W��!#�����g�w�97�!K��X���~�$0�>��Z� �)5�(8�(8�9J�(K�(K��QS�L����
�
�h�
�
6�F�	�w�w�'���=��7�7�?�?�#8�#:�;�D��W�W�\�\�$�/�F��W�W�_�_�%:�%<�=�F�+�F�3�L����|�|�x����*�*�<�8� $���Q������@�3�02��,�-�3�s$�*M-�/'N�-
M>�=M>�N�Nc�|�\'d�\PP\P984p\PP\P4p\R,V8wg\R,V8wd%\;_uu_4Rs\4RRR4M*M)\;_uu_4\f\4RRR4V'd2.pVF'pVP\PV44K)	V#\# +'giLO;i +'giLb;i)aVWith no arguments, return a dictionary of all configuration99variables relevant for the current platform.100 101On Unix, this means every variable defined in Python's installed Makefile;102On Windows it's a much smaller set.103 104With arguments, return a list of values that result from looking up105each argument in the configuration variable dictionary.106rpr�FN)rrr rjr3rpr�r��_CONFIG_VARS_LOCKr�appendr2)r#rpr��valsr6s*    rrhrhTs��� �����!�!�#�*�*�-���g�g�&�&�s���7����!�V�+�|�M�/J�k�/Y�"�"�+0�(�!�#�#�"�0Z��
�107�#�!�#�
�����D��K�K��(�(��.�/������'#�"��108�
�s�
D�>D+�D(	�+D;	c�4�\4PV4#)z�Return the value of a single variable using the dictionary returned by109'get_config_vars()'.110 111Equivalent to get_config_vars().get(name)112)rhr2)r6s&rr�r�|s���� � ��&�&rc��\PR8Xd�R\PP	49dR#R\PP	49dR#R\PP	49dR#\P113#\PR8wg\
\R	4'g\P114#R115\P9d-\PR116,PR4wrpRpM]\P!4wrr5pVP	4PR
R4pVPRR4pVPR
R4pVR8Xg\P117R8Xd%Rp\R4pRRRRRRRRRRRR/V,pEMmVR8XdVRV2#VR,R8Xd^V^,R8�dOR p\V^,4^,118R!VR",2pR#R$R%R&/pVR!V\P,2,
pM�VR',R(8Xd^R)IHpV!4#VR*,R+8XdBR+p^RIpVP#R,4p	V	P%V4p119V120'dV121P'4pM�VR*,R-8Xd}\P122R.8XdF\)4P+R/R04p\P123p\P,P.pM"^RIpVP3\)4WV4wrpRP5\7\8\;RWV3444#)1a3Return a string that identifies the current platform.124 125This is used mainly to distinguish platform-specific build directories and126platform-specific built distributions.  Typically includes the OS name and127version and the architecture (as supplied by 'os.uname()'), although the128exact information included depends on the OS; on Linux, the kernel version129isn't particularly important.130 131Examples of returned values:132 133 134Windows:135 136- win-amd64 (64-bit Windows on AMD64, aka x86_64, Intel64, and EM64T)137- win-arm64 (64-bit Windows on ARM64, aka AArch64)138- win32 (all others - specifically, sys.platform is returned)139 140POSIX based OS:141 142- linux-x86_64143- macosx-15.5-arm64144- macosx-26.0-universal2 (macOS on Apple Silicon or Intel)145- android-24-arm64_v8a146 147For other non-POSIX platforms, currently just returns :data:`sys.platform`.r�amd64z	win-amd64z(arm)z	win-arm32z(arm64)z	win-arm64rg�unamerrN�/r�� r��android�ANDROID_API_LEVEL�aarch64�	arm64_v8a�arm�armeabi_v7a�armv7l�armv8l�i686�x86�x86_64�linux:N�N�sunos�5�solarisr*:�NNi����32bitl�����64bit:N�N�aix)�aix_platform:N�N�cygwinz[\d.]+r(r+rz13.0)rr6r3�versionr�r4r�r1�	partitionrr�r�r��maxsize�_aix_supportr&r�r�r�r�rhr2r�r~r�get_platform_osxr"�map�str�filter)�osnamer��machine�release�hostr)�bitnessr&r��rel_rer�rs            r�get_platformr7�s���4148�w�w�$���c�k�k�'�'�)�)���c�k�k�'�'�)�)������)�)�+�+���|�|��	�w�w�'����W�!5�!5��|�|���"�*�*�,��Z�Z�(?�@�J�J�3�O���7���35�(�(�*�/��g������'�'��R�0���/�/�#�s�+���/�/�#�s�+��
���c�l�l�i�7��� �!4�5��
�{��=��m��m��E��h�
149����150�7�	��(�!�G�9�%�%�	���w�	��1�:����F��W�Q�Z��1�,�-�Q�w�r�{�m�<�G�"�'�+>�w�G�G���7�3�;�;�/�0�1�1�G��	���u�	�-��~��	���x�	�������I�&���L�L��!����g�g�i�G��	���x�	��<�<�5� �%�'�+�+�,H�&�Q�G��\�\�F��(�(�3�3�G��'3�'D�'D�0?�0A�06��(J�$�F�W��8�8�C��V�D�6�G�*D�E�F�G�Grc��\#r)r�rrr�get_python_versionr9�s���rc�.�\\R4,#)r�)r�r�rrr�_get_python_version_abir;�s���~�l�;�;�;rc�D�^RIpVPR\^R7^RIpRpRpVP	W@4;'gVP	WP4pV'dHVP4wrxV^VVP
VP^44,WR,pKzV#)a�Expand Makefile-style variables -- "${foo}" or "$(foo)" -- in151'string' according to 'vars' (a dictionary mapping variable names to152values).  Variables not present in 'vars' are silently expanded to the153empty string.  The variable values in 'vars' should not contain further154variable expansions; if 'vars' is the output of 'parse_makefile()',155you're fine.  Returns a variable-expanded version of 's'.156Nz{sysconfig.expand_makefile_vars is deprecated and will be removed in Python 3.16. Use sysconfig.get_paths(vars=...) instead.rFz\$\(([A-Za-z][A-Za-z0-9_]*)\)z\${([A-Za-z][A-Za-z0-9_]*)})rJrKrLr��search�spanr2r�)	rWrlrJr��_findvar1_rx�_findvar2_rxr��beg�ends	&&       r�expand_makefile_varsrC�s�����M�M�	B���	���3�L�1�L���I�I�l�&�D�D�"�)�)�L�*D�������J�S��!�C��4�8�8�A�G�G�A�J�/�/�!�D�'�9�A���Hr)r�r�rhr�r�r�r�r7r9r�r�)rrrr	r157rr
r)rr)G�__doc__rr3�	threading�os.pathr�__all__r�rir6rr<rr�r)r5r�r8r�r�r rjrprrur�r�r��RLockrr�r�158_USER_BASErBr�r�rN�getcwdr��	_sys_home�159startswithr1rQrrkrZrcrnrsrwryr�r�r�r�r�r�r�r�r�r�r�r�r�rrhr�r7r9r;rCrrr�<module>rMs���3�	�160����� !������f��d��b��o��Y��]��<���161���?��9��6��6��D��H��<���	162�	��(��l��-��-��-��1��#���	163�8��f��d��b��o��Y��]��<���164���(��l��-��-��-��1��#���	165�I��X�7�7�d�?�/�	�:��V��/��=��V���166#�0�.��,������J��N��Y��Y��S��S��L��	��d��h��j��j��`��'��L��	��=��A��L��L��T��'��L��)���>#���k�k���!�!�$���'�'��*�+�1�S�-=�-=�a�-@�,A�B��!�.�.�q�1�2�3�3C�3C�A�3F�2G�H��167�'�'�168�169�3�:�:�170&���w�w������0���G�G�$�$�S�%9�%9�:���O�O�%���� ��
�171���>�>�>��G�G�O�O�N�3�>�>�$B�C�M�#�2�9�9�;�/�M�172
�C��$�'�	���M��7�7�d�?��m�$�/�/��l�^�9�5�6�8�8�$�
��R�Z�Z�'�"�2�:�:�.D�#E�F�M��" �!�
��0��173"�&�)��"�9�-��y��.��y�� 1��}��1�	�5�!��$�*	�*�I�*	��"�	�-��L�D	/�+�174�175(�)��T�	(�-�.�T�$�1�S$�l%�P'�lH�^�<�#
r
codekingpro/portable-devtools · Team Ai