ó °¿v]c@`s¹dZddlmZmZmZddd!ZddlmZejZddl m Z m Z m Z m Z mZdd lmZdd lmZdd lmZdd „Zd „ZdS(sM Build common block mechanism for f2py2e. Copyright 2000 Pearu Peterson all rights reserved, Pearu Peterson 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 10:57:33 $ Pearu Peterson i(tdivisiontabsolute_importtprint_functions$Revision: 1.19 $i iÿÿÿÿi(t __version__(thasbodyt hascommonthasnotet isintent_hidetoutmess(t capi_maps(t func2subr(t rmbadnamec `sõg}tˆƒrbx„ˆdjƒD]8\}}‡fd†|Dƒ}|j|||fƒq#Wn7tˆƒr™x(ˆdD]}|t|dƒ}qyWn|rñg}g}x?|D]7} | d|kr²|j| dƒ|j| ƒq²q²W|S|S(Ntcommonc`s!i|]}ˆd||“qS(tvars((t.0tv(tblock(sg/home/ec2-user/environment/lambda-staging/venv/lib64/python2.7/dist-packages/numpy/f2py/common_rules.pys #s tbodyi(RtitemstappendRtfindcommonblocks( Rttoptrettkeytvaluetvars_tbttrettnamestt((Rsg/home/ec2-user/environment/lambda-staging/venv/lib64/python2.7/dist-packages/numpy/f2py/common_rules.pyRs"   c C`sigd6gd6dgd6}dg}|d„}dg}|d„}dg}|d„}dg}|d „} x<t|ƒD].\} } } | jƒ} gg}}x;| D]3}t| |ƒrÔ|j|ƒq®|j|ƒq®W|rtd | d j|ƒd j|ƒfƒntd | d j|ƒfƒ|d | ƒ|dƒx$| D]}|tj| |ƒƒqSW| dkr™|dd j| ƒƒn|d| d j| ƒfƒ|dd j|ƒƒ|dƒ|d| ƒg}x°|D]¨}tj | |ƒ}tj |}tj || |ƒ}|drP|jd|dƒn |jdƒ|dj ƒ}|s|d}n|d||d||fƒqòW|dƒt |ƒ}d jg|D]}d|^qÁƒ}|d| |fƒ|dƒx"|D]}|d| |fƒqÿW|dƒd | kr<d!}nd"}|d#|| | jƒd jd$gt|ƒƒfƒ|d%| ƒ|d&|| | jƒ| fƒ|d'ƒ|d(| | | fƒ| jd d)ƒ}| d*|ƒ| d+ƒx||D]t}| d,tj|| |ƒƒt| |ƒrø| |d-}t|tƒr[d.j|ƒ}n| d/|ƒqøqøW| d0ƒ|djd1| d jtd2„||ƒƒfƒqW||d<||d<|d3|d4ŽR!itlatexdoci(RtlowerRRRtjoinR tvar2fixfortranR tgetctypet c2capi_mapt getarrdimststripR tuppertlentreplacet getarrdocsignRt isinstancetlisttmap(tmRtfwrapR$tchooksR%tihooksR&tdocR'tnametvnamesR t lower_namethnamestinamestntidimstcttattdmtdmstinames1R#t inames1_tpsR/ttnameR0((sg/home/ec2-user/environment/lambda-staging/venv/lib64/python2.7/dist-packages/numpy/f2py/common_rules.pyt buildhooks3s¨            &         "  &     !     -   N(t__doc__t __future__RRRRR!tversiont f2py_versiontauxfuncsRRRRRR R t crackfortranR RRU(((sg/home/ec2-user/environment/lambda-staging/venv/lib64/python2.7/dist-packages/numpy/f2py/common_rules.pyts  (