ó
¢áSc           @` sâ   d  d l  m Z m Z m Z d d d g Z d  d l Z d  d l Z d  d l Z d d l m	 Z	 d d l m
 Z
 d d	 l m Z d d
 l m Z e	 j Z e	 j Z d d d d d „ Z d  d l m Z e ƒ  j Z e ƒ  j Z d S(   i    (   t   divisiont   absolute_importt   print_functiont   run_maint   compilet   f2py_testingNi   (   t   f2py2e(   R   (   t   diagnose(   t   __doc__t   untitledt    c         C` s´   d d l  m } d d l } | d k r= | j d d ƒ } n t | d ƒ } zV | j |  ƒ | j ƒ  d | | j | f } d t	 j
 | f }	 | |	 ƒ \ }
 } Wd | j ƒ  X|
 S(	   sy    Build extension module from processing source with f2py.
    Read the source of this function for more information.
    i    (   t   exec_commandNt   suffixs   .ft   ws    -c -m %s %s %ss4   %s -c "import numpy.f2py as f2py2e;f2py2e.main()" %s(   t   numpy.distutils.exec_commandR   t   tempfilet   Nonet   NamedTemporaryFilet   opent   writet   flusht   namet   syst
   executablet   close(   t   sourcet
   modulenamet
   extra_argst   verboset	   source_fnR   R   t   ft   argst   ct   st   o(    (    sM   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/f2py/__init__.pyR      s    	
(   t   Tester(   t
   __future__R    R   R   t   __all__t   osR   t
   subprocessR
   R   R   R   t   infoR   R   t   mainR   R   t   numpy.testingR#   t   testt   bench(    (    (    sM   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/f2py/__init__.pyt   <module>   s"   		