� !A?hX � �� � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z d dl mZmZ d dlm Z d dlZ ej d� � Z G d � d e� � Z G d� dee� � ZdS ) � N)�ST_MODE)� sysconfig)�Command)�newer)�convert_path� Mixin2to3)�logs ^#!.*python[0-9.]*([ ].*)?$c �> � e Zd ZdZg d�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 | _ d S �N)� build_dir�scriptsr � executable�outfiles��selfs �L/opt/alt/python-internal/lib64/python3.11/distutils/command/build_scripts.py�initialize_optionsz build_scripts.initialize_options s) � ��������� ������ � � � c �X � | � dddd� � | j j | _ d S )N�build)r r )r r )r r )�set_undefined_options�distributionr r s r �finalize_optionszbuild_scripts.finalize_options% s; � ��"�"�7�#A�#5�#?� A� A� A� �(�0����r c � � | j S r )r r s r �get_source_fileszbuild_scripts.get_source_files, s � ��|�r c �@ � | j sd S | � � � d S r )r �copy_scriptsr s r �runzbuild_scripts.run/ s) � ��|� ��F��������r c �T � | � | j � � g }g }| j D �]o}d}t |� � }t j � | j t j � |� � � � }|� |� � | j s&t ||� � st j d|� � �� t |d� � }t j |j � � \ }}|� d� � |� � � } | s| � d|z � � �� t&