o
    "gM                     @   s>   d dl Z d dlZd dlZdd Zdd Zedkre  dS dS )    Nc                 C   s"   t d|   t|  t d d S )NzRunning %r:------)printossystem)cmd r   U/var/www/html/ecg_monitoring/venv/lib/python3.10/site-packages/numpy/f2py/diagnose.pyrun_command   s   
r	   c                  C   s  t  } t t  td tdt j  td tdtj  td td ttj	 td td ttj
 td tddtj  td zdd l}d	}W n tyn } ztd
| d}W Y d }~nd }~ww z
ddlm} d	}W n ty } ztd| d}W Y d }~nd }~ww zdd l}d}W n+ ty   zdd l}d	}W n ty } ztd| d}W Y d }~nd }~ww Y nw |rztd|j|jf  W n ty } ztd| td W Y d }~nd }~ww |rztd|jj	|jf  W n ty } ztd| td W Y d }~nd }~ww |rz#|dkr4td|jj|jjf  ntd|jj|jf  td W n ty` } ztd| td W Y d }~nd }~ww zS|d	krtddd dd lm  m}	 td td ztd |	jD ]}
|
d	d  td qW n ty } ztd| td W Y d }~nd }~ww W n ty } ztd|d td W Y d }~nd }~ww zV|dkrtddd dd lm  m} ntddd dd lm} td td ztd |   td W n ty& } ztd| td W Y d }~nd }~ww W n tyD } ztd| td W Y d }~nd }~ww z|dkr`tddd ddl!m"} td td nDztddd ddl#m"} td td W n- ty } z td|d  td!dd ddl$m"} td td W Y d }~nd }~ww | }td"dd t%|D ]&}|d d#kr|d	 d#krt&||d	d   rt|d	d  dd qtd W n ty } ztd| td W Y d }~nd }~ww t |  d S )$Nr   z
os.name=%rzsys.platform=%rzsys.version:zsys.prefix:zsys.path=%r:r      zFailed to import new numpy:)f2py2ezFailed to import f2py2e:   z!Failed to import numpy_distutils:z Found new numpy version %r in %szerror:zFound f2py2e version %r in %sz&Found numpy.distutils version %r in %rz&Found numpy_distutils version %r in %rz0Importing numpy_distutils.command.build_flib ... )endokz5Checking availability of supported Fortran compilers:)verbosezD(ignore it, build_flib is obsolete for numpy.distutils 0.2.2 and up)z'Importing numpy.distutils.fcompiler ...z'Importing numpy_distutils.fcompiler ...z%Importing numpy.distutils.cpuinfo ...)cpuinfoz-Importing numpy_distutils.command.cpuinfo ...z(ignore it)z%Importing numpy_distutils.cpuinfo ...zCPU information:_)'r   getcwdchdirtempfile
gettempdirr   namesysplatformversionprefixjoinpathnumpyImportError
numpy.f2pyr   numpy.distutilsnumpy_distutils__version____file__	Exception	distutilsnumpy_distutils_version"numpy_distutils.command.build_flibcommand
build_fliball_compilersis_availablenumpy.distutils.fcompiler	fcompilernumpy_distutils.fcompilershow_fcompilersnumpy.distutils.cpuinfor   numpy_distutils.command.cpuinfonumpy_distutils.cpuinfodirgetattr)_pathr   has_newnumpyer   
has_f2py2ehas_numpy_distutilsr#   msgr+   compiler_classr/   r   cpur   r   r   r   run   sP  




















2
r?   __main__)r   r   r   r	   r?   __name__r   r   r   r   <module>   s    
