Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
bdist_egg.cpython-313.pyc120 linesDownload Raw Back to __pycache__
1�

2`j�A����%SrSSKJr SSKrSSKrSSKrSSKrSSKrSSKJ	r	 SSK3JrJrJ
r
 SSKJr SSKJrJrJr SSKJr SS	KJr S4SKJrJrJr SSKJr SS
KJrJ r  \(aSSK!J"r" SSK#J$r$ \Sr%S\&S'Sr'Sr(S'Sjr)S(Sjr*"SS\5r+\,R[SR]55r/S\&S'S)Sjr0Sr1S(Sjr2SS S!.r3S"r4S*S#jr5S+S$jr6/S%Qr7S,S-S&jjr8g).z6setuptools.command.bdist_egg5 6Build .egg distributions�)�annotationsN)�Iterator)�get_path�get_platform�get_python_version)�CodeType)�
TYPE_CHECKING�AnyStr�Literal)�Command)�Library�)�StrPath�StrPathT�ensure_directory)�log)�mkpath�remove_tree)�GenericPath)�	TypeAlias)�r�w�x�ar�_ZipFileModec��[S5$)N�purelib)r���ND:\code\apps\devtools\python\Lib\site-packages\setuptools/command/bdist_egg.py�_get_purelibr!!s
���I��rc�x�SU;a"[RRU5SnURS5nU$)N�.r�module)�os�path�splitext�removesuffix)�filenames r �strip_moduler*%s7��7�h���7�7�#�#�H�-�a�0���$�$�X�.�H��Orc#�# �[R"U5H,upnUR5 UR5 XU4v� M. g7f)zZDo os.walk in a reproducible way,8independent of indeterministic filesystem readdir order9N)r%�walk�sort)�dir�base�dirs�filess    r �sorted_walkr2,s;��� �W�W�S�\���E��	�	��
�10�11���%���*�s�AA12c��[R"S5R5n[USSS9nUR	X -5 SSS5 g!,(df   g=f)Na�13        def __bootstrap__():14            global __bootstrap__, __loader__, __file__15            import sys, importlib.resources as irs, importlib.util16            with irs.as_file(irs.files(__name__).joinpath(%r)) as __file__:17                __loader__ = None; del __bootstrap__, __loader__18                spec = importlib.util.spec_from_file_location(__name__,__file__)19                mod = importlib.util.module_from_spec(spec)20                spec.loader.exec_module(mod)21        __bootstrap__()22        r�utf-8��encoding)�textwrap�dedent�lstrip�open�write)�resource�pyfile�_stub_template�fs    r �23write_stubr@8sL���_�_�24	��
�f�h��25�f�c�G�	,��	����)�*�26-�	,�	,�s�A
�
27Ac��\rSrSrSr/SQr/SQrSrSSjrSSjr	Sr28S	rSS29jrSSjr
SrSS
jrSSjrSrSrg)�	bdist_egg�Jzcreate an "egg" distribution))z30bdist-dir=�bz1temporary directory for creating the distribution)z31plat-name=�pzZplatform name to embed in generated filenames (by default uses `sysconfig.get_platform()`))�exclude-source-filesNz+remove all .py files from the generated egg)�	keep-temp�kzPkeep the pseudo-installation tree around after creating the distribution archive)z	dist-dir=�dz-directory to put final built distributions in)�32skip-buildNz2skip rebuilding everything (for testing/debugging))rGrJrFc�f�SUlSUlSUlSUlSUlSUlSUlg)NF)�	bdist_dir�	plat_name�	keep_temp�dist_dir�33skip_build�34egg_output�exclude_source_files��selfs r �initialize_options�bdist_egg.initialize_optionsbs4�������������
�������$(��!rc�P�URS5=olURUlURc@URS5Rn[35RRUS5UlURc[5UlURSS5 URcvUR[5URR5=(a URS9n[36RRUR US-5Ulgg)N�egg_info�bdist�egg)rOrO)�37py_version�platformz.egg)�get_finalized_command�ei_cmdrXrL�38bdist_baser%r&�joinrMr�set_undefined_optionsrQ�_get_egg_basenamer�distribution�has_ext_modulesrO)rTr^r_�basenames    r �finalize_options�bdist_egg.finalize_optionsks���#�9�9�*�E�E�������
��>�>�!��3�3�G�<�G�G�J��W�W�\�\�*�e�<�D�N��>�>�!�)�^�D�N��"�"�7�,D�E��?�?�"��/�/�-�/��*�*�:�:�<�O����0��H�39!�g�g�l�l�4�=�=�(�V�:K�L�D�O�#rc���URURS5l[RR[RR
[555nURR/so Rl	UH�n[U[5(a�[U5S:Xa�[RRUS5(a�[RR
US5n[RRU5nXQ:Xd'URU[R-5(aU[U5S-SUS4nURRR!U5 M� ["R$"SUR5 UR'SSSS9 X Rl	g!X Rl	f=f)	N�installrr�zinstalling package data to %s�install_dataF)�force�root)rLr]�install_libr%r&�normcase�realpathr!rc�40data_files�41isinstance�tuple�len�isabs�42startswith�sep�appendr�info�call_command)rT�
site_packages�old�itemrp�43normalizeds      r �do_install_data�bdist_egg.do_install_data�sg��<@�N�N��"�"�9�-�9����(�(����)9�)9�,�.�)I�J�
�,0�,=�,=�,H�,H�"�)��
�
�
)��D��$��&�&�3�t�9��>��7�7�=�=��a��)�)�!�w�w�/�/��Q��8�H�!#���!1�!1�(�!;�J�!�2�j�6K�6K�%����.�7�7� (��M�(:�Q�(>�(@�A�4��7�J�����(�(�/�/��5��	/��H�H�4�d�n�n�E����n�E���E�+.���(��3���(�s�	2G�Gc��UR/$)N)rQrSs r �get_outputs�bdist_egg.get_outputs�s����� � rc���[HnURX0R5 M  URSUR5 UR"U40UD6nURU5 U$)z8Invoke reinitialized command `cmdname` with keyword argsrP)�INSTALL_DIRECTORY_ATTRS�44setdefaultrLrP�reinitialize_command�run_command)rT�cmdname�kw�dirname�cmds     r rz�bdist_egg.call_command�sV��.�G��M�M�'�>�>�2�/�45�
�
�l�D�O�O�4��'�'��6�2�6������!��46rc��	�URS5 [R"SUR5 UR	S5nUR47nSUlURR5(a"UR(dURS5 URSSS9nX!lUR5upE/Ul/n[U5H�upx[RRU5up�[RR!UR[#U	5S-5nURR%U5 [R"S	U5 ['[RR)U5U5 UR%U5 UR+[R,S485XW'M� U(aUR/U5 URR0(aUR35 URn[RR!US5n
UR5U
5 URR6(aH[RR!U
S5n[R"S
U5 URSUSS9 UR9U
5 [RR!U
S5nU(ah[R"SU5 [;U5 [=USSS9nUR?SR!U55 UR?S5 SSS5 OQ[RRAU5(a-[R"SU5 [RB"U5 [E[RR!US5URG55 [RRI[RR!URJS55(a[RL"S5 URN(aURQ5 [SURTUURVURY5S9 URZ(d[]UR5 [_URS/5R%S[a5URT45 g!,(df   GNZ=f)NrXzinstalling library code to %sri�49build_clibrnF)�warn_dir�.pyzcreating stub loader for %s�/�EGG-INFO�scriptszinstalling scripts to %s�install_scriptsT)�install_dir�no_epznative_libs.txtz50writing %s�wtr4r5�51zremoving %szdepends.txtzxWARNING: 'depends.txt' will not be used by setuptools 0.6!52Use the install_requires/extras_require setup() args instead.)�verbose�mode�53dist_filesrB)1r�rryrLr]rmrc�has_c_librariesrPrz�get_ext_outputs�stubs�	enumerater%r&r'r`r*rxr@re�replacerw�byte_compilerqrrr��copy_metadata_torr:r;�isfile�unlink�write_safety_flag�zip_safe�existsrX�warnrR�zap_pyfiles�make_zipfilerQr��54gen_headerrNr�getattrr)rT�instcmd�old_rootr��all_outputs�ext_outputs�55to_compilerE�ext_namer)�_extr=�archive_rootrX�56script_dir�native_libs�	libs_files                 r �run�
bdist_egg.run�sv������$�	���0�$�.�.�A��,�,�Y�7���<�<��������,�,�.�.�t������\�*����
���>����#'�#7�#7�#9� ����57��58�$�[�1�K�A��W�W�-�-�h�7�N�H��W�W�\�\�$�.�.�,�x�2H�5�2P�Q�F��J�J���f�%��H�H�2�H�=��r�w�w�'�'��1�6�:����f�%�%�-�-�b�f�f�c�:�K�N�2�����Z�(����'�'�� � �"��~�~���7�7�<�<��j�9�����H�����$�$������h�	�:�J��H�H�/��<����/�Z�t��T����h�'��g�g�l�l�8�->�?����H�H�\�;�/��[�)��k�4�'�:�i�����	�	�+� 6�7�����%�;�:��W�W�^�^�K�
(�
(��H�H�]�K�0��I�I�k�"��"�'�'�,�,�|�Z�@�$�-�-�/�R�
�7�7�>�>�"�'�'�,�,�t�}�}�m�D�E�E��H�H�P�
�59�$�$�����	��O�O���L�L����"�		60��~�~�����'�	��!�!�<��4�;�;��� ��O�O�=61�	�;;�:�s�622S!�!63S0c	���[R"S5 [UR5GH6upnUGH(n[R64R
X5nURS5(a-[R"SU5 [R"U5 URS5(dM~UnSn[R"Xt5nUce[R65R
U[RURS5S-5n	[R"SUS	U	S6635 [R"U	5 [R "Xi5 GM+ GM9 g![a N-f=f)Nz+Removing .py files from temporary directoryr�zDeleting %s�__pycache__z#(?P<name>.+)\.(?P<magic>[^.]+)\.pyc�name�.pyczRenaming file from [z] to [�])rry�walk_eggrLr%r&r`�endswith�debugr��re�match�pardir�group�remove�OSError�rename)67rTr/r0r1r�r&�path_old�pattern�m�path_news68          r r��bdist_egg.zap_pyfiles�s�����>�?�!)�$�.�.�!9��D�����w�w�|�|�D�/���=�=��'�'��I�I�m�T�2��I�I�d�O��=�=��/�/�#�H�D�G�����/�A��=�(�=�!�w�w�|�|�D�"�)�)�Q�W�W�V�_�v�=U�V�H��H�H�3�H�:�V�H�:�Q�O�P���	�	�(�+��I�I�h�1�)�":��&#����s�1E(�(69E5�4E5c��[URSS5nUbU$[R"S5 [	UR70UR5$)Nr�z4zip_safe flag not set; analyzing archive contents...)r�rcrr��analyze_eggrLr�)rT�safes  r r��bdist_egg.zip_safesC���t�(�(�*�d�;�����K����G�H��4�>�>�4�:�:�6�6rc��g)NrrrSs r r��bdist_egg.gen_headers��rc��[RRUR5n[RR	US5nUR71RRHbnURU5(dMR	X[U5S5n[U5 URXE5 Md g)z*Copy metadata (egg info) to the target_dir�N)r%r&�normpathrXr`r^�filelistr1rvrtr�	copy_file)rT�72target_dir�
norm_egg_info�prefixr&�targets      r r��bdist_egg.copy_metadata_tos������(�(����7�
������m�R�0���K�K�(�(�.�.�D����v�&�&������j�s�6�{�}�2E�F�� ��(����t�,�	/rc�D^	^73�/n/nURS0m74[UR5HWum	p4URU	U754SjU55 UH/nT76T	U-S-T77[RRT	U5'M1 MY URR5(a�URS5nURH�n[U[5(aMURUR5nURU5n[RRU5R!S5(aM{[RR#[RRURU55(dM�UR%U5 M� X4$)zAGet a list of relative paths to C extensions in the output distror�c3�># �UHGn[RRU5SR5[;dM=TTU-v� MI g7f)rjN)r%r&r'�lower�NATIVE_EXTENSIONS)�.0r)r/�pathss  ��r �	<genexpr>�,bdist_egg.get_ext_outputs.<locals>.<genexpr>-sI����� %�H��7�7�#�#�H�-�a�0�6�6�8�<M�M�'��d��h�&� %�s�<A�Ar��	build_extzdl-)rLr2�extendr%r&r`rcrdr]�78extensionsrrr
�get_ext_fullnamer��get_ext_filenamerervr�rx)rTr�r�r0r1r)�	build_cmd�ext�fullnamer/r�s         @@r r��bdist_egg.get_ext_outputs%sM�����������$��!,�T�^�^�!<��D�$����� %��
�79!��6;�D�k�H�6L�s�6R��b�g�g�l�l�4��2�3�!�
"=����,�,�.�.��2�2�;�?�I� �+�+���c�7�+�+��$�5�5�c�h�h�?��$�5�5�h�?���w�w�'�'��1�<�<�U�C�C��w�w�~�~�b�g�g�l�l�4�>�>�8�&L�M�M�#�*�*�8�4�,��'�'r)80rLrOrXrQr^rRrNrMrPr�N��return�None)r�zLiteral['w'])�__name__�81__module__�__qualname__�__firstlineno__�description�user_options�boolean_optionsrUrfrr�rzr�r�r�r�r�r��__static_attributes__rrr rBrBJsP��0�K��L�&J�O�)�M�,/�2!��N�`2�27��82-�(rrBz.dll .so .dylib .pydzdict[str, None]r�c#�# �[U5n[U5up#nSU;aURS5 X#U4v� UShv�N gN7f)z@Walk an unpacked egg's contents, skipping the metadata directoryr�N)r2�nextr�)�egg_dir�walkerr/r0r1s     r r�r�FsE���
��
!�F��V���D���T�����J��83�e�84�����s�<A�A�Ac��[R5HLup#[RR	[RRUSU55(dMJUs $ [
5(dgSn[U5HTupVnUHHnURS5(aMURS5(dM3[XX�5=(a UnMJ MV U$)Nr�FT)r�z.pyw)r�z.pyo)85�safety_flags�itemsr%r&r�r`�can_scanr�r��scan_module)	r�r��flag�fnr�r/r0r1r�s	         r r�r�Ps��� �&�&�(���
�7�7�>�>�"�'�'�,�,�w�86�B�?�@�@��K�)��:�:���D�%�g�.���E��D��}�}�_�-�-�����/�0�0�"�7�$�>�G�4���/��Krc��[R5H�up#[RR	X5n[RRU5(a,Ub[
U5U:wa[R"U5 MrMtUcMy[
U5U:XdM�[USSS9nURS5 SSS5 M� g!,(df   M�=f)Nr�r4r5r�)87rrr%r&r`r��boolr�r:r;)r�r�rrr?s     r r�r�bs��� �&�&�(���
�W�W�\�\�'�
&��
�7�7�>�>�"����|�t�D�z�T�1��	�	�"�
� 2�
�
�$�t�*��"4��b�$��1�Q�����
�2�1�
)�2�1�s�*C	�	88C	zzip-safeznot-zip-safe)TFc��[RRX5nUSSU;agU[U5S-SR	[R89S5nXU=(a S=(d S-[RR
U5S-nSn[US	5nURU5 [R"U5n	UR5 Sn90[R[U	55nS91H#nX�;dM92[R "SXl5 Sn93M% S
U;a)SH#nX�;dM94[R "SXl5 Sn95M% U96$)z;Check whether module possibly uses unsafe-for-zipfile stuffN�����Trjr#r�r��rb)�__file__�__path__z%s: module references %sF�inspect)�	getsource�97getabsfile�getfile�
getsourcefile�getsourcelines�98findsource�getcomments�getframeinfo�getinnerframes�getouterframes�stack�tracez"%s: module MAY be using inspect.%s)r%r&r`rtr�rwr'r:�read�marshal�load�close�dict�fromkeys�iter_symbolsrr�)
r�r/r�r�r)�pkgr$�skipr?�coder��symbols�bads
             r rrts���w�w�|�|�D�'�H����}����99�s�7�|�a��!�100"�101*�102*�2�6�6�3�1037�C�
�K�C�%�2�
&����)9�)9�$�)?��)B�
B�F�
�D��X�t��A��F�F�4�L��<�<��?�D��G�G�I��D��m�m�L��.�/�G�'���>��H�H�/��=��D�(��G��
104�C��~����=�v�K���!
105�"�Krc#��# �URShv�N URHHn[U[5(aUv� M[U[5(dM5[U5Shv�N MJ gN]N7f)zBYield names and strings used by `code` and its nested code objectsN)�co_names�	co_constsrr�strrr!)r$�consts  r r!r!�sW����}�}��������e�S�!�!��K�
��x�
(�
(�#�E�*�*�*�	 ��106
+�s(�A4�A0�AA4�A4�&A2�'107A4�2A4c���[RRS5(d[RS:wag[R"S5 [R"S5 g)N�java�cliTz1Unable to analyze compiled code on this platform.zfPlease ask the author to include a 'zip_safe' setting (either True or False) in the package's setup.pyF)�sysr\rvrr�rrr rr�sI���<�<�"�"�6�*�*�s�|�|�u�/D���H�H�
@�A��H�H�	D��r)rnr�rk�install_basec�V^�SSKn[[RR	U55 [108R"SUT5 U4SjnU(aUROURnURXUS9n[T5Hup�nU"X�U5 M UR5 U$)a]Create a zip file from all the files under 'base_dir'.  The output109zip file will be named 'base_dir' + ".zip".  Uses either the "zipfile"110Python module (if available) or the InfoZIP "zip" utility (if installed111and found on the default search path).  If neither tool is available,112raises DistutilsExecError.  Returns the name of the output zip file.113rNz#creating '%s' and adding '%s' to itc�N>�UH�n[RR[RRX55n[RR	U5(dMeU[T5S-SnUR
XE5 [R"SU5 M� g)Nrjzadding '%s')	r%r&r�r`r�rtr;rr�)�zr��namesr�r&rE�base_dirs      �r �visit�make_zipfile.<locals>.visit�sq����D��7�7�#�#�B�G�G�L�L��$?�@�D��w�w�~�~�d�#�#���X���*�,�-������ ��	�	�-��+�r)�compression)�zipfilerr%r&r�rry�ZIP_DEFLATED�114ZIP_STORED�ZipFiler2r)�zip_filenamer5r��compressr�r9r6r8r3r�r0r1s `          r r�r��s�����115�2�7�7�?�?�<�(�)��H�H�
2�L�(�K�,�+3�'�&�&��8J�8J�K�������D�A� +�H� 5���u�
�a�%� �!6��G�G�I��r)r.zGenericPath[AnyStr]r�z3Iterator[tuple[AnyStr, list[AnyStr], list[AnyStr]]]r�)r�rr�z*Iterator[tuple[str, list[str], list[str]]])r$rr�z
Iterator[str])r�r)FTr)r=rr�rr�rr�r)9�__doc__�116__future__rrr%r�r/r7�collections.abcr�	sysconfigrrr�typesr�typingr	r117r�118setuptoolsr�setuptools.extensionr
�_pathrrr�	distutilsr�distutils.dir_utilrr�	_typeshedr�typing_extensionsrr�__annotations__r!r*r2r@rBrr �splitr�r�r�r�rrr!rr�r�rrr �<module>rNs���#��	�	�119��$�@�@��1�1��(�7�7��2��%�+�"�"4�5��i�5���	 �	�	 �8�	 �+�$v(��v(�r&*�]�]�3I�3O�3O�3Q�%R��?�R���$	�����%�P+�	�Y���
�������120���
r
codekingpro/portable-devtools · Team Ai