
;>"^__  ã               @   s«  d  Z  d d l m Z m Z m Z d d l 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 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 j Z e j Z e j Z y d d l m Z Wn e k
 r'd Z Yn Xd e e f Z d d „  Z d d „  Z d d „  Z d d „  Z  d d „  Z! d d d „ Z" d d „  Z# d d „  Z$ d d  „  Z% d S)!a‡  

f2py2e - Fortran to Python C/API generator. 2nd Edition.
         See __usage__ below.

Copyright 1999--2011 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@cens.ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy License.

NO WARRANTY IS EXPRESSED OR IMPLIED.  USE AT YOUR OWN RISK.
$Date: 2005/05/06 08:31:19 $
Pearu Peterson

é    )ÚdivisionÚabsolute_importÚprint_functionNé   )Úcrackfortran)Úrules)Úcb_rules)Úauxfuncs)Úcfuncs)Úf90mod_rules)Ú__version__)Ú	capi_mapszN/Aa|  Usage:

1) To construct extension module sources:

      f2py [<options>] <fortran files> [[[only:]||[skip:]] \
                                        <fortran functions> ] \
                                       [: <fortran files> ...]

2) To compile fortran files and build extension modules:

      f2py -c [<options>, <build_flib options>, <extra options>] <fortran files>

3) To generate signature files:

      f2py -h <filename.pyf> ...< same options as in (1) >

Description: This program generates a Python C/API file (<modulename>module.c)
             that contains wrappers for given fortran functions so that they
             can be called from Python. With the -c option the corresponding
             extension modules are built.

Options:

  --2d-numpy       Use numpy.f2py tool with NumPy support. [DEFAULT]
  --2d-numeric     Use f2py2e tool with Numeric support.
  --2d-numarray    Use f2py2e tool with Numarray support.
  --g3-numpy       Use 3rd generation f2py from the separate f2py package.
                   [NOT AVAILABLE YET]

  -h <filename>    Write signatures of the fortran routines to file <filename>
                   and exit. You can then edit <filename> and use it instead
                   of <fortran files>. If <filename>==stdout then the
                   signatures are printed to stdout.
  <fortran functions>  Names of fortran routines for which Python C/API
                   functions will be generated. Default is all that are found
                   in <fortran files>.
  <fortran files>  Paths to fortran/signature files that will be scanned for
                   <fortran functions> in order to determine their signatures.
  skip:            Ignore fortran functions that follow until `:'.
  only:            Use only fortran functions that follow until `:'.
  :                Get back to <fortran files> mode.

  -m <modulename>  Name of the module; f2py generates a Python/C API
                   file <modulename>module.c or extension module <modulename>.
                   Default is 'untitled'.

  --[no-]lower     Do [not] lower the cases in <fortran files>. By default,
                   --lower is assumed with -h key, and --no-lower without -h key.

  --build-dir <dirname>  All f2py generated files are created in <dirname>.
                   Default is tempfile.mkdtemp().

  --overwrite-signature  Overwrite existing signature file.

  --[no-]latex-doc Create (or not) <modulename>module.tex.
                   Default is --no-latex-doc.
  --short-latex    Create 'incomplete' LaTeX document (without commands
                   \documentclass, \tableofcontents, and \begin{document},
                   \end{document}).

  --[no-]rest-doc Create (or not) <modulename>module.rst.
                   Default is --no-rest-doc.

  --debug-capi     Create C/API code that reports the state of the wrappers
                   during runtime. Useful for debugging.

  --[no-]wrap-functions    Create Fortran subroutine wrappers to Fortran 77
                   functions. --wrap-functions is default because it ensures
                   maximum portability/compiler independence.

  --include-paths <path1>:<path2>:...   Search include files from the given
                   directories.

  --help-link [..] List system resources found by system_info.py. See also
                   --link-<resource> switch below. [..] is optional list
                   of resources names. E.g. try 'f2py --help-link lapack_opt'.

  --f2cmap <filename>  Load Fortran-to-Python KIND specification from the given
                   file. Default: .f2py_f2cmap in current directory.

  --quiet          Run quietly.
  --verbose        Run with extra verbosity.
  -v               Print f2py version ID and exit.


numpy.distutils options (only effective with -c):

  --fcompiler=         Specify Fortran compiler type by vendor
  --compiler=          Specify C compiler type (as defined by distutils)

  --help-fcompiler     List available Fortran compilers and exit
  --f77exec=           Specify the path to F77 compiler
  --f90exec=           Specify the path to F90 compiler
  --f77flags=          Specify F77 compiler flags
  --f90flags=          Specify F90 compiler flags
  --opt=               Specify optimization flags
  --arch=              Specify architecture specific optimization flags
  --noopt              Compile without optimization
  --noarch             Compile without arch-dependent optimization
  --debug              Compile with debugging information

Extra options (only effective with -c):

  --link-<resource>    Link extension module with <resource> as defined
                       by numpy.distutils/system_info.py. E.g. to link
                       with optimized LAPACK libraries (vecLib on MacOSX,
                       ATLAS elsewhere), use --link-lapack_opt.
                       See also --help-link switch.

  -L/path/to/lib/ -l<libname>
  -D<define> -U<name>
  -I/path/to/include/
  <filename>.o <filename>.so <filename>.a

  Using the following macros may be required with non-gcc Fortran
  compilers:
    -DPREPEND_FORTRAN -DNO_APPEND_FORTRAN -DUPPERCASE_FORTRAN
    -DUNDERSCORE_G77

  When using -DF2PY_REPORT_ATEXIT, a performance report of F2PY
  interface is printed out at exit (platforms: Linux).

  When using -DF2PY_REPORT_ON_ARRAY_COPY=<int>, a message is
  sent to stderr whenever F2PY interface makes a copy of an
  array. Integer <int> sets the threshold for array sizes when
  a message should be shown.

Version:     %s
numpy Version: %s
Requires:    Python 2.3 or higher.
License:     NumPy license (see LICENSE.txt in the NumPy source code)
Copyright 1999 - 2011 Pearu Peterson all rights reserved.
http://cens.ioc.ee/projects/f2py2e/c             C   s“  g  g  g  g  f \ } } } } d= \	 } } } } }	 }
 } } } d } d> } d } d } d } d } g  } d? \ } } d | d d  d d  i } x†|  D]~} | d k r© q” | d k r¾ d } q” | d	 k rÓ d@ } q” | d
 k rè d } q” | d  d … d k r| j  | d d  … ƒ q” | d k r-d } q” | d k rBd }	 q” | d k rWd } q” | d k rld } q” | d k r…| d 7} q” | d k ršd } q” | d k r¯d } q” | d k rÄd } q” | d k rÙd } q” | d k rîd } q” | d k rd } q” | d k rd | d <q” | d k r1d } q” | d k rFd } q” | d k r[d } q” | d k rtd | d <q” | d k r‰d } q” | d  k ržd } q” | d  d! … d" k rËt t ƒ t j ƒ  q” | d# k ràd } q” | d  d … d$ k r<t j d% j  | d& dA … ƒ d' | d d  … t j | d& dB … <q” | d  d( … d) k ret d* ƒ d }
 q” | d  d( … d+ k r„d }
 q” | d d, k rµt	 d- t
 | ƒ ƒ t j ƒ  q” | rÊd } | } q” | rßd } | } q” |	 rôd }	 | } q” |
 rd }
 | j | j t j ƒ ƒ q” | r5d } | | d <q” | rNd } | | d <q” | rgd } | | d. <q” | d k rÝy% t | ƒ  Wd  QRX| j  | ƒ Wqt k
 rÙ} z t	 d/ t | ƒ | f ƒ WYd  d  } ~ XqXq” | dC k rù| j  | ƒ q” | d k r” | j  | ƒ q” W| r?| r?| r?t t ƒ t j ƒ  t j j | ƒ sr| set d0 | ƒ t j | ƒ | rt j j | | ƒ } | rÉt j j | ƒ rÉd | k rÉt	 d1 | ƒ t j ƒ  | | d2 <| | d3 <| dD k rý| rýd | d4 <n
 | | d4 <| r| | d5 <| r'| | d6 <| r7| | d7 <| rG| | d8 <| | d9 <| | d: <| | d; <| | d <| | d< <| j d. d  ƒ | | f S)ENr   r   Ú.Ú	buildpathÚcoutputÚf2py_wrapper_outputÚ zonly:zskip:ú:é   z--debug-z--lowerz--build-dirz
--no-lowerz--quietz	--verbosez--latex-docz--no-latex-docz
--rest-docz--no-rest-docz--wrap-functionsz--no-wrap-functionsz--short-latexZ
shortlatexz	--coutputz--f2py-wrapper-outputz--f2cmapz--overwrite-signaturezh-overwritez-hz-mé   z-vz--show-compilersz-includeÚuserincludesé	   z	#include é   z--include_pathszHf2py option --include_paths is deprecated, use --include-paths instead.
z--include-pathsú-zUnknown option %s
Úf2cmap_filez!IOError: %s. Skipping file "%s".
zCreating build directory %szFSignature file "%s" exists!!! Use --overwrite-signature to overwrite.
ÚdebugÚverbosezdo-lowerÚmoduleÚ	signsfileÚ	onlyfuncsÚ	skipfuncsÚ
dolatexdocÚ	dorestdocÚ	wrapfuncsÚinclude_paths)	r   r   r   r   r   r   r   r   r   éÿÿÿÿ)NNr%   r%   r%   r%   r%   )ÚappendÚprintÚf2py_versionÚsysÚexitr
   Zoutneedsr   ÚoutmessÚerrmessÚreprÚextendÚsplitÚosÚpathsepÚopenÚIOErrorÚstrÚ	__usage__ÚpathÚisdirÚmkdirÚjoinÚisfileÚ
setdefault)Z	inputlineÚfilesr    r   r   ÚfÚf2Zf3Zf5Zf6Zf7Zf8Zf9Zf10r   Zdolcr!   r"   r#   r   r$   r   Ú
modulenameÚoptionsÚlZdetail© rB   úC/home/birch/.local/lib/python3.5/site-packages/numpy/f2py/f2py2e.pyÚscaninputline´   s   !																		
	(					*

$












rD   c             C   sÓ  | t  _ | d t _ | d t _ d | k r< | d t _ d | k rU | d t _ d | k rn | d t _ | d t j d  d  … <| d t _	 t j |  ƒ } d | k r%t
 d	 | d ƒ t j | ƒ } | d d d  … d k rû t j j | ƒ n* t | d d ƒ  } | j | ƒ Wd  QRX| d d  k r[xB | D] } d | d | d <q<Wn x | D] } | d | d <qbW| d d  k r°xB | D] } d | d | d <q‘Wn x | D] } | d | d <q·W| S)Nr   r   r   r    r   r$   zdo-lowerr   zSaving signatures to file "%s"
é   ÚstdoutÚwr   z
%smodule.cÚnamer   z%s-f2pywrappers.fiúÿÿÿ)r   r@   r   r   r   Zf77modulenamer    r   r$   Zdolowercaser+   Zcrack2fortranr)   rF   Úwriter2   )r<   r@   ÚpostlistZpyfr=   ÚmodrB   rB   rC   ÚcallcrackfortranH  s<    	rL   c          	   C   s  t  j ƒ  t d ƒ g  g  i  } } } xÆ t t |  ƒ ƒ D]² } d |  | d k ri t j |  | ƒ q; d |  | k rÇ xK |  | d j ƒ  D]5 } | | k rª g  | | <| | j |  | d ƒ qŽ W| j |  | ƒ | j |  | d ƒ q; Wi  } xt t | ƒ ƒ D]} | | | k rYt d | | d j	 d d „  | | | Dƒ ƒ f ƒ q
g  } d | | k rÛxi | | d j ƒ  D]S } | | k r¿| | k r¿| j | | j
 | ƒ ƒ q„t d	 | | | f ƒ q„Wi  | | | <t | | | t j | | | ƒ ƒ q
W| S)
NzBuilding modules...
Ú__user__rH   Úusez+	Skipping module "%s" which is used by %s.
ú,c             S   s   g  |  ] } d  | ‘ q S)z"%s"rB   )Ú.0ÚsrB   rB   rC   ú
<listcomp>  s   	 z buildmodules.<locals>.<listcomp>z:	Module "%s" uses nonexisting "%s" which will be ignored.
)r
   Zbuildcfuncsr+   ÚrangeÚlenr   ZbuildcallbacksÚkeysr&   r9   ÚindexÚdict_appendr   Zbuildmodule)ÚlstÚmodulesZmnamesÚisusedbyÚiÚuÚretZumrB   rB   rC   Úbuildmodulesl  s8    


3)r^   c             C   sl   xe | j  ƒ  D]W \ } } | |  k r/ g  |  | <t | t ƒ rS |  | | |  | <q |  | j | ƒ q Wd  S)N)ÚitemsÚ
isinstanceÚlistr&   )Zd_outZd_inÚkÚvrB   rB   rC   rW   Ž  s    
rW   c          	   C   sÏ  t  j ƒ  t j j t j j t j ƒ ƒ } t j j | d d ƒ } t j j | d d ƒ } t	 |  ƒ \ } } | t
 _ t j | d ƒ t | | ƒ } i  } xx t t | ƒ ƒ D]d } d | | k r¯ xK | | d j ƒ  D]5 }	 |	 | k rö g  | |	 <| |	 j | | d ƒ qÚ Wq¯ Wx” t t | ƒ ƒ D]€ } | | d d k r*d	 | | d k r*| | d | k r*t d
 | | d d j d d „  | | | d Dƒ ƒ f ƒ q*Wd | k r| d d k rÿt d ƒ t d t j j t j d ƒ | d f ƒ d Sxb t t | ƒ ƒ D]N } | | d d k rd | k rFt d ƒ t d t | | d ƒ ƒ ‚ qW| d t
 _ | t _ | d t
 _ t | ƒ }
 x1 |
 j ƒ  D]# } t |
 | d | d | i ƒ q¤W|
 S)aJ  
    Equivalent to running::

        f2py <args>

    where ``<args>=string.join(<list>,' ')``, but in Python.  Unless
    ``-h`` is used, this function returns a dictionary containing
    information on generated modules and their dependencies on source
    files.  For example, the command ``f2py -m scalar scalar.f`` can be
    executed from Python as follows

    You cannot build extension modules with this function, that is,
    using ``-c`` is not allowed. Use ``compile`` command instead

    Examples
    --------
    .. include:: run_main_session.dat
        :literal:

    Úsrczfortranobject.hzfortranobject.cr   rN   rH   Úblockzpython modulerM   z<Skipping Makefile build for module "%s" which is used by %s
rO   c             S   s   g  |  ] } d  | ‘ q S)z"%s"rB   )rP   rQ   rB   rB   rC   rR   Á  s   	 zrun_main.<locals>.<listcomp>r   r   r   zKStopping. Edit the signature file and then run f2py on the signature file: z%s %s
r   NzJTip: If your original code is Fortran source then you must use -m option.
z2All blocks must be python module blocks but got %sr   r#   ZcsrcÚh)r   Zreset_global_f2py_varsr0   r6   ÚdirnameÚabspathr
   Ú__file__r9   rD   r	   r@   r   Zload_f2cmap_filerL   rS   rT   rU   r&   r+   Úbasenamer)   Úargvr,   Ú	TypeErrorr-   Zdebugoptionsr   r#   r^   rW   )Zcomline_listZf2pydirZfobjhsrcZfobjcsrcr<   r@   rJ   rZ   r[   r\   r]   ZmnrB   rB   rC   Úrun_main˜  sR    
!	
!(<%	!rm   c       	      C   s¡   g  g  } } t  j |  d | d ƒ j } | r@ t |  ƒ } n d } xN d d „  | Dƒ D]9 } | | ƒ r† | j | | d … ƒ qZ | j | ƒ qZ W| | f S)z,
    Filter files by prefix and suffix.
    z.*z\Zr   c             S   s   g  |  ] } | j  ƒ  ‘ q SrB   )Ústrip)rP   ÚxrB   rB   rC   rR   å  s   	 z filter_files.<locals>.<listcomp>N)ÚreÚcompileÚmatchrT   r&   )	ÚprefixÚsuffixr<   Úremove_prefixÚfilteredÚrestrr   ÚindÚfilerB   rB   rC   Úfilter_filesÛ  s    rz   c             C   s%   t  j j t  j j |  j ƒ ƒ } | S)N)r0   r6   rg   ri   )r   ÚprB   rB   rC   Ú
get_prefixí  s    !r|   c        $         s×  d d l  }  t j j d ƒ } t j | =d } y t j j d ƒ } Wn t k
 r^ d } Yn X| d k	 r— t j | d } t j | d =t j | =n d } |  j ƒ  } t j d ƒ ‰  ‡  f d d †  t j d d … Dƒ ‰
 ‡
 f d	 d †  t j Dƒ t _ ˆ
 rd
 d „  ˆ
 Dƒ ‰
 t j d ƒ ‰ ‡ f d d †  t j d d … Dƒ ‰ ‡ f d d †  t j Dƒ t _ g  ‰ d } xa t j d d … D]L } | dG k r¥d } n | d k r·d } | sÉ| d k rŠˆ j | ƒ qŠWˆ rýˆ dH d k rýˆ j d ƒ ˆ j	 ˆ ƒ ‡ f d d †  t j Dƒ t _ t j d ƒ ‰ ‡ f d d †  t j d d … Dƒ ‰ ‡ f d d †  t j Dƒ t _ t j d ƒ ‰ ‡ f d d †  t j d d … Dƒ ‰ ‡ f d d †  t j Dƒ t _ g  } x
ˆ D]} d } | d t
 | ƒ … | k rÞd d l m }	 |	 j ƒ  t |	 j j ƒ  ƒ }
 | t
 | ƒ d … j ƒ  } } | |
 k rÀi  } y | | } WnB t k
 r¹| | j ƒ  k rµt d | t
 | ƒ d … ƒ Yn X| } ˆ j | ƒ } d | ˆ | <qÞqÞWx$ | D] } ˆ j | ƒ } ˆ | =qëWt
 ˆ ƒ d k s/t t ˆ ƒ ƒ ‚ t j d ƒ ‰ ‡ f d d †  t j d d … Dƒ ‰	 ‡	 f d d †  t j Dƒ t _ d ˆ k rœˆ	 j d ƒ d  } t j d d … } x d! d" d# g D]p } | t j k rÅt j j | ƒ } ˆ j	 t j | | d … ƒ t j | d =t j | =t j d d … } qÅWd$ t j k r™t j j d$ ƒ } t j | d } t j | d =t j | =t j d d … } nV d d% l m } t d& d' | ƒ \ } } | | } x! | D] } | | ƒ } | rÒPqÒWt d& d( | ƒ \ } } t d) d& | d* d ƒ\ } } t d+ d& | d* d ƒ\ } } t d, d& | d* d ƒ\ } } t d- d& | d* d ƒ\ } } t d. d& | d* d ƒ\ } } x t t
 | ƒ ƒ D]m } | | j d/ d ƒ } t
 | ƒ d k rë| j d ƒ t
 | ƒ d k rt | ƒ | | <q°t d0 | ƒ q°Wd d1 l m } i  } | rV| j	 | j d2 g  ƒ ƒ d d3 l  m! } m" } d4 | d5 | d2 | d6 | d7 | d8 | d9 | d: | d; ˆ i	 } ˆ
 rd d< l# m$ }  xA ˆ
 D]9 }! | |! ƒ } | sñt% d= t |! ƒ ƒ |  | |  qÅW| |   }" t j d g ˆ	 t _ t j j	 d> d? | d@ | dA dB g ƒ ˆ rgt j j	 dC g ˆ ƒ ˆ r„t j j	 dD g ˆ ƒ | dE |" g ƒ | rÓt& j' j( | ƒ rÓd d l) }# t% dF | ƒ |# j* | ƒ d S)Iz 
    Do it all in one call!
    r   Nz-cz--build-dirr   z[-][-]link[-]c                s%   g  |  ] } ˆ  j  | ƒ r | ‘ q SrB   )rr   )rP   Ú_m)Ú_reg1rB   rC   rR   	  s   	 zrun_compile.<locals>.<listcomp>c                s"   g  |  ] } | ˆ  k r | ‘ q SrB   rB   )rP   r}   )Úsysinfo_flagsrB   rC   rR   
  s   	 c             S   s    g  |  ] } | d  d … ‘ q S)é   NrB   )rP   r=   rB   rB   rC   rR     s   	 zF[-][-]((no[-]|)(wrap[-]functions|lower)|debug[-]capi|quiet)|[-]includec                s%   g  |  ] } ˆ  j  | ƒ r | ‘ q SrB   )rr   )rP   r}   )Ú_reg2rB   rC   rR     s   	 c                s"   g  |  ] } | ˆ  k r | ‘ q SrB   rB   )rP   r}   )Ú
f2py_flagsrB   rC   rR     s   	 úonly:úskip:r   c                s"   g  |  ] } | ˆ  k r | ‘ q SrB   rB   )rP   r}   )Úf2py_flags2rB   rC   rR     s   	 z<[-][-]((f(90)?compiler([-]exec|)|compiler)=|help[-]compiler)c                s%   g  |  ] } ˆ  j  | ƒ r | ‘ q SrB   )rr   )rP   r}   )Ú_reg3rB   rC   rR   "  s   	 c                s"   g  |  ] } | ˆ  k r | ‘ q SrB   rB   )rP   r}   )Ú
flib_flagsrB   rC   rR   #  s   	 zN[-][-]((f(77|90)(flags|exec)|opt|arch)=|(debug|noopt|noarch|help[-]fcompiler))c                s%   g  |  ] } ˆ  j  | ƒ r | ‘ q SrB   )rr   )rP   r}   )Ú_reg4rB   rC   rR   &  s   	 c                s"   g  |  ] } | ˆ  k r | ‘ q SrB   rB   )rP   r}   )Úfc_flagsrB   rC   rR   '  s   	 z--fcompiler=)Ú	fcompilerzUnknown vendor: "%s"r   z[-][-](verbose)c                s%   g  |  ] } ˆ  j  | ƒ r | ‘ q SrB   )rr   )rP   r}   )Ú_reg5rB   rC   rR   C  s   	 c                s"   g  |  ] } | ˆ  k r | ‘ q SrB   rB   )rP   r}   )Úsetup_flagsrB   rC   rR   D  s   	 z--quietZuntitledz--include_pathsz--include-pathsz--f2cmapz-m)Úget_f2py_modulenamer   z[.]pyf([.]src|)z[.](o|a|so)z-Iru   z-Lz-lz-Uz-Dú=zInvalid use of -D:)Úget_infoÚinclude_dirs)ÚsetupÚ	ExtensionrH   ÚsourcesÚlibrary_dirsÚ	librariesÚdefine_macrosÚundef_macrosÚextra_objectsÚf2py_options)rW   z9No %s resources found in system (try `f2py --help-link`)
Úbuildz--build-tempz--build-basez--build-platlibr   Ú	config_fcÚ	build_extÚext_moduleszRemoving build directory %s
)rƒ   r„   r%   )+Útempfiler)   rk   rV   Ú
ValueErrorÚmkdtemprp   rq   r&   r.   rT   Únumpy.distutilsrŠ   Úload_all_fcompiler_classesra   Úfcompiler_classrU   ÚlowerÚKeyErrorÚvaluesr'   ÚAssertionErrorr-   Z!numpy.distutils.command.build_srcr   rz   rS   r/   ÚtupleÚnumpy.distutils.system_infor   ÚgetÚnumpy.distutils.corer‘   r’   Únumpy.distutils.misc_utilrW   r+   r0   r6   ÚexistsÚshutilÚrmtree)$rž   r[   Zremove_build_dirÚ	build_dirÚflÚaZdel_listrQ   rc   rŠ   Zallowed_keysÚnvÚovZvmapr?   r“   Úoptnamer   Z	pyf_filesr=   r˜   r   r”   r•   r—   r–   Ú
name_valuer   Znum_infor‘   r’   Úext_argsrW   ÚnÚextr®   rB   )r~   r   r†   rˆ   r‹   r‚   r…   r‰   r‡   rŒ   r   rC   Úrun_compileò  s   
&	&		&	&
 #$&
rº   c              C   sO  d t  j d d  … k rD t  j j d ƒ d d l m }  |  ƒ  d  Sd t  j d d  … k r} t  j j d ƒ t  j d ƒ n” d t  j d d  … k r© t  j j d ƒ nh d t  j d d  … k rå t  j j d	 ƒ t  j j d ƒ n, d
 t  j d d  … k rt  j j d
 ƒ n  d t  j d d  … k r4t	 ƒ  n t
 t  j d d  … ƒ d  S)Nz--help-linkr   r   )Úshow_allz
--g3-numpyz*G3 f2py support is not implemented, yet.\nz--2e-numericz--2e-numarrayz
-DNUMARRAYz
--2e-numpyz-c)r)   rk   Úremover©   r»   ÚstderrrI   r*   r&   rº   rm   )r»   rB   rB   rC   Úmain  s$    
r¾   )&Ú__doc__Ú
__future__r   r   r   r)   r0   Úpprintrp   r   r   r   r   r	   r
   r   r   r   Úversionr(   r½   rI   r,   Zshowr+   ÚnumpyZnumpy_versionÚImportErrorr5   rD   rL   r^   rW   rm   rz   r|   rº   r¾   rB   rB   rB   rC   Ú<module>   s>   			‡”$"
C«