Submit
Path:
~
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
numpy
/
distutils
/
command
/
__pycache__
/
File Content:
install_clib.cpython-37.pyc
B <�Fd# � @ sT d dl mZmZmZ d dlZd dlmZ d dlmZ d dl m Z G dd� de�ZdS )� )�division�absolute_import�print_functionN)�Command)�new_compiler)�get_cmdc @ s4 e Zd ZdZg Zdd� Zdd� Zdd� Zdd � Zd S )�install_clibz*Command to install installable C librariesc C s d | _ g | _d S )N)�install_dir�outfiles)�self� r �W/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/command/install_clib.py�initialize_options s zinstall_clib.initialize_optionsc C s | � dd� d S )NZinstall)Zinstall_libr )Zset_undefined_options)r r r r �finalize_options s zinstall_clib.finalize_optionsc C s� t d�}|j}|js,td d�}|�| j� n|j}x^| jjD ]R}tj� | j |j�}|�|j �}tj� ||�}| �|� | j�| �||�d � q<W d S )N� build_clib)�compilerr )r r r r Z customizeZdistributionZinstalled_libraries�os�path�joinr � target_dirZlibrary_filename�nameZmkpathr �appendZ copy_file)r Zbuild_clib_cmdZ build_dirr �lr r �sourcer r r �run s zinstall_clib.runc C s | j S )N)r )r r r r �get_outputs&