Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/numpy/distutils/command/__pycache__/build_ext.cpython-37.pyc
Назад
B �5�gP{ � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m Z mZmZ ddl mZ ddlmZ dd lmZ dd lmZ ddlmZmZmZmZmZmZ ddlmZ dd lmZm Z G dd� de�ZdS )zC Modified version of build_ext that handles fortran source files. � N)�glob)�newer_group)� build_ext)�DistutilsFileError�DistutilsSetupError�DistutilsError)� copy_file)�log)�filepath_from_subprocess_output)� combine_paths)�filter_sources�get_ext_source_files�get_numpy_include_dirs�has_cxx_sources� has_f_sources�is_sequence)�show_fortran_compilers)�new_ccompiler_opt�CCompilerOptc @ s� e Zd ZdZejdddddddg Zejd d defg Zejdd g Zdd� Z dd� Z dd� Zd"dd�Zdd� Z dd� Zdd� Zdd� Zdd� Zd d!� Zd S )#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 jobs)z warn-errorNz'turn all warnings into errors (-Werror))z cpu-baseline=Nz4specify a list of enabled baseline CPU optimizations)z cpu-dispatch=Nz.specify a list of dispatched CPU optimizations)zdisable-optimizationNz1disable CPU optimized code(dispatch,simd,fast...))z simd-test=NzMspecify a list of CPU optimizations to be tested against NumPy SIMD interfacezhelp-fcompilerNz list available Fortran compilersz warn-errorzdisable-optimizationc C s8 t �| � d | _d | _d | _d | _d | _d | _d | _d S )N) � old_build_ext�initialize_options� fcompiler�parallel� warn_error�cpu_baseline�cpu_dispatch�disable_optimization� simd_test)�self� r �W/home/digitalm-up/venv/lib/python3.7/site-packages/numpy/distutils/command/build_ext.pyr 4 s zbuild_ext.initialize_optionsc C s� | j rDyt| j �| _ W n, tk rB } ztd�|�W d d }~X Y nX t| jt�r`| j�tj�| _| jphg }| j jd kr~g | j _| j j| _| j� |� t�| � | � ddddddd� | jtjd <