관리-도구
편집 파일: install_scripts.cpython-38.pyc
U ���e! � @ 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 �P/opt/hc_python/lib/python3.8/site-packages/setuptools/command/install_scripts.pyr s z"install_scripts.initialize_optionsc C s dd l m m} | �d� | jjr2tj�| � ng | _ | j rBd S | �d�}t|j t|j |j�|j|j�}| �d�}t|dd �}z| �d�}t|dd�}W n ttfk r� d}Y nX |j}|r�d}|j}|tjkr�|g}|�� }|j�� �|�} |�|| �� �D ]} | j| � �qd S ) Nr �egg_info� build_scripts� executable� 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_classZ 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>