File: //lib/python3/dist-packages/numpy/distutils/command/__pycache__/install.cpython-310.pyc
o
6��a � @ sf d dl Z de jv rd dlm mZ dZnd dlm mZ dZd dlm Z ejZ
G dd� de
�ZdS )� N�
setuptoolsTF)�
write_filec @ s8 e Zd Zejddd� fg Zdd� Zdd� Zdd � Zd
S )�install�install_clibc C s dS )NT� )�xr r �A/usr/lib/python3/dist-packages/numpy/distutils/command/install.py�<lambda> s 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 sl ddl m} | js| jr|�| �S t�d�}|j�dd�}|j j
}|dks)|dkr0|�| � dS | �� 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| �� }| jrPt| jd��$}g }d}|D ]}|�� }d|v r,d}d| }|�|� qW d � n1 s<w Y |rP| �t | j|fd| j � |S )N�rF� Tz"%s"z*re-writing list of installed files to '%s')
�have_setuptoolsr
r r"