NB2= 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 dZdgZd Zd Zd Zd Z d Z d S ) build_scriptsz("build" scripts (copy and fixup #! line)))z build-dir=dzdirectory to "build" (copy) to)forcefz1forcibly build everything (ignore file timestamps)zexecutable=ez*specify final destination interpreter pathr c L d | _ d | _ d | _ d | _ d | _ d S N) build_dirscriptsr executableoutfilesselfs F/opt/alt/python311/lib64/python3.11/distutils/command/build_scripts.pyinitialize_optionsz build_scripts.initialize_options s) c X | dddd | j j | _ d S )Nbuild)r r )r r )r r )set_undefined_optionsdistributionr r s r finalize_optionszbuild_scripts.finalize_options% s; ""7#A#5#? A A A (0r 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) | Fr 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&