관리-도구
편집 파일: install_scripts.cpython-310.pyc
o ~�Re! � @ sd d dl mZ d dlm mZ d dlmZ d dlZd dl Z d dl mZmZm Z G dd� dej�ZdS )� )�logN)�DistutilsModuleError)�Distribution�PathMetadata�ensure_directoryc @ s* e Zd ZdZdd� Zdd� Zd dd�Zd S )�install_scriptsz;Do normal script install, plus any egg_info wrapper scriptsc C s t j�| � d| _d S )NF)�origr �initialize_options�no_ep)�self� r ��/builddir/build/BUILDROOT/alt-python310-setuptools-58.3.0-2.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/setuptools/command/install_scripts.pyr s z"install_scripts.initialize_optionsc C s dd l m m} | �d� | jjrtj�| � ng | _ | j r!d S | �d�}t|j t|j |j�|j|j�}| �d�}t|dd �}z | �d�}t|dd�}W n ttfyZ d}Y nw |j}|red}|j}|tjkrm|g}|�� }|j�� �|�} |�|| �� �D ]} | j| � q�d S ) Nr �egg_info� build_scripts� executableZ bdist_wininstZ_is_runningFz python.exe)�setuptools.command.easy_install�command�easy_install�run_command�distribution�scriptsr r �run�outfilesr �get_finalized_commandr Zegg_baser r �egg_nameZegg_version�getattr�ImportErrorr ZScriptWriterZWindowsScriptWriter�sysr �bestZcommand_spec_class� from_param�get_argsZ as_header�write_script)r �eiZei_cmd�distZbs_cmdZ exec_paramZbw_cmdZ is_wininst�writer�cmd�argsr r r r s>