PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/hc_python/lib/python3.12/site-packages/distlib/__pycache__/
Upload File :
Current File : //opt/hc_python/lib/python3.12/site-packages/distlib/__pycache__/scripts.cpython-312.pyc

�

���g�H��P�ddlmZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZmZm
Z
ddlmZddlmZmZmZmZmZmZej.e�Zdj5�Zej8d	�Zd
Zej>dk(sej>dk(ryej@dk(rjejCd
d�dZ"ee"�jGd�D�cic]4}|j>jId�r|j>|jJ��6c}Z&d�Z'e'Z(Gd�de)�Z*ycc}w)�)�BytesION)�ZipInfo�)�	sysconfig�detect_encoding�ZipFile)�finder)�FileOperator�get_export_entry�convert_path�get_executable�get_platform�in_venva�
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
 <assemblyIdentity version="1.0.0.0"
 processorArchitecture="X86"
 name="%s"
 type="win32"/>

 <!-- Identify the application security requirements. -->
 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
 <security>
 <requestedPrivileges>
 <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
 </requestedPrivileges>
 </security>
 </trustInfo>
</assembly>s^#!.*pythonw?[0-9.]*([ 	].*)?$z�# -*- coding: utf-8 -*-
import re
import sys
from %(module)s import %(import_name)s
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(%(func)s())
�nt�java�.��.exec���d|vr[|jd�r4|jdd�\}}d|vr|jd�s|�d|�d�}|S|jd�sd|z}|S)N� z
/usr/bin/env r�"z "z"%s")�
startswith�split)�
executable�env�_executables   �>/opt/hc_python/lib/python3.12/site-packages/distlib/scripts.py�enquote_executablerGsx��
�j��
� � ��1�)�/�/��Q�7��C���k�!�+�*@�*@��*E�*-�{�;�
����(�(��-�#�j�0�
���c�H�eZdZdZeZdZdd�Zd�Ze	jjd�rd�Zd�Z
d�Zdd	�Zd
�ZeZd�Zd�Zd
Zd�Zdd�Zd�Zed��Zej6d��Zej:dk(sej:dk(rej<dk(rd�Zdd�Z dd�Z!y)�ScriptMakerz_
    A class to copy or create scripts from source scripts or callable
    specifications.
    Nc���||_||_||_d|_d|_t
jdk(xs(t
jdk(xrt
jdk(|_td�|_
|xst|�|_t
jdk(xs(t
jdk(xrt
jdk(|_
tj|_y)NF�posixr)r�X.Yr)�
source_dir�
target_dir�
add_launchers�force�clobber�os�name�_name�set_mode�set�variantsr
�_fileop�_is_nt�sys�version_info)�selfr%r&r'�dry_run�fileops      r�__init__zScriptMaker.__init__ds���$���$���*�����
�������G�+�[����F�1B�1Z�r�x�x�SZ�GZ��
��K�(��
��6��g�!6����g�g��o�Q�"�'�'�V�*;�*P����D�@P����,�,��rc���|jdd�r`|jrTtjj	|�\}}|jdd�}tjj
||�}|S)N�guiF�python�pythonw)�getr1r*�pathr�replace�join)r4r�options�dn�fns     r�_get_alternate_executablez%ScriptMaker._get_alternate_executablersV���;�;�u�e�$�����W�W�]�]�:�.�F�B�����H�i�0�B������b�"�-�J��rrc���	t|�5}|jd�dk(cddd�S#1swYyxYw#ttf$rtjd|�YywxYw)zl
            Determine if the specified executable is a script
            (contains a #! line)
            �z#!NzFailed to open %sF)�open�read�OSError�IOError�logger�warning)r4r�fps   r�	_is_shellzScriptMaker._is_shell{sR��

��*�%���7�7�1�:��-�&�%�%���W�%�
����2�J�?��
�s#�7�+�	7�4�7�7�%A�Ac���|j|�r3ddl}|jjj	d�dk(r|Sd|zS|j�j
d�r|Sd|zS)Nrzos.name�Linuxz
jython.exez/usr/bin/env %s)rMr�lang�System�getProperty�lower�endswith)r4rrs   r�_fix_jython_executablez"ScriptMaker._fix_jython_executable�sk���~�~�j�)���9�9�#�#�/�/�	�:�g�E�%�%�%�z�1�1��!�!�#�,�,�\�:�!�!�$�z�1�1rc��tjdk7rd}nQttdd�rd}n=t	|�t	|�zdz}tj
dk(rd}nd}d	|vxr||k}|r
d
|z|zdz}|Sd}|d
|z|zdzz
}|dz
}|S)a
        Build a shebang line. In the simple case (on Windows, or a shebang line
        which is not too long or contains spaces) use a simple formulation for
        the shebang. Otherwise, use /bin/sh as the executable, with a contrived
        shebang which allows the script to run either under Python or sh, using
        suitable quoting. Thanks to Harald Nordgren for his input.

        See also: http://www.in-ulm.de/~mascheck/various/shebang/#length
                  https://hg.mozilla.org/mozilla-central/file/tip/mach
        r#T�cross_compilingF��darwini�� s#!�
s
#!/bin/sh
s	'''exec' s "$0" "$@"
s' '''
)r*r+�getattrr2�len�platform)r4r�post_interp�simple_shebang�shebang_length�max_shebang_length�results       r�_build_shebangzScriptMaker._build_shebang�s����7�7�g��!�N�
�S�+�U�
3�
#�N�!��_�s�;�/?�?�!�C�N��|�|�x�'�%(�"�%(�"�#�:�5�a�N�N`�<`�N���Z�'�+�5��=�F�
�
�$�F��l�Z�/�+�=��O�O�F��j� �F��
rc��d}|jr|j}d}�n/tj�st�}�nt	�rJt
jjtjd�dtjd�z�}n�t
jdk(rJt
jjtjd�dtjd�z�}n^t
jjtjd�dtjd	��tjd����}|r|j||�}tjjd
�r|j|�}|rt!|�}|j#d�}tjdk(r
d
|vr	d|vr|dz
}|j%||�}	|j'd�|dk7r	|j'|�|S|S#t($rt+d|z��wxYw#t($rt+d|�d|�d���wxYw)NTF�scriptszpython%s�EXEr�BINDIRr:�VERSIONr�utf-8�cliz	-X:Framesz
-X:FullFramess
 -X:Framesz,The shebang (%r) is not decodable from utf-8z
The shebang (z-) is not decodable from the script encoding (�))rr�is_python_buildr
rr*r=r?�get_path�get_config_varr+rCr2r_rrUr�encodere�decode�UnicodeDecodeError�
ValueError)r4�encodingr`r@�enquoter�shebangs       r�_get_shebangzScriptMaker._get_shebang�s�����?�?����J��G��*�*�,�'�)�J�
�Y������i�&8�&8��&C�Z�R[�Rj�Rj�kp�Rq�Eq�r�J��w�w�$�� �W�W�\�\�)�*B�*B�8�*L�*4�	�8P�8P�QV�8W�*X�Z�
� �W�W�\�\��,�,�X�6�$-�$<�$<�Y�$G��Ia�Ia�bg�Ih�i�k�
���7�7�
�G�L�J��<�<�"�"�6�*��4�4�Z�@�J��+�J�7�J� �&�&�w�/�
��L�L�E�!�k��&D��{�2��=�(�K��%�%�j�+�>��	W��N�N�7�#��w��
X����x�(���w���"�	W��K�g�U�V�V�	W��&�
X� �DK�X�"W�X�X�
X�s�#H�:H*�H'�*Ic��|jt|j|jj	d�d|j��zS)Nrr)�module�import_name�func)�script_template�dict�prefix�suffixr)r4�entrys  r�_get_script_textzScriptMaker._get_script_text�sB���#�#�d��<�<�U�\�\�-?�-?��-D�Q�-G�e�l�l�'\�\�	\rc�^�tjj|�}|j|zS�N)r*r=�basename�manifest)r4�exename�bases   r�get_manifestzScriptMaker.get_manifest�s%���w�w����(���}�}�t�#�#rc�2�|jxr|j}|s||z}n�|dk(r|jd�}n|jd�}t�}t	|d�5}	t
jjd�}
|
rAtjt|
��dd}td|��}|	j||�n|	jd|�ddd�|j�}
||z|
z}|D�]E}t
jj|j |�}|rXt
jj#|�\}}|j%d�r|}d	|z}	|j&j)||�n�|jr|j9d
|z�s|�d
|��}t
jj1|�r#|j:st,j/d|���|j&j)||�|j<r|j&j?|g�|jA|���Hy#1swY��nxYw#t*$r�t,j/d
�d|z}t
jj1|�rtj2|�tj4||�|j&j)||�t,j7d�	tj2|�n#t*$rYnwxYwY��wxYw)N�py�t�w�SOURCE_DATE_EPOCH�z__main__.py)�filename�	date_timez.pyz%s.exez:Failed to write executable - trying to use .deleteme logicz%s.deletemez0Able to replace executable using .deleteme logicrzSkipping existing file %s)!r'r1�
_get_launcherrrr*�environr<�time�gmtime�intr�writestr�getvaluer=r?r&�splitextrr0�write_binary_file�	ExceptionrJrK�exists�remove�rename�debugrTr)r-�set_executable_mode�append)r4�namesrw�script_bytes�	filenames�ext�use_launcher�launcher�stream�zf�source_date_epochr��zinfo�zip_datar+�outname�n�e�dfnames                   r�
_write_scriptzScriptMaker._write_scriptsz���)�)�9�d�k�k���"�\�1�L��d�{��-�-�c�2���-�-�c�2���Y�F����%��$&�J�J�N�N�3F�$G�!�$� $���C�0A�,B� C�B�Q� G�I�#�]�i�P�E��K�K��|�4��K�K�
�|�<�&����(�H�#�g�-��8�L��D��g�g�l�l�4�?�?�D�9�G���w�w�'�'��0���1��<�<��&��G�"�W�,����L�L�2�2�7�L�I�"�;�;�w�'7�'7��c�	�'B�)0�#�6�G��7�7�>�>�'�*�4�<�<��N�N�#>��H�����.�.�w��E��=�=��L�L�4�4�g�Y�?����W�%�C�&�%��&!���N�N�$9�:�*�W�4�F��w�w�~�~�f�-��	�	�&�)��I�I�g�v�.��L�L�2�2�7�L�I��L�L�"3�4���	�	�&�)��$������sD�!A5I�#I�I�BL�.L�L�	L�
L�L�L�L�-c�P�t�}d|jvr|j|�d|jvr"|j|�|jd���d|jvr>|j|�|j�|jd�d|jd���|S)Nr�Xrr$rr)r.r/�addr3�variant_separator)r4r+rds   r�get_script_filenamesz ScriptMaker.get_script_filenames<s������
������J�J�t���$�-�-���J�J��t�'8�'8��';�<�=��D�M�M�!��J�J�d�D�,B�,B�D�DU�DU�VW�DX�Z^�Zk�Zk�lm�Zn�o�p��
rc�x�d}|r9|jdg�}|r%ddj|�z}|jd�}|jd||��}|j	|�jd�}|j|j�}|r|jdd�rd	}	nd
}	|j|||||	�y)Nr�interpreter_argsz %srrk�r@r9F�pywr�)r<r?rqrxr�r�r+r�)
r4r�r�r@r`�argsrw�script�scriptnamesr�s
          r�_make_scriptzScriptMaker._make_scriptFs�������;�;�1�2�6�D���s�x�x��~�-��"�k�k�'�2���#�#�G�[�'�#�J���&�&�u�-�4�4�W�=���/�/��
�
�;���w�{�{�5�%�0��C��C����;����C�Hrc��d}tjj|jt	|��}tjj|j
tjj
|��}|js3|jj||�stjd|�y	t|d�}|j�}|stjd|�ytj!|j#dd��}|rd}|j%d�xsd	}	|sh|r|j+�|jj-||�|j.r|jj1|g�|j3|�ytj5d
||j
�|jj(s�t7|j�\}	}
|j9d�|j;|	�}dvrd
}nd}tjj
|�}
|j=|
g||j?�||�|r|j+�yy#t&$r|j(s�d}Y��WwxYw)NFznot copying %s (up-to-date)�rbz%s is an empty file (skipping)s
r\Trrzcopying and adjusting %s -> %srspythonwr�r�) r*r=r?r%rr&r�r(r0�newerrJr�rF�readlinerK�
FIRST_LINE_RE�matchr>�grouprIr5�close�	copy_filer-r�r��infor�seekrxr�rG)r4r�r��adjustr��f�
first_liner�r`ru�linesrwr�r�s              r�_copy_scriptzScriptMaker._copy_scriptVs����������d�o�o�|�F�/C�D���'�'�,�,�t������0@�0@��0H�I���z�z�$�,�,�"4�"4�V�W�"E��L�L�6��?��
	4��V�T�"�A�����J�����?��H��!�'�'�
�(:�(:�7�E�(J�K�E����#�k�k�!�n�3��������	��L�L�"�"�6�7�3��}�}����0�0�'��;����W�%��K�K�8�&�$�/�/�R��<�<�'�'�"1�!�*�*�"=���%����q�	��+�+�H�k�B����+��C��C��G�G�$�$�W�-���"�"�A�3������9�c�J�����	���E�	��<�<���A�	�s�=I-�-J	�J	c�.�|jjSr��r0r5)r4s rr5zScriptMaker.dry_run�s���|�|�#�#�#rc�&�||j_yr�r�)r4�values  rr5zScriptMaker.dry_run�s��$����rrc��tjd�dk(rd}nd}t�dk(rdnd}|�|�|�d�}|tvrd	|�d
t��}t|��t|S)N�P��64�32z	win-arm64z-armrrzUnable to find resource z in package )�struct�calcsizer�WRAPPERS�DISTLIB_PACKAGErt)r4�kind�bits�platform_suffixr+�msgs      rr�zScriptMaker._get_launcher�sa�����s�#�q�(�����(4��+�(E�f�2�O�#'���?�D��8�#��o�/�� ��o�%��D�>�!rc�t�g}t|�}|�|j||�|S|j|||��|S)a�
        Make a script.

        :param specification: The specification, which is either a valid export
                              entry specification (to make a script from a
                              callable) or a filename (to make a script by
                              copying from a source location).
        :param options: A dictionary of options controlling script generation.
        :return: A list of all absolute pathnames written to.
        r�)rr�r�)r4�
specificationr@r�r�s     r�makezScriptMaker.make�sM���	� ��/���=����m�Y�7���
���e�Y���@��rc�Z�g}|D]#}|j|j||���%|S)z�
        Take a list of specifications and make scripts from them,
        :param specifications: A list of specifications.
        :return: A list of all absolute pathnames written to,
        )�extendr�)r4�specificationsr@r�r�s     r�
make_multiplezScriptMaker.make_multiple�s2���	�+�M����T�Y�Y�}�g�>�?�,��r)TFN)rNr�)"�__name__�
__module__�__qualname__�__doc__�SCRIPT_TEMPLATEr}rr7rCr2r_rrMrUrerxr��_DEFAULT_MANIFESTr�r�r�r�r�r�r��propertyr5�setterr*r+r,r�r�r��rrr!r![s����&�O��J�-���|�|���v�&�
	�
	2�"�H@�D\�!�H�$�5&�n���I� 0�d�$��$�
�^�^�%��%�
�w�w�$��2�7�7�f�,����T�1A�	"��&	rr!)+�ior�loggingr*�rer�r2r��zipfiler�compatrrr�	resourcesr	�utilr
rrr
rr�	getLoggerr�rJ�stripr��compiler�r�r+r,�rsplitr��iteratorrT�bytesr�r�_enquote_executable�objectr!)�rs0r�<module>rs����	�	�
�
���7�7��g�g�	��	�	�8�	$��� �u�w�!�&��
�
�=�>�
���"�7�7�d�?�r�w�w�&�(�R�X�X��-=��o�o�c�1�-�a�0�O���(�1�1�"�5��5�A��6�6�?�?�6�"�	
�������5��H�
�")��d�&�d��7s�9D#

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic