관리-도구
편집 파일: zipapp.cpython-311.opt-1.pyc
� ����\ꏮ���������������������*����d�dl�Z�d�dlZd�dlZd�dlZd�dlZd�dlZd�dlZg�d�ZdZej ��������� ��������������������d������������rdZn�ej����������������������Z�G�d��de ������������Ze�j��������d����������������Zd ��Zdd �Z � �dd�Zd ��Zdd�Zedk����r�e���������������dS�dS�)�����N)�ZipAppError�create_archive�get_interpreterz8# -*- coding: utf-8 -*- import {module} {module}.{fn}() �win�utf-8c�������������������������e�Zd�ZdS�)r���N)�__name__� __module__�__qualname__��������-/opt/alt/python311/lib64/python3.11/zipapp.pyr���r���!���s���������������Dr ���r���c��������������#�������K����t����������|�t����������t����������j��������f������������r/t ����������|�|������������5�}|V���d�d�d��������������d�S�#�1�swxY�w�Y���d�S�|�V���d�S��N)� isinstance�str�os�PathLike�open)�archive�mode�fs��� r����_maybe_openr���%���s������������'�C���-�.�.��� �'�4� � �� �A��G�G�G� �� �� �� �� �� �� �� �� �� �� �� ����� �� �� �� �� �� ��� � � � � s����A�A � A c������������������x�����|r7d|����������������������t����������������������z���dz���}|����������������������|�������������dS�dS�)zWrite a shebang line.����#!���� N)�encode�shebang_encoding�write)r����interpreter�shebangs��� r����_write_file_prefixr"���.���sJ����������+�,�,�-=�>�>�>��F�� �����������r ���c������������������$����t����������|�d������������5�}|���������������������d������������}|dk����rd}|������������������������������������t����������|d������������5�}t����������||�������������|���������������������|�������������t����������j��������||�������������ddd�������������n#�1�swxY�w�Y���ddd�������������n#�1�swxY�w�Y���|rPt����������|t����������������������r=t����������j ��������|t����������j��������|������������j��������t����������j ��������z���������������dS�dS�dS�)z8Copy an application archive, modifying the shebang line.�rb����r���r ����wbN)r����read�readliner"���r����shutil�copyfileobjr���r���r����chmod�stat�st_mode�S_IEXEC)r����new_archiver ����src�first_2�dsts��� r���� _copy_archiver3���5���s������ �W�d� #� #��)�s���(�(�1�+�+���e����G��L�L�N�N�N� ��d� +� +�� )�s��s�K�0�0�0�� �I�I�g������s�C�(�(�(� )�� )�� )�� )�� )�� )�� )�� )�� )�� )�� )����� )�� )�� )�� )�)��)��)��)��)��)��)��)��)��)��)�����)��)��)��)�"���K�z�+�s�3�3��K� ���b�g�k�2�2�:�T�\�I�J�J�J�J�J�K��K��K��Ks6����AB1�;B�B1�B �B1�!B �"B1�1B5�8B5Fc����������������������d}t����������|�d������������rt����������|�d������������rd}n*t����������j��������|�������������}�|������������������������������������rd}|rt ����������|�||�������������dS�|������������������������������������st ����������d�������������|�dz�������������������������������������}|r|rt ����������d�������������|s|st ����������d �������������d}|r�|���������������������d ������������\��} } }t����������d��| � ��������������������d������������D���������������������������}t����������d ��|� ��������������������d������������D���������������������������} | d k����r|r| st ����������d|z����������������t�������������������������������| |�������������}|�|����������������������d������������}n$t����������|d������������st����������j��������|������������}t����������|d������������5�}t����������||�������������|rt����������j��������nt����������j��������}t����������j��������|d|�������������5�}|����������������������d������������D�]L}|���������������������|�������������}|��||������������r(|���������������������||�������������������������������������������������M|r)|���������������������d|���������������������d�������������������������ddd�������������n#�1�swxY�w�Y���ddd�������������n#�1�swxY�w�Y���|rKt����������|d������������s=|���������������������|�����������������������������������j��������t4����������j��������z���������������dS�dS�dS�)ab��Create an application archive from SOURCE. The SOURCE can be the name of a directory, or a filename or a file-like object referring to an existing archive. The content of SOURCE is packed into an application archive in TARGET, which can be a filename or a file-like object. If SOURCE is a directory, TARGET can be omitted and will default to the name of SOURCE with .pyz appended. The created application archive will have a shebang line specifying that it should run with INTERPRETER (there will be no shebang line if INTERPRETER is None), and a __main__.py which runs MAIN (if MAIN is not specified, an existing __main__.py will be used). It is an error to specify MAIN for anything other than a directory source with no __main__.py, and it is an error to omit MAIN if the directory has no __main__.py. Fr'���r(���TNzSource does not existz__main__.pyz8Cannot specify entry point if the source has __main__.pyzArchive has no entry point�:c��������������3����>���K����|�]}|������������������������������������V����d�S�r�����isidentifier��.0�parts��� r���� <genexpr>z!create_archive.<locals>.<genexpr>{���s.����������D�D�T�T�&�&�(�(�D�D�D�D�D�Dr ����.c��������������3����>���K����|�]}|������������������������������������V����d�S�r���r7���r9���s��� r���r<���z!create_archive.<locals>.<genexpr>|���s.����������B�B�D�D�%�%�'�'�B�B�B�B�B�Br ���zInvalid entry point: )�module�fnz.pyzr���r&����w)�compression�*r���)�hasattr�pathlib�Path�is_filer3����existsr���� partition�all�split� MAIN_TEMPLATE�format�with_suffixr���r"����zipfile�ZIP_DEFLATED� ZIP_STORED�ZipFile�rglob�relative_tor����as_posix�writestrr���r+���r,���r-���r.���)�source�targetr ����main�filter� compressed�source_is_file�has_main�main_py�mod�sepr@����mod_ok�fn_ok�fdrB����z�child�arcnames��� r���r���r���L���s������*��N��v�v����"�7�6�:�#>�#>��"������f�%�%���>�>���� "�!�N�����f�f�k�2�2�2�����=�=�?�?��3��1�2�2�2���&�/�/�1�1�H���H���H��F�H��H�� H���8�H��8��6�7�7�7��G���:��~�~�c�*�*���S�"��D�D�S�Y�Y�s�^�^�D�D�D�D�D���B�B�B�H�H�S�M�M�B�B�B�B�B���s� � �v� �%� ��5��<�=�=�=��&�&�c�b�&�9�9�� �~��#�#�F�+�+��� �V�W� %� %��&���f�%�%�� �V�T� "� "�� C�b��2�{�+�+�+�/9��*�w�+�+��)�� � �_�R��+� >� >� >�� C�!����c�*�*�� 7�� 7���+�+�F�3�3���>�V�V�G�_�_�>��G�G�E�7�#3�#3�#5�#5�6�6�6���� C�� � �=�'�.�.��*A�*A�B�B�B� C�� C�� C�� C�� C�� C�� C�� C�� C�� C�� C����� C�� C�� C�� C� C�� C�� C�� C�� C�� C�� C�� C�� C�� C�� C����� C�� C�� C�� C����;�7�6�7�3�3��;����V�[�[�]�]�*�T�\�9�:�:�:�:�:�;��;��;��;s8����>AJ1��BJ�J1�J �J1�!J �"J1�1J5�8J5c������������������ ����t����������|�d������������5�}|���������������������d������������dk����rJ|�������������������������������������������������������������������������������������������t ����������������������cd�d�d��������������S� �d�d�d��������������d�S�#�1�swxY�w�Y���d�S�)Nr$���r%���r���)r���r'���r(����strip�decoder���)r���r���s��� r���r���r�������s������� �W�d� #� #��A�q��6�6�!�9�9�����:�:�<�<�%�%�'�'�.�.�/?�@�@�A��A��A��A��A��A��A��A��A��A��A��A��A��A��A��A��A��A��A��A�����A��A��A��A��A��As����AB�B� Bc������������������*����ddl�}|�����������������������������������}|���������������������dddd��������������|���������������������dddd ��������������|���������������������d ddd��������������|���������������������d ddd��������������|���������������������dddd��������������|���������������������dd��������������|���������������������|�������������}�|�j��������rt ����������j�����������������������������|�j��������������������st����������d�������������t����������|�j��������������������}t����������d���������������������|pd�������������������������t����������j��������d�������������t ����������j�����������������������������|�j��������������������rz|�j���������Nt ����������j�����������������������������|�j��������������������r9t ����������j�����������������������������|�j��������|�j��������������������rt����������d�������������|�j��������rt����������d�������������t'����������|�j��������|�j��������|�j��������|�j��������|�j����������������������dS�)z�Run the zipapp command line interface. The ARGS parameter lets you specify the argument list directly. Omitting ARGS (or setting it to None) works as for argparse, using sys.argv[1:] as the argument list. r���Nz--outputz-ozAThe name of the output archive. Required if SOURCE is an archive.)�default�helpz--pythonz-pzEThe name of the Python interpreter to use (default: no shebang line).z--mainz-mzLThe main function of the application (default: use an existing __main__.py).z --compressz-c� store_truezQCompress files with the deflate method. Files are stored uncompressed by default.)�actionrl���z--infoFz)Display the interpreter from the archive.)rk���rn���rl���rW���z'Source directory (or existing archive).)rl���z%Can only get info for an archive filezInterpreter: {}z<none>z-In-place editing of archives is not supportedz,Cannot change the main function when copying)r ���rY���r[���)�argparse�ArgumentParser�add_argument� parse_args�infor����path�isfilerW���� SystemExitr����printrM����sys�exit�outputrH����samefilerY���r����python�compress)�argsro����parserr ���s��� r���rY���rY�������sI�������O�O�O� � $� $� &� &�F� ��� �D�$�5����6��6��6����� �D�$�/����0��0��0������$��;����<��<��<������d�<�=����>��>��>������%��<����>��>��>� ����:����<��<��<�����T�"�"�D���y����w�~�~�d�k�*�*�� F��D�E�E�E�%�d�k�2�2�� ��&�&�{�'>�h�?�?�@�@�@������� �w�~�~�d�k�"�"��M��;��2�7�>�>�$�+�#>�#>��#%�7�#3�#3�D�K���#M�#M����L�M�M�M��9�� M��K�L�L�L��4�;���#�{���"�m�-��-��-��-��-��-r ����__main__r���)NNNNF)� contextlibr���rE���r)���r,���rx���rO����__all__rL����platform� startswithr����getfilesystemencoding� ValueErrorr����contextmanagerr���r"���r3���r���r���rY���r ���r���r ���r����<module>r�������sk������������� � � � ������� � � � ������� � � � ������ >� >� >��� ���<���5�!�!��3����0�s�0�2�2�� �� �� �� �� �*�� �� �� ����������������K��K��K��K�.�@D�+0�G;��G;��G;��G;�TA��A��A�.-��.-��.-��.-�b��z����D�F�F�F�F�F���r ���