
;>"^                 @   so   d  d l  m Z m Z m Z d  d l Z d  d l Z d  d l Z d d   Z d d   Z e	 d k rk e   d S)    )divisionabsolute_importprint_functionNc             C   s)   t  d |   t j |   t  d  d  S)NzRunning %r:z------)printossystem)cmd r	   E/home/birch/.local/lib/python3.5/site-packages/numpy/f2py/diagnose.pyrun_command	   s    r   c              C   s  t  j   }  t  j t j    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 j t j   t d  y d d  l } d	 } Wn/ t k
 rt d
 t j   d	  d } Yn Xy d d l m } d	 } Wn/ t k
 rXt d t j   d	  d } Yn Xy d d  l } d } WnZ t k
 ry d d  l } d	 } Wn/ t k
 rt d t j   d	  d } Yn XYn X| r/y t d | j | j f  Wn< t k
 r.} z t d |  t d  WYd  d  } ~ Xn X| ry! t d | j j	 | j f  Wn< t k
 r} z t d |  t d  WYd  d  } ~ Xn X| ryZ | d k rt d | j j | j j f  n t d | j j | j f  t d  Wn< t k
 r3} z t d |  t d  WYd  d  } ~ Xn Xy | d	 k rt d d d d d  l j j } t d  t d  y? t d  x. | j D]# }	 |	 d d	  j   t d  qWWn< t k
 r} z t d |  t d  WYd  d  } ~ Xn XWn? t k
 r9} z t d | d  t d  WYd  d  } ~ Xn Xy | d k rnt d d d d d  l j j }
 n t d d d d d  l  j }
 t d  t d  y" t d  |
 j!   t d  Wn< t k
 r} z t d |  t d  WYd  d  } ~ Xn XWn< t k
 rA} z t d |  t d  WYd  d  } ~ Xn Xy{| d k rt d d d d d l" m# } t d  t d  n y8 t d d d d d l$ m# } t d  t d  Wni t k
 r+} zI t d | d   t d! d d d d l% m# } t d  t d  WYd  d  } ~ Xn X|   } t d" d d xj t& |  D]\ } | d d# k rR| d	 d# k rRt' | | d	 d      rRt | d	 d   d d qRWt d  Wn< t k
 r} z t d |  t d  WYd  d  } ~ Xn Xt  j |   d  S)$Nz------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 obsolute 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exc_info
numpy.f2pyr   numpy.distutilsnumpy_distutils__version____file__	Exception	distutilsZnumpy_distutils_versionZ"numpy_distutils.command.build_flibcommand
build_flibZall_compilersis_availablenumpy.distutils.fcompiler	fcompilerZnumpy_distutils.fcompilershow_fcompilersnumpy.distutils.cpuinfor   Znumpy_distutils.command.cpuinfoZnumpy_distutils.cpuinfodirgetattr)_pathr!   Zhas_newnumpyr   Z
has_f2py2eZhas_numpy_distutilsr&   msgr,   compiler_classr/   r   cpur   r	   r	   r
   run   s   











		

!



!


	<r8   __main__)

__future__r   r   r   r   r   r   r   r8   __name__r	   r	   r	   r
   <module>   s   