관리-도구
편집 파일: build_ext.cpython-37.pyc
B ��Fd�W � @ s d Z ddlmZmZmZ ddlZddlZddlmZ ddlm Z ddl mZ ddl mZmZmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZmZmZmZmZmZm Z m!Z! dd l"m#Z# ye$ W n e%k r� ddl&m'Z$ Y nX G dd� de�ZdS )zC Modified version of build_ext that handles fortran source files. � )�division�absolute_import�print_functionN)�glob)�newer_group)� build_ext)�DistutilsFileError�DistutilsSetupError�DistutilsError)� copy_file)�log)�exec_command)� combine_paths)�filter_sources� has_f_sources�has_cxx_sources�get_ext_source_files�get_numpy_include_dirs�is_sequence�get_build_architecture�msvc_version)�show_fortran_compilers)�Setc @ sz e Zd ZdZejddg Zejdddefg Zdd� Zd d � Z dd� Z d d� Zdd� Zdd� Z dd� Zdd� Zdd� ZdS )r z:build C/C++/F extensions (compile/link to build directory))z fcompiler=Nz!specify the Fortran compiler type)z parallel=�jznumber of parallel jobszhelp-fcompilerNz list available Fortran compilersc C s t �| � d | _d | _d S )N)� old_build_ext�initialize_options� fcompiler�parallel)�self� r �T/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/command/build_ext.pyr . s zbuild_ext.initialize_optionsc C s� | j r4yt| j �| _ W n tk r2 td��Y nX t| jt�rP| j�tj�| _| jpXg }| j jd krng | j _| j j| _| j� |� t�| � | � dd� d S )Nz)--parallel/-j argument must be an integer�build)r r )r �int� ValueError� isinstance�include_dirs�str�split�os�pathsep�distribution�extendr �finalize_options�set_undefined_options)r � incl_dirsr r r r, 3 s zbuild_ext.finalize_optionsc C s& | j s d S | �d� | j�� r�| jrz| jj�d�rJt�d� | j� d�}q�| j� d�}d|_|� � |�� d| jjd<