Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/numpy/distutils/command/__pycache__/ |
Upload File : |
o 6��a � @ sF d dl mZ d dlmZ d dd�ZG dd� de�ZG dd � d e�ZdS )� )�Command)�logNc C sF | rd S | d u r g } | � d� ddlm} dd l}|jj}||� d S )N� r )�show_fcompilers)�append�numpy.distutils.fcompilerr �distutils.core�core�_setup_distribution)�_cacher � distutils�dist� r �I/usr/lib/python3/dist-packages/numpy/distutils/command/config_compiler.py�show_fortran_compilers s r c @ sJ e Zd ZdZdZg d�ZdddefgZg d�Zdd � Z d d� Z dd � ZdS )� config_fcz� Distutils command to hold user specified options to Fortran compilers. config_fc command is used by the FCompiler.customize() method. z2specify Fortran 77/Fortran 90 compiler information) )z fcompiler=Nzspecify Fortran compiler type)zf77exec=Nzspecify F77 compiler command)zf90exec=Nzspecify F90 compiler command)z f77flags=Nzspecify F77 compiler flags)z f90flags=Nzspecify F90 compiler flags)zopt=Nzspecify optimization flags)zarch=Nz0specify architecture specific optimization flags)�debug�gz"compile with debugging information)�nooptNzcompile without optimization)�noarchNz+compile without arch-dependent optimizationzhelp-fcompilerNz list available Fortran compilers)r r r c C s@ d | _ d | _d | _d | _d | _d | _d | _d | _d | _d | _ d S �N) � fcompiler�f77exec�f90exec�f77flags�f90flags�opt�archr r r ��selfr r r �initialize_options/ s zconfig_fc.initialize_optionsc C �� t �d� | �d�}| �d�}| �d�}| �d�}| ||||g}dD ]O}g }|D ]}t||�} | d urDt| t�s;| j} | |vrD|�| � q(|sJd } n|d } t|�dkr]t � d ||f � | rq|D ]}t||�d u rpt ||| � qaq"d S ) NzTunifing config_fc, config, build_clib, build_ext, build commands --fcompiler options� build_clib� build_ext�config�build)r r r �J commands have different --%s options: %s, using first in list as default�r �info�get_finalized_command�getattr� isinstance�str� compiler_typer �len�warn�setattr�r r"