관리-도구
편집 파일: install_scripts.cpython-36.pyc
3 K�Re� � @ sR d dl mZ d dljjZd dlZd dlZd dlm Z m Z mZ G dd� dej�ZdS )� )�logN)�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 jj| � d| _d S )NF)�origr �initialize_options�no_ep)�self� r ��/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/command/install_scripts.pyr s z"install_scripts.initialize_optionsc C s� dd l jj}| jd� | jjr,tjj| � ng | _ | j r<d S | jd�}t|j t|j |j�|j|j�}| jd�}t|dd �}| jd�}t|dd�}|j}|r�d}|j}|tjkr�|g}|j� }|jj� j|�} x"|j|| j� �D ]} | j| � q�W d 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�getattrZScriptWriterZWindowsScriptWriter�sysr �bestZcommand_spec_class� from_paramZget_argsZ as_header�write_script)r �eiZei_cmd�distZbs_cmdZ exec_paramZbw_cmdZ is_wininst�writer�cmd�argsr r r r s2 zinstall_scripts.run�tc G s� ddl m}m} tjd|| j� tjj| j|�}| j j |� |� }| js~t|� t |d| �} | j|� | j� ||d| � dS )z1Write an executable file to the scripts directoryr )�chmod� current_umaskzInstalling %s script to %s�wi� N)r r&