Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/distutils/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/distutils/command/__pycache__/build_scripts.cpython-311.pyc
�

�,dX����dZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZddlZejd	��ZGd
�de��ZGd�d
ee
��ZdS)zRdistutils.command.build_scripts

Implements the Distutils 'build_scripts' command.�N)�ST_MODE)�	sysconfig)�Command)�newer)�convert_path�	Mixin2to3)�logs^#!.*python[0-9.]*([ 	].*)?$c�>�eZdZdZgd�ZdgZd�Zd�Zd�Zd�Z	d�Z
d	S)
�
build_scriptsz("build" scripts (copy and fixup #! line)))z
build-dir=�dzdirectory to "build" (copy) to)�force�fz1forcibly build everything (ignore file timestamps)zexecutable=�ez*specify final destination interpreter pathr
c�L�d|_d|_d|_d|_d|_dS�N)�	build_dir�scriptsr
�
executable�outfiles��selfs �F/opt/alt/python311/lib64/python3.11/distutils/command/build_scripts.py�initialize_optionsz build_scripts.initialize_optionss)����������
������
�
�
�c�X�|�dddd��|jj|_dS)N�build)rr)r
r
)rr)�set_undefined_options�distributionrrs r�finalize_optionszbuild_scripts.finalize_options%s;���"�"�7�#A�#5�#?�	A�	A�	A��(�0����rc��|jSr)rrs r�get_source_fileszbuild_scripts.get_source_files,s
���|�rc�@�|jsdS|���dSr)r�copy_scriptsrs r�runzbuild_scripts.run/s)���|�	��F��������rc	�R�|�|j��g}g}|jD�]o}d}t|��}tj�|jtj�|����}|�|��|j	s&t||��stjd|����	t|d��}tj|j��\}}|�d��|���}	|	s|�d|z����
t&�|	��}
|
rd}|
�d��pd}n#t,$r
|js�d	}YnwxYw|�r�tjd
||j��|�|��|j�s�t2js|j}n[tj�t3jd��dt3jd
���t3jd������}t	j|��}d|z|zdz}
	|
�d��n0#t>$r#tAd�!|
�����wxYw	|
�|��n1#t>$r$tAd�!|
|�����wxYwt|d��5}|�"|
��|�#|�$����d	d	d	��n#1swxYwY|r|�%����.|r|�%��|�|��|�&||����qtj'dkr~|D]{}|jrtjd|���t	j(|��tRdz}|dzdz}||kr,tjd|||��t	j*||���|||fS)a"Copy each script listed in 'self.scripts'; if it's marked as a
        Python script in the Unix way (first line matches 'first_line_re',
        ie. starts with "\#!" and contains "python"), then adjust the first
        line to refer to the current Python interpreter as we copy.
        Fznot copying %s (up-to-date)�rbrz%s is an empty file (skipping)T�rNzcopying and adjusting %s -> %s�BINDIR�python�VERSION�EXEs#!�
zutf-8z.The shebang ({!r}) is not decodable from utf-8zAThe shebang ({!r}) is not decodable from the script encoding ({})�wb�posixzchanging mode of %si�imz!changing mode of %s from %o to %o)+�mkpathrrr�os�path�join�basename�appendr
rr	�debug�open�tokenize�detect_encoding�readline�seek�warn�
first_line_re�match�group�OSError�dry_run�infor�python_buildr�get_config_var�fsencode�decode�UnicodeDecodeError�
ValueError�format�write�
writelines�	readlines�close�	copy_file�name�statr�chmod)rr�
updated_files�script�adjust�outfiler�encoding�lines�
first_liner=�post_interpr�shebang�outf�file�oldmode�newmodes                  rr#zbuild_scripts.copy_scripts5s���	
���D�N�#�#�#����
��l�L	0�L	0�F��F�!�&�)�)�F��g�l�l�4�>�2�7�3C�3C�F�3K�3K�L�L�G��O�O�G�$�$�$��:�
�e�F�G�&<�&<�
��	�7��@�@�@��

8����&�&��#+�":�1�:�"F�"F���%����q�	�	�	��Z�Z�\�\�
�!���I�I�>��G�H�H�H��%�+�+�J�7�7���8�!�F�"'�+�+�a�.�.�"7�C�K����
�
�
��|�������
����"�,
0���9�6���)�)�)��$�$�W�-�-�-��|�!7�$�1�M�%)�_�
�
�%'�W�\�\�%�4�X�>�>�>�+4�+C�I�+N�+N�+N�+4�+C�E�+J�+J�+J�L�&M�&M�
�"$��Z�!8�!8�J�#�j�0�;�>��F�G�:����w�/�/�/�/��-�:�:�:�(�)�)/�����:�:�:�:����8����x�0�0�0�0��-�8�8�8�(�<�#�V�G�X�6�6�8�8�8�8����
�g�t�,�,�7���
�
�7�+�+�+�������
�
�6�6�6�7�7�7�7�7�7�7�7�7�7�7����7�7�7�7����G�G�I�I�I�����G�G�I�I�I��$�$�W�-�-�-����v�w�/�/�/�/�
�7�g��� �	
0�	
0���<�0��H�2�D�9�9�9�9� �g�d�m�m�G�4�v�=�G�&���&�8�G��'�)�)���!D�!%�w��9�9�9����w�/�/�/����&�&s<�?E&�&E=�<E=�
I � -J
�J'�'.K�(=L1�1L5	�8L5	N)�__name__�
__module__�__qualname__�description�user_options�boolean_optionsrrr!r$r#�rrrrs�������>�K�
�
�
�L��i�O����1�1�1�������c'�c'�c'�c'�c'rrc��eZdZd�ZdS)�build_scripts_2to3c�|�t�|��\}}|js|�|��||fSr)rr#r@�run_2to3)rrrQs   rr#zbuild_scripts_2to3.copy_scripts�sA��"/�"<�"<�T�"B�"B���-��|�	)��M�M�-�(�(�(���&�&rN)r^r_r`r#rdrrrfrf�s#������'�'�'�'�'rrf)�__doc__r0�rerOr�	distutilsr�distutils.corer�distutils.dep_utilr�distutils.utilrrr	r7�compiler<rrfrdrr�<module>rps��5�5��
�
�
�
�
�
�
�������������"�"�"�"�"�"�$�$�$�$�$�$�2�2�2�2�2�2�2�2�������������
�;�<�<�
�G'�G'�G'�G'�G'�G�G'�G'�G'�R'�'�'�'�'��	�'�'�'�'�'r

ZeroDay Forums Mini