o
    >~#g?                     @   s   d dl Z d dlZd dlmZ d dlmZ dgZe jdks%ejdd dkr*e	d G d	d deZ
G d
d deZedkrZd dlmZ ed d dlmZ eedd  dS dS )    N)	FCompiler)DistutilsPlatformErrorCompaqFCompilerposix   cygwinCompaqVisualFCompilerc                   @   s   e Zd ZdZdZdZejdd dkrdZndZd	d
geddgedgegd	gddgdgdZ	dZ
dZdd Zdd Zdd Zdd Zdd ZdS )r   compaqzCompaq Fortran Compilerz$Compaq Fortran (?P<version>[^\s]*).*N   linuxfortf90<F90>z-versionz-f77rtlz-fixedarz-crranlibversion_cmdcompiler_f77compiler_fixcompiler_f90	linker_soarchiverr   z-module z-Ic                 C      ddgS )Nz-assume no2underscorez-nomixed_str_len_arg selfr   r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/numpy/distutils/fcompiler/compaq.py	get_flags(      zCompaqFCompiler.get_flagsc                 C   r   )Nz-gz-check boundsr   r   r   r   r   get_flags_debug*   r   zCompaqFCompiler.get_flags_debugc                 C      g dS )N)z-O4z-align dcommonsz-assume bigarraysz-assume nozsizez-math_library fastr   r   r   r   r   get_flags_opt,   r   zCompaqFCompiler.get_flags_optc                 C   r   )Nz
-arch hostz
-tune hostr   r   r   r   r   get_flags_arch/   r   zCompaqFCompiler.get_flags_archc                 C   s    t jd d dkrdgS ddgS )Nr
   r   z-sharedz-Wl,-expect_unresolved,*)sysplatformr   r   r   r   get_flags_linker_so1   s   z#CompaqFCompiler.get_flags_linker_so)__name__
__module____qualname__compiler_typedescriptionversion_patternr#   r$   fc_exeexecutablesmodule_dir_switchmodule_include_switchr   r   r!   r"   r%   r   r   r   r   r      s,    
c                
   @   sz  e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZejdkrddlmZ ze Ze  ejZW nb ey<   Y nZ ey[ Z zdeev rPede  n W Y dZ[n?dZ[w eyx Z zdeevrnede  W Y dZ[n"dZ[w ey Z zdeevrede  W Y dZ[ndZ[ww ddgeddgedgegdgedgddZdd Zdd Z d d! Z!d"d# Z"dS )$r   compaqvz)DIGITAL or Compaq Visual Fortran CompilerzQ(DIGITAL|Compaq) Visual Fortran Optimizing Compiler Version (?P<version>[^\s]*).*z/compile_onlyz/object:z/OUT:z.libz%s%sz/module:z/Izlib.exeDFwin32r   )MSVCCompiler_MSVCCompiler__rootz1Ignoring "%s" (I think it is msvccompiler.py bug)Nzvcvarsall.batzUnexpected OSError inz'path'zUnexpected ValueError inr   z/whatz/f77rtlz/fixedr   c                 C   r    )N)z/nologoz/MDz/WXz!/iface=(cref,nomixed_str_len_arg)z/names:lowercasez/assume:underscorer   r   r   r   r   r   j   r   zCompaqVisualFCompiler.get_flagsc                 C   r    )N)z/Oxz/fastz/optimize:5z	/unroll:0z/math_library:fastr   r   r   r   r   r!   m   r   z#CompaqVisualFCompiler.get_flags_optc                 C      dgS )Nz/threadsr   r   r   r   r   r"   o      z$CompaqVisualFCompiler.get_flags_archc                 C   r5   )Nz/debugr   r   r   r   r   r   q   r6   z%CompaqVisualFCompiler.get_flags_debug)#r&   r'   r(   r)   r*   r+   compile_switchobject_switchlibrary_switchstatic_lib_extensionstatic_lib_formatr.   r/   ar_exer,   r#   r$   numpy.distutils.msvccompilerr3   m
initializelibr   AttributeErrorestrprintOSError__file__
ValueErrorr-   r   r!   r"   r   r   r   r   r   r   6   sh    




__main__)log   )customized_fcompilerr	   )compiler)osr#   numpy.distutils.fcompilerr   distutils.errorsr   	compilersnamer$   appendr   r   r&   	distutilsrI   set_verbositynumpy.distutilsrK   rD   get_versionr   r   r   r   <module>   s   
&>
