관리-도구
편집 파일: install.cpython-37.pyc
B ��Fd7 � @ sz d dl mZmZmZ d dlZdejkr>d dlm mZ dZ nd dlm mZ dZ d dlm Z e jZG dd� de�ZdS ) � )�division�absolute_import�print_functionN� setuptoolsTF)� write_filec @ s8 e Zd Zejddd� fg Zdd� Zdd� Zdd � Zd S )�install�install_clibc C s dS )NT� )�xr r �R/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/command/install.py�<lambda> � zinstall.<lambda>c C s t �| � | j| _d S )N)�old_install�finalize_options�install_libbase�install_lib)�selfr r r r s zinstall.finalize_optionsc C sj ddl m} | js| jr"|�| �S t�d�}|j�dd�}|j j }|dksR|dkr^|�| � n| �� dS ) z� The setuptools version of the .run() method. We must pull in the entire code so we can override the level used in the _getframe() call since we wrap this call by one more level. r )r � �__name__� zdistutils.dist�run_commandsN)�distutils.command.installr �old_and_unmanageable�!single_version_externally_managed�run�sys� _getframe� f_globals�get�f_code�co_name�do_egg_install)r �distutils_install�caller� caller_module�caller_namer r r �setuptools_run s zinstall.setuptools_runc C s� t st�| �}n| �� }| jr�t| jd�}g }d}x2|D ]*}|�� }d|krXd}d| }|�|� q8W |�� |r�| � t | j|fd| j � |S )N�rF� Tz"%s"z*re-writing list of installed files to '%s')�have_setuptoolsr r r&