Ë
    pPêj÷¥  ã                  óæ  — U d Z ddlmZ ddl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mZmZmZm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" ddl#m$Z$m%Z%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/m0Z0  G d„ de«      Z1 e1ddgg dg«       e1ddgddgdg«       e1dg d¢g d ¢d!g«       e1d"g d#¢d$d%gd&g«       e1d'd(gd)gg «       e1d*d+gd,gd-g«       e1d.d/gd0gd1g«      gZ2	 ddl3Z3er2ejj                  d2k\  rdd3l3m6Z6 ndd3l7m6Z8 dd4lm9Z9 dd3l3m6Z: e:e8z  Z6d5e;d6<   ejj                  d2k\  r	dd7l<m=Z=m>Z> ndd7l<m=Z=m>Z> dUd8„Z?dVd9„Z@dWd:„ZAdXdYd<„ZB	 	 	 	 	 	 	 	 	 	 dZd=„ZCd[d>„ZD	 	 	 	 	 	 	 	 	 	 d\d?„ZEd]d@„ZFd^dA„ZG	 	 	 	 	 	 	 	 	 	 	 	 d_dB„ZH	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d`dC„ZI	 	 	 	 	 	 	 	 	 	 dadD„ZJdbdE„ZKdFZLd;aMdVdG„ZN	 	 	 	 	 	 	 	 	 	 dcdH„ZO ej                   dI«      ZQdddJ„ZRdedK„ZS	 	 	 	 	 	 	 	 dfdL„ZTd;ddd;dMœ	 	 	 	 	 	 	 	 	 	 	 	 	 dgdN„ZUddOdPd;d;d;dQœ	 	 	 	 	 	 	 	 	 	 	 	 	 dhdR„ZVdd;dOdPd;d;d;dddd;dd;d;d;d;dSœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 didT„ZWy# e4$ r Y �Œqw xY w)ja‹  Support for building extensions using mypyc with distutils or setuptools

The main entry point is mypycify, which produces a list of extension
modules to be passed to setup. A trivial setup.py for a mypyc built
project, then, looks like:

    from setuptools import setup
    from mypyc.build import mypycify

    setup(name='test_module',
          ext_modules=mypycify(['foo.py']),
    )

See the mypycify docs for additional arguments.

mypycify can integrate with either distutils or setuptools, but needs
to know at import-time whether it is using distutils or setuputils. We
hackily decide based on whether setuptools has been imported already.
é    )ÚannotationsN)ÚIterable)ÚTYPE_CHECKINGÚAnyÚ
NamedTupleÚNoReturnÚcast)ÚBuildSource)ÚCompileError)ÚFileSystemCache)Úprocess_options)ÚOptions)Úwrite_junit_xml)Úgenerate_annotated_html)Ú
emitmodule)ÚIS_FREE_THREADEDÚRUNTIME_C_FILESÚshared_lib_name)ÚErrors)Ú	SourceDep)Úformat_modules)Úexported_name)ÚCompilerOptionsc                  ó6   — e Zd ZU ded<   ded<   ded<   ded<   y)ÚModDescÚstrÚmoduleú	list[str]Úc_filesÚother_filesÚinclude_dirsN)Ú__name__Ú
__module__Ú__qualname__Ú__annotations__© ó    úP/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/mypyc/build.pyr   r   0   s   … ØƒKØÓØÓØÔr'   r   zlibrt.internalzinternal/librt_internal.cÚinternalzlibrt.stringszstrings/librt_strings.czstrings/librt_strings.hzstrings/librt_strings_common.hÚstringszlibrt.base64)zbase64/librt_base64.czbase64/lib.czbase64/codec_choose.czbase64/tables/tables.czbase64/arch/generic/codec.czbase64/arch/ssse3/codec.czbase64/arch/sse41/codec.czbase64/arch/sse42/codec.czbase64/arch/avx/codec.czbase64/arch/avx2/codec.czbase64/arch/avx512/codec.czbase64/arch/neon32/codec.czbase64/arch/neon64/codec.c)zbase64/arch/avx/enc_loop_asm.czbase64/arch/avx2/enc_loop.czbase64/arch/avx2/enc_loop_asm.cz base64/arch/avx2/enc_reshuffle.cz base64/arch/avx2/enc_translate.czbase64/arch/avx2/dec_loop.cz base64/arch/avx2/dec_reshuffle.cz!base64/arch/generic/32/enc_loop.cz!base64/arch/generic/64/enc_loop.cz!base64/arch/generic/32/dec_loop.czbase64/arch/generic/enc_head.czbase64/arch/generic/enc_tail.czbase64/arch/generic/dec_head.czbase64/arch/generic/dec_tail.cz!base64/arch/ssse3/dec_reshuffle.czbase64/arch/ssse3/dec_loop.cz base64/arch/ssse3/enc_loop_asm.cz!base64/arch/ssse3/enc_translate.cz!base64/arch/ssse3/enc_reshuffle.czbase64/arch/ssse3/enc_loop.czbase64/arch/neon64/dec_loop.cz!base64/arch/neon64/enc_loop_asm.czbase64/codecs.hzbase64/env.hzbase64/lib_openmp.czbase64/tables/tables.hzbase64/tables/table_dec_32bit.hzbase64/tables/table_enc_12bit.hÚbase64z
librt.vecs)	zvecs/librt_vecs.czvecs/vec_i64.czvecs/vec_i32.czvecs/vec_i16.czvecs/vec_u8.czvecs/vec_float.czvecs/vec_bool.czvecs/vec_t.czvecs/vec_nested.czvecs/librt_vecs.hzvecs/vec_template.cÚvecsz
librt.timeztime/librt_time.cztime/librt_time.hzlibrt.randomzrandom/librt_random.czrandom/librt_random.hÚrandomzlibrt.threadingzthreading/librt_threading.czthreading/librt_threading.hÚ	threading©é   é   )Ú	Extension)Ú	TypeAliasr3   r2   )Ú	ccompilerÚ	sysconfigc                 óÚ   — dt         j                  v } t         j                  dk  r| sdd l}|j                  j
                  }|S | st        j                  d«       t        j
                  }|S )NÚ
setuptoolsr/   r   zerror: setuptools not installed)ÚsysÚmodulesÚversion_infoÚdistutils.coreÚcorer2   Úexitr7   )Úuse_setuptoolsÚ	distutilsÚextension_classs      r(   Úget_extensionrA   ¢   sa   € ð "¤S§[¡[Ð0€Nô ×Ñ˜'Ò!©.Ûà#Ÿ.™.×2Ñ2ˆð Ðñ	 Ü�H‰HÐ6Ô7Ü$×.Ñ.ˆàÐr'   c                 ó  — t        t        t        t        f   t        j                  «       «      } t
        j                  dk(  rI| d   j                  dd«      | d<   | d   j                  dd«      | d<   | d   j                  dd«      | d<   yy)z6Rewrite a bunch of config vars in pretty dubious ways.ÚdarwinÚLDSHAREDz
-arch i386Ú ÚLDFLAGSÚCFLAGSN)r	   Údictr   r5   Úget_config_varsr8   ÚplatformÚreplace)Úvarss    r(   Úsetup_mypycify_varsrM   ´   s„   € ô
 ””Sœ#�X‘¤	× 9Ñ 9Ó ;Ó<€DÜ
‡|�|�xÒð   
Ñ+×3Ñ3°LÀ"ÓEˆˆZÑØ˜y™/×1Ñ1°,ÀÓCˆˆY‰Ø˜h™×/Ñ/°¸bÓAˆˆXŠð  r'   c                ó.   — t        j                  | «       y ©N)r8   r=   )Úmessages    r(   ÚfailrQ   Â   s   € ä‡H�HˆWÕr'   Fc                óì   — | j                   rK| j                  d   › d| j                  d   › �}t        |||rd |ini | j                   || j                  «       |rt	        dj                  |«      «       y y )Nr   Ú_é   ú
)Ú	junit_xmlÚpython_versionr   rJ   ÚprintÚjoin)ÚoptionsÚmessagesÚdtÚseriousÚ
py_versions        r(   Úemit_messagesr_   Ç   s}   € à×ÒØ×.Ñ.¨qÑ1Ð2°!°G×4JÑ4JÈ1Ñ4MÐ3NÐOˆ
ÜØØÙ (ˆT�8Ñ¨bØ×ÑØØ×Ñô	
ñ Üˆd�i‰i˜Ó!Õ"ð r'   c                ó@  — t        | |d¬«      \  }}|�*t        |«      }|D �cg c]  }|j                  |v sŒ|‘Œ }}n|}|j                  r|D �	cg c]  }	|	j                  sŒ|	‘Œ }}	|s|||fS t        j
                  dd |_        |j                  d   dk(  rt        d«       |j                  st        d«       d|_	        d|_
        |j                  |_        d|_        |D ]+  }
d|j                  j                  |
j                  i «      d<   Œ- |||fS c c}w c c}	w )	zCConstruct mypy BuildSources and Options from file and options listsT)ÚfscacheÚmypycNé   r   zPython 2 not supportedz0Disabling strict optional checking not supportedrb   )r   ÚsetÚpathÚseparater8   r:   rW   rQ   Ústrict_optionalÚshow_tracebackÚexport_typesÚincrementalÚpreserve_astsÚper_module_optionsÚ
setdefaultr   )Úmypy_optionsÚonly_compile_pathsÚcompiler_optionsra   Úall_sourcesrZ   Ú	paths_setÚsÚmypyc_sourcesÚsrcÚsources              r(   Úget_mypy_configrw   ×   s6  € ô +¨<ÀÐPTÔUÑ€K�ØÐ%ÜÐ*Ó+ˆ	Ø$/ÖG˜q°1·6±6¸YÒ3FšÐGˆÑGà#ˆà× Ò Ø(5ÖB ¸¿»šÐBˆÐBáØ˜k¨7Ð2Ð2ô !×-Ñ-¨b¨qÐ1€GÔà×Ñ˜aÑ  AÒ%ÜÐ%Ô&Ø×"Ò"ÜÐ?Ô@Ø!€GÔà€GÔà*×3Ñ3€GÔØ €GÔàò QˆØLPˆ×"Ñ"×-Ñ-¨f¯m©m¸RÓ@ÀÒIðQð ˜+ wÐ.Ð.ùò9 Hùò
 Cs   £D·DÁDÁ"Dc                ó€   — | j                   d uxr/ t        j                   j                  | j                   «      d   dk(  S )NrT   z__init__.py)re   ÚosÚsplit©rv   s    r(   Úis_package_sourcer|      s1   € Ø�;‰;˜dÐ"ÒU¤r§w¡w§}¡}°V·[±[Ó'AÀ!Ñ'DÈÑ'UÐUr'   c           
     ó®  — d| j                  dt        j                  «      z  }t        j                  j	                  ||«      }t
        rd}nd}t        t        j                  j	                  t        «       |«      «      5 }|j                  «       }ddd«       t        |j                  |t        |«      t        | «      ¬«      «       |S # 1 sw Y   Œ;xY w)a#  Create a C extension shim with a passthrough PyInit function.

    Arguments:
        full_module_name: the dotted full module name
        module_name: the final component of the module name
        dir_name: the directory to place source code
        group_name: the name of the group
    z%s.cú.z"module_shim_no_gil_multiphase.tmplzmodule_shim.tmplN)ÚmodnameÚlibnameÚfull_modname)rK   ry   Úsepre   rY   r   ÚopenÚinclude_dirÚreadÚ
write_fileÚformatr   r   )	Úfull_module_nameÚmodule_nameÚdir_nameÚ
group_nameÚcnameÚcpathÚ	shim_nameÚfÚshim_templates	            r(   Úgenerate_c_extension_shimr‘     s¹   € ð Ð%×-Ñ-¨c´2·6±6Ó:Ñ:€EÜ�G‰G�L‰L˜ 5Ó)€Eåà8‰	à&ˆ	ô 
Œb�g‰g�l‰lœ;›=¨)Ó4Ó	5ð !¸ØŸ™›ˆ÷!ô ØØ×ÑØÜ# JÓ/Ü&Ð'7Ó8ð 	ó 	
ôð €L÷!ð !ús   Â CÃCc                óÒ   — t        | «      dk(  r| d   S t        j                  «       }|j                  dj	                  | «      j                  «       «       |j                  «       dd S )zGProduce a probably unique name for a group from a list of module names.rT   r   ú,Né   )ÚlenÚhashlibÚsha1ÚupdaterY   ÚencodeÚ	hexdigest)r9   Úhs     r(   r‹   r‹   )  sT   € ä
ˆ7ƒ|�qÒØ�q‰zÐä�‰‹€AØ‡H�HˆS�X‰X�gÓ×%Ñ%Ó'Ô(Ø�;‰;‹=˜˜"ÐÐr'   c                 ó¾   — t         j                  j                  t         j                  j                  t         j                  j	                  t
        «      «      d«      S )z9Find the path of the lib-rt dir that needs to be includedzlib-rt)ry   re   rY   ÚabspathÚdirnameÚ__file__r&   r'   r(   r„   r„   3  s1   € ä�7‰7�<‰<œŸ™Ÿ™¬¯©¯©¼Ó(AÓBÀHÓMÐMr'   c                ó˜  — t        j                   «       }	 t        j                  | ||||«      }	 t        j                   «       }j                  r/t	        ||j                  ||z
  «       t        j                  d«       |j                  rt        d||z
  d›d�«       t        |«      }	t        j                  |||	|¬«      \  }
}}t        j                   «       }t	        ||	j                  «       ||z
  «       |	j                  rt        j                  d«       |j                  rt        d||z
  d›d�«       |j                   rt#        |j                   ||
|«       t%        t        j&                  |
«      d	„ ¬
«      }|dj)                  t+        |
«      «      |f|j,                  j.                  j1                  «        S # t        $ rY}t	        ||j
                  t        j                   «       |z
  |j                   ¬«       t        j                  d«       Y d}~�Œìd}~ww xY w# j,                  j.                  j1                  «        w xY w)a,  Drive the actual core compilation step.

    The groups argument describes how modules are assigned to C
    extension modules. See the comments on the Groups type in
    mypyc.emitmodule for details.

    Returns the C source code, (for debugging) the pretty printed IR, and list of SourceDeps.
    )r]   rT   NzParsed and typechecked in z.3frs   )rp   ÚerrorsÚgroupszCompiled to C in c                ó   — | j                   S rO   )re   )Úds    r(   ú<lambda>zgenerate_c.<locals>.<lambda>k  s   € Ð\]×\bÑ\b€ r'   ©ÚkeyrU   )Útimer   Úparse_and_typecheckr   r_   r[   Ú
use_stdoutr8   r=   r¡   ÚverboserX   r   Úcompile_modules_to_cÚnew_messagesÚ
num_errorsÚmypyc_annotation_filer   ÚsortedÚcollect_source_dependenciesrY   r   ÚmanagerÚ	metastoreÚclose)ÚsourcesrZ   r¢   ra   rp   Út0ÚresultÚeÚt1r¡   r9   ÚctextÚmapperÚt2Úsource_depss                  r(   Ú
generate_cr¾   8  sÐ  € ô 
�‰‹€BðÜ×/Ñ/Ø�WÐ.°¸ó
ˆð)Ü�Y‰Y‹[ˆØ�=Š=Ü˜' 6§=¡=°"°r±'Ô:Ü�H‰H�QŒKà×#Ò#ÜÐ.¨r°B©w°s¨m¸1Ð=Ô>ä˜“ˆÜ!+×!@Ñ!@ØÐ%5¸fÈVô"
Ñˆ�˜ô �Y‰Y‹[ˆÜ�g˜v×2Ñ2Ó4°b¸2±gÔ>Ø×Òä�H‰H�QŒKà×#Ò#ÜÐ% b¨2¡g¨c ]°!Ð4Ô5à×(Ò(Ü# G×$AÑ$AÀ6È7ÐTZÔ[ô œZ×CÑCÀGÓLÑRbÔcˆØ�d—i‘i¤¨wÓ 7Ó8¸+ÐEà�‰× Ñ ×&Ñ&Õ(øôC ò Ü�g˜qŸz™z¬4¯9©9«;¸Ñ+;È!Ï,É,ÐFVÕXÜ�‰��ŠûðûðB 	�‰× Ñ ×&Ñ&Õ(ús$   –F> °E)H# Æ>	H ÇAHÈH È#&I	c                ór  —  t        «       t        |«      |t        «       |g|z   ||¬«      g}| D ]…  }|j                  j	                  d«      d   }	t        |j                  |	||«      }
|j                  }|j                  sJ ‚t        |«      r|dz  }|j                   t        «       ||
g|¬«      «       Œ‡ |S )aã  Produce the list of extension modules when a shared library is needed.

    This creates one shared library extension module that all the
    others import, and one shim extension module for each
    module in the build. Each shim simply calls an initialization function
    in the shared library.

    The shared library (which lib_name is the name of) is a Python
    extension module that exports the real initialization functions in
    Capsules stored in module attributes.
    )rµ   r!   ÚdependsÚextra_compile_argsr~   éÿÿÿÿz	.__init__)rµ   rÁ   )	rA   r   r„   r   rz   r‘   re   r|   Úappend)rµ   r‹   ÚcfilesÚdepsÚ	build_dirrÁ   Úextra_include_dirsÚ
extensionsrv   r‰   Ú	shim_filerˆ   s               r(   Úbuild_using_shared_librÊ   q  sÎ   € ð* 	Œ‹Ü˜JÓ'ØÜ%›-¨Ð3Ð6HÑHØØ1ô	
ð€Jð ò 
ˆØ—m‘m×)Ñ)¨#Ó.¨rÑ2ˆÜ-¨f¯m©m¸[È)ÐU_Ó`ˆ	ð "Ÿ=™=ÐØ�{Š{Ðˆ{Ü˜VÔ$Ø Ñ+ÐØ×ÑØŒM‹OØ ¨9¨+ÐJ\ôõ	
ð
ð  Ðr'   c                ó^   —  t        «       | d   j                  |t        «       g|z   |¬«      gS )z–Produce the list of extension modules for a standalone extension.

    This contains just one module, since there is no need for a shared module.
    r   ©rµ   r!   rÁ   )rA   r   r„   )rµ   rÄ   rÁ   rÇ   s       r(   Úbuild_single_modulerÍ   ¢  s:   € ð 	Œ‹Ø�A‰J×ÑØÜ%›-˜Ð+=Ñ=Ø1ô		
ðð r'   c                óú  — |j                  d«      }	 t        | d«      5 }|j                  «       }ddd«       |k7  r–t	        j
                  t        j                  j                  | «      d¬«       t        | d«      5 }|j                  |«       ddd«       t	        j                  | «      j                  dz   }t	        j                  | ||f¬«       yy# 1 sw Y   Œ¥xY w# t        $ r d}Y Œµw xY w# 1 sw Y   ŒcxY w)	z½Write data into a file.

    If the file already exists and has the same contents we
    want to write, skip writing so as to preserve the mtime
    and avoid triggering recompilation.
    úutf-8ÚrbNT)Úexist_okÚwbrT   )Útimes)r™   rƒ   r…   ÚOSErrorry   Úmakedirsre   rž   ÚwriteÚstatÚst_mtimeÚutime)re   ÚcontentsÚencoded_contentsr�   Úold_contentsÚgÚ	new_mtimes          r(   r†   r†   ¶  sÝ   € ð  —‘ wÓ/ÐðÜ�$˜Óð 	2 Ø)*¯©«ˆL÷	2ð Ð'Ò'Ü
�‰”B—G‘G—O‘O DÓ)°DÕ9Ü�$˜Óð 	& Ø�G‰GÐ$Ô%÷	&ô —G‘G˜D“M×*Ñ*¨QÑ.ˆ	Ü
�‰�˜i¨Ð3Ö4ð (÷		2ð 	2ûäò ØŠðú÷	&ð 	&ús3   “C  ŸC°C  Á=C1ÃCÃC  Ã C.Ã-C.Ã1C:Ú"_mypyc_skip_redundant_inplace_copyc                 ób   ‡‡— t         ryda ddlm}  | j                  Šdd„Šdˆˆfd„}|| _        y)	aÿ  Skip redundant `.so` copies for extensions we generated.

    setuptools' copy_extensions_to_source rewrites every `.so` in the
    source tree on every build_ext, even when nothing changed. On macOS
    this invalidates AMFI's signature cache (~100 ms re-verification per
    `.so` on the next import), eating most of the separate=True
    incremental speedup.

    The patch is global because copy_extensions_to_source runs during
    setup()'s build_ext command, after mypycify() has already returned;
    we can't scope a context manager around it. Instead the skip only
    fires for extensions tagged by mypycify (via the marker attribute),
    so other setuptools users in the same setup.py see the unmodified
    upstream behavior, including stub writes.
    NTr   )Ú	build_extc                ó  — 	 t        j                  | «      }t        j                  |«      }|j                  |j                  k(  xr+ t	        |j
                  «      t	        |j
                  «      k(  S # t        $ r Y yw xY w©NF)ry   r×   rÔ   Úst_sizeÚintrØ   )ÚaÚbÚsaÚsbs       r(   Ú_files_matchzA_patch_setuptools_copy_extensions_to_source.<locals>._files_matchï  sf   € ð	Ü—‘˜“ˆBÜ—‘˜“ˆBð �z‰z˜RŸZ™ZÑ'ÒP¬C°·±Ó,<ÄÀBÇKÁKÓ@PÑ,PÐPøô ò 	Ùð	ús   ‚*A2 Á2	A>Á=A>c                óÒ   •‡ ‡— ‰ j                  d«      Šdˆˆˆ fd„}‰ j                  }|D �cg c]  } ||«      rŒ|‘Œ c}‰ _        	  ‰‰ «       |‰ _        y c c}w # |‰ _        w xY w)NÚbuild_pyc                ód   •— t        | t        d«      sy‰j                  ‰| «      \  }} ‰||«      S rã   )ÚgetattrÚ_MYPYC_EXTENSION_MARKERÚ_get_inplace_equivalent)ÚextÚinplace_fileÚregular_filerê   rì   Úselfs      €€€r(   Úis_redundantzR_patch_setuptools_copy_extensions_to_source.<locals>.patched.<locals>.is_redundantý  s8   ø€ Ü˜3Ô 7¸Ô?ØØ)-×)EÑ)EÀhÐPSÓ)TÑ&ˆL˜,Ù ¨lÓ;Ð;r'   )rñ   r   ÚreturnÚbool)Úget_finalized_commandrÈ   )rô   rõ   Úsavedrñ   rì   rê   Úoriginals   `   @€€r(   Úpatchedz<_patch_setuptools_copy_extensions_to_source.<locals>.patchedú  s`   ú€ Ø×-Ñ-¨jÓ9ˆ÷	<ð —‘ˆØ*/ÖI 3±|ÀCÕ7Hš3ÒIˆŒð	$Ù�TŒNà#ˆD�Oùò	 Jøð $ˆD�Oús   ­A»AÁA Á	A&)ræ   r   rç   r   rö   r÷   )rô   r   rö   ÚNone)Ú_setuptools_patch_appliedÚsetuptools.command.build_extrá   Úcopy_extensions_to_source)Ú
_build_extrû   rê   rú   s     @@r(   Ú+_patch_setuptools_copy_extensions_to_sourcer  Ö  s4   ù€ õ" !ØØ $ÐåDà×3Ñ3€Hó	Qö$ð* ,3€JÕ(r'   c                ó.  — |du r| D �cg c]  }|gdf‘Œ	 }}nút        |t        «      råg }t        «       }|D ]›  \  }}|D �	ch c]!  }	t        j                  j                  |	«      ’Œ# }
}	| D �cg c];  }|j                  �-t        j                  j                  |j                  «      |
v r|‘Œ= }}|j                  ||f«       |j                  |«       Œ� | D �cg c]	  }||vsŒ|‘Œ }}|r(|j                  |D �cg c]  }|gdf‘Œ	 c}«       n| dfg}t        |«      D ]I  \  }\  }}t        |d„ ¬«      }|r*|s(|�|}n#t        |D �cg c]  }|j                  ‘Œ c}«      }||f||<   ŒK t        |d„ ¬«      }|S c c}w c c}	w c c}w c c}w c c}w c c}w )al  Compute Groups given the input source list and separate configs.

    separate is the user-specified configuration for how to assign
    modules to compilation groups (see mypycify docstring for details).

    This takes that and expands it into our internal representation of
    group configuration, documented in mypyc.emitmodule's definition
    of Group.
    TNc                ó   — | j                   S rO   ©r   r{   s    r(   r¥   z"construct_groups.<locals>.<lambda>:  s
   € °·±€ r'   r¦   c                óX   — | d   xs d| d   D �cg c]  }|j                   ‘Œ c}fS c c}w )NrT   rE   r   r  )rÝ   rs   s     r(   r¥   z"construct_groups.<locals>.<lambda>B  s)   € ¨1¨Q©4ª:°2È!ÈAÉ$Ö7OÀQ¸¿»Ò7OÐ*P€ ùÒ7Os   �')Ú
isinstanceÚlistrd   ry   re   ÚnormpathrÃ   r˜   ÚextendÚ	enumerater°   r‹   r   )rµ   rf   Úuse_shared_libÚgroup_name_overriderv   r¢   Úused_sourcesÚfilesÚnamer�   Únormalized_filesru   Úgroup_sourcesÚunused_sourcesÚiÚgroups                   r(   Úconstruct_groupsr    s·  € ð  �4ÑØDKÖ$L¸& v h°Ò%5Ð$LˆÑ$LÜ	�HœdÔ	#ØˆÜ“uˆØ#ò 	/‰KˆE�4Ø=BÖC¸¤§¡× 0Ñ 0°Õ 3ÐCÐÐCð #öàØ—8‘8Ð'¬B¯G©G×,<Ñ,<¸S¿X¹XÓ,FÐJZÑ,Zò ðˆMð ð
 �M‰M˜=¨$Ð/Ô0Ø×Ñ Õ.ð	/ð *1ÖL #°C¸|Ò4Kš#ÐLˆÐLÙØ�M‰M¸.ÖI°˜V˜H dÒ+ÒIÕJà˜D�/Ð"ˆô
 & fÓ-ò "Ñˆ‰=ˆE�4Ü�uÑ">Ô?ˆÙ¡$Ø"Ð.Ø*‘ä!¸uÖ"E°V 6§=£=Ò"EÓF�Ø˜D�MˆˆqŠ	ð"ô �FÑ PÔQ€FØ€MùòA %Mùò
  Dùòùò MùâIùò #Fs*   ‰E9Á &E>Á,A FÃ	FÃ"FÃ9FÅF
z%#\s*include\s+(?:"([^"]+)"|<([^>]+)>)c                ó–   — g }t         j                  | «      D ].  \  }}|r|j                  d|f«       Œ|j                  d|f«       Œ0 |S )z�Return each `#include` directive's (is_angled, name) from `contents`.

    is_angled=False for `#include "foo"`, True for `#include <foo>`.
    FT)Ú_INCLUDE_REÚfindallrÃ   )rÚ   ÚoutÚquotedÚangleds       r(   Ú_extract_includesr  N  sQ   € ð
 #%€CÜ%×-Ñ-¨hÓ7ò '‰ˆ�ÙØ�J‰J˜˜v�Õ'à�J‰J˜˜f�~Õ&ð	'ð
 €Jr'   c                ó¦   — t        d„ | D «       «      sJ d«       ‚t        «       }| D ]  \  }}|j                  t        |«      «       Œ! t	        |«      S )al  Find all the headers directly included by a group of cfiles.

    Returns a sorted, deduplicated list of `(is_angled, header_name)` pairs.
    Callers that only need the names can ignore the bool, but it is needed by
    `resolve_cfile_deps` to apply the correct preprocessor search order.

    We do this by just regexping the source, which is a bit simpler than
    properly plumbing the data through. Transitive header-to-header includes
    are picked up by `resolve_cfile_deps` in `mypyc_build`, which can read
    the on-disk headers after every group has written its files.

    Arguments:
        cfiles: A list of (file name, file contents) pairs. Contents must be
            non-empty; callers handling cached groups must re-read the .c
            from disk before calling, otherwise direct includes are missed
            and Extension.depends ends up empty.
    c              3  ó&   K  — | ]	  \  }}|–— Œ y ­wrO   r&   )Ú.0rS   rÚ   s      r(   ú	<genexpr>z"get_header_deps.<locals>.<genexpr>n  s   è ø€ ò Ù �Q˜Œñùs   ‚z0get_header_deps requires non-empty file contents)Úallrd   r˜   r  r°   )rÄ   ÚheadersrS   rÚ   s       r(   Úget_header_depsr#  \  se   € ô$ ñ Ø$*ôô ð :à9ó:ð ô &)£U€GØò 4‰ˆˆ8Ø�‰Ô(¨Ó2Õ3ð4ô �'‹?Ðr'   c                óÊ  — t        «       }|D ��cg c]
  \  }}| ||f‘Œ }}}|�r|j                  «       \  }}}|r|fn||f}|D ]õ  }	t        j                  j	                  t        j                  j                  |	|«      «      }
t        j                  j                  |
«      sŒ`|
|v r n’|j                  |
«       |
j                  d«      rm	 t        |
d¬«      5 }|j                  «       }ddd«       t        j                  j                  |
«      }t        «      D ]  \  }}|j                  |||f«       Œ  n |r�Œ|S c c}}w # 1 sw Y   Œ^xY w# t        $ r d}Y Œnw xY w)a  
    Resolve a .c file's `#include`s to on-disk paths, walking transitively through resolved headers.

    The C preprocessor resolves `#include "foo"` against the includer's directory first, then via
    -I, while `#include <foo>` only uses -I. We mirror that exactly: quoted includes are searched
    in (includer_dir, target_dir) order, and angled includes are searched in target_dir only.
    `target_dir` is the only -I path that holds files we generate; anything we cannot resolve under
    it (or, for quoted form, the includer's dir) is dropped. Other headers like `<Python.h>` and
    `<CPy.h>` live elsewhere and do not change between builds, so they are not real dependencies
    for incremental purposes.

    The walk is transitive: each resolved header is opened and scanned for its own `#include`
    directives. Without this, cross-group export-table headers reached via `__native_internal_<mod>.h`
    (which includes `<other_group/__native_other.h>`) would be missed, and edits that shift struct
    offsets in `other_group` would not trigger a recompile of the consumer's .o file. Its baked-in
    offsets would then resolve to whatever class/function now occupies that slot => runtime corruption.

    Returns a set of resolved paths suitable for use as an Extension.depends list.
    z.hrÏ   ©ÚencodingNrE   )rd   Úpopry   re   r  rY   ÚexistsÚaddÚendswithrƒ   r…   rÔ   rž   r  rÃ   )Ú	cfile_dirÚdirect_includesÚ
target_dirÚresolvedÚ	is_angledÚdepÚworklistÚ
search_dirÚsearch_basesÚbaseÚ	candidater�   Úheader_contentsÚsub_dirÚ
sub_angledÚsubs                   r(   Úresolve_cfile_depsr:  x  sa  € ô, ›€Hð ;J÷-Ù(6¨	°3ˆ�I˜sÒ#ð-€Hñ -ò Ø%-§\¡\£^Ñ"ˆ
�I˜sñ )2˜
‘}¸
ÀJÐ7OˆØ ò 	ˆDÜŸ™×(Ñ(¬¯©¯©°d¸CÓ)@ÓAˆIÜ—7‘7—>‘> )Ô,ØØ˜HÑ$ÙØ�L‰L˜Ô#ð ×!Ñ! $Ô'ð)Ü˜i°'Ô:ð 3¸aØ*+¯&©&«(˜÷3ô Ÿ'™'Ÿ/™/¨)Ó4�Ü'8¸Ó'Iò @‘O�J Ø—O‘O W¨j¸#Ð$>Õ?ð@áð'	ó ð2 €Oùó;-÷*3ð 3ûäò )Ø&(’Oð)ús/   �EÃEÃEÃ+EÅE	ÅEÅE"Å!E")rf   ro   Úskip_cgen_inputÚalways_use_shared_libc          
     óz  — t        «       }t        | |||«      \  }}}	t        |«      dkD  xs* t        d„ |D «       «      xs t        d„ |D «       «      xs |}
t	        |||
|j
                  «      }|j
                  �t        |«      dk(  sJ d«       ‚g }|sIt        ||	|||¬«      \  }}}t        t        j                  j                  |j                  d«      |«       n+|d   }|d   D ���cg c]  \  }}}t        |||¬	«      ‘Œ }}}}g }|D ]Ê  }g }|D ]°  \  }}t        j                  j                  |j                  |«      }|r|	j                  st        ||«       |sFt        j                  j                  |«      r'	 t        |d
¬«      5 }|j!                  «       }ddd«       |j%                  |t'        ||fg«      f«       Œ² |j%                  |«       ŒÌ g }|D ]¯  }|D ��cg c]-  \  }}t        j                  j)                  |«      d   dk(  sŒ,|‘Œ/ }}}t+        «       }|D ]H  \  }}|j-                  t/        t        j                  j1                  |«      ||j                  «      «       ŒJ |j%                  |t3        |«      f«       Œ± |||fS c c}}}w # 1 sw Y   ŒÿxY w# t"        $ r Y �Œw xY wc c}}w )zRDo the front and middle end of mypyc building, producing and writing out C source.rT   c              3  ó8   K  — | ]  }d |j                   v –— Œ y­w)r~   Nr  ©r  Úxs     r(   r   zmypyc_build.<locals>.<genexpr>É  s   è ø€ Ò6 1ˆs�a—h‘hŒÑ6ùs   ‚c              3  ó2   K  — | ]  }t        |«      –— Œ y ­wrO   )r|   r?  s     r(   r   zmypyc_build.<locals>.<genexpr>Ê  s   è ø€ Ò;¨Ô  ×#Ñ;ùs   ‚Nz6If using custom group_name, only one group is expected)rp   zops.txtr   )r!   r)   rÏ   r%  ú.c)r   rw   r•   Úanyr  r‹   r¾   r†   ry   re   rY   r-  r   Úmypyc_skip_c_generationr(  rƒ   r…   rÔ   rÃ   r#  Úsplitextrd   r˜   r:  rž   r°   ) Úpathsrp   rf   ro   r;  r<  ra   rt   rq   rZ   r  r¢   r½   Úgroup_cfilesÚops_textre   Údirsr)   ÚpendingrÄ   Úper_cfile_depsÚcfilerº   Ú_fÚgroup_cfilenamesÚ	per_cfileÚcfrS   Ú
cfilenamesÚdeps_setÚ
cfile_fullÚ	dep_namess                                    r(   Úmypyc_buildrU  ³  sæ  € ô Ó€GÜ*9ØÐ!Ð#3°Wó+Ñ'€M�; ô 	ˆMÓ˜QÑò 	!ÜÑ6¨Ô6Ó6ò	!äÑ;¨]Ô;Ó;ò	!ð !ð	 ô ˜m¨X°~ÐGW×GbÑGbÓc€Fà×"Ñ"Ð.Ü�6‹{˜aÒÐYÐ!YÓYÐð $&€KÙÜ.8Ø˜ &¨'ÐDTô/
Ñ+ˆ�h ô 	”2—7‘7—<‘<Ð 0× ;Ñ ;¸YÓGÈÕRà& qÑ)ˆð +:¸!Ñ*<÷
ð 
á&��t˜Xô �d¨¸ÖAð
ˆò 
ð ?A€GØò 'ˆØCEˆØ"ò 	N‰LˆE�5Ü—G‘G—L‘LÐ!1×!<Ñ!<¸eÓDˆEñ ˜W×<Ò<Ü˜5 %Ô(ñ œRŸW™WŸ^™^¨EÔ2ðÜ˜e¨gÔ6ð *¸"Ø "§¡£	˜÷*ð ×!Ñ! 5¬/¸EÀ5¸>Ð:JÓ*KÐ"LÕMð%	Nð& 	�‰�~Õ&ð+'ð2 ;=ÐØò 	@ˆ	Ø&/×S™U˜R ´2·7±7×3CÑ3CÀBÓ3GÈÑ3JÈdÓ3R’bÐSˆ
ÑSÜ ›UˆØ%.ò 	Ñ!ˆJ˜	Ø�O‰OÜ"Ü—G‘G—O‘O JÓ/°Ð<L×<WÑ<Wóõð	ð 	×Ñ ¬V°HÓ-=Ð >Õ?ð	@ð Ð# [Ð0Ð0ùôa
÷6*ð *ûäò Úðüó Ts<   Ã+JÅ?J'ÆJÆJ'Ç%-J7ÈJ7ÊJ$Ê J'Ê'	J4Ê3J4Ú3Ú1©Úcompiler_typeÚ	opt_levelÚdebug_levelÚ
multi_fileÚexperimental_featuresÚ	log_tracec                ó*  — | €5t        j                  «       }t        j                  |«       |j                  } g }| dk(  r[|d|› �d|› �dddddd	d
dddddddddgz  }|r|j                  d«       |r|j                  d«       |dk(  r|j                  d«       |S | dk(  rt|dk(  rd}|j                  d«       n|dv rd}|dk(  rd}n|dk(  rd}n|dv rd}|d|› �d |› �d!d"d#gz  }|r|d$d%gz  }|r|j                  d&«       |r|j                  d'«       |S )(a  Get C compiler flags for the given configuration.

    Args:
        compiler_type: Compiler type, e.g. "unix" or "msvc". If None, detected automatically.
        opt_level: Optimization level as string ("0", "1", "2", or "3").
        debug_level: Debug level as string ("0", "1", "2", or "3").
        multi_file: Whether multi-file compilation mode is enabled.
        experimental_features: Whether experimental features are enabled.
        log_trace: Whether trace logging is enabled.

    Returns:
        List of compiler flags.
    Úunixz-Oz-gz-Werrorz-Wno-unused-functionz-Wno-unused-labelz-Wno-unreachable-codez-Wno-unused-variablez!-Wno-unused-command-line-argumentz-Wno-unknown-warning-optionz-Wno-unused-but-set-variablez"-Wno-ignored-optimization-argumentz-Wno-array-boundsz-Wno-stringop-overreadz-Wno-stringop-overflowz-Wno-cppz-DMYPYC_LOG_TRACEz-DMYPYC_EXPERIMENTALÚ0z-UNDEBUGÚmsvcr¤   z/UNDEBUG)rW  Ú2rV  rc  ÚNONErW  ÚFASTLINK)rc  rV  ÚFULLz/Oz/DEBUG:z/wd4102z/wd4101z/wd4146z/GL-z/wd9025z/DMYPYC_LOG_TRACEz/DMYPYC_EXPERIMENTAL)r4   Únew_compilerr5   Úcustomize_compilerrY  rÃ   )rY  rZ  r[  r\  r]  r^  ÚcompilerÚcflagss           r(   Ú
get_cflagsrk    sŽ  € ð, ÐÜ!×.Ñ.Ó0ˆÜ×$Ñ$ XÔ.Ø ×.Ñ.ˆà€FØ˜ÒØØ��ÐØ��ÐØØ"ØØ#Ø"Ø/Ø)Ø*Ø0àØ$Ø$ð ØØ$Ø$ð+
ñ 	
ˆñ. Ø�M‰MÐ-Ô.Ù Ø�M‰MÐ0Ô1Ø˜ÒØ�M‰M˜*Ô%ð< €Mð; 
˜&Ò	 à˜ÒØˆIØ�M‰M˜*Õ%Ø˜/Ñ)ØˆIØ˜#ÒØ ‰KØ˜CÒØ$‰KØ˜JÑ&Ø ˆKØØ��ÐØ�k�]Ð#ØØØð
ñ 	
ˆñ ð �v˜yÐ)Ñ)ˆFÙØ�M‰MÐ-Ô.Ù Ø�M‰MÐ0Ô1Ø€Mr'   )ro   r«   rZ  r[  Ústrip_assertsr\  rf   r;  r-  Úinclude_runtime_filesÚstrict_dunder_typingr‹   r^  Údepends_on_librt_internalÚinstall_librtr]  c               ó	  — t        «        t        ||||du|	|
|||||¬«      }t        | ||||¬«      \  }}}t        «        t	        j
                  «       }t        j                  |«       |j                  }t        |j                  |||||¬«      }g }t        «       }|j                  �sJt        t        «      }|D ]W  }|j                  |j                   «       |j                  |j#                  «       «       |j%                  |j&                  «       ŒY |j(                  r3|j                  d«       |j                  d«       |j+                  d«       |D ]›  }t,        j                   j/                  ||«      }t1        t,        j                   j/                  t3        «       |«      d¬	«      5 }t5        ||j7                  «       «       d
d
d
«       |j9                  d«      sŒ‹|j                  |«       Œ� g }|D � cg c]*  } t,        j                   j/                  t3        «       | «      ‘Œ, }!} t;        ||«      D ]Q  \  \  }"}#\  }$}%|#r$|j=                  t?        |"|#|$|z   |%|||!«      «       Œ2|j=                  tA        |"|$|z   ||!«      «       ŒS |�r©t        D ]x  }t,        j                   j/                  ||«      }t1        t,        j                   j/                  t3        «       |«      d¬	«      5 }t5        ||j7                  «       «       d
d
d
«       Œz tB        D �]  \  }&}'}(})|'|(z   D ]x  }*t,        j                   j/                  ||*«      }t1        t,        j                   j/                  t3        «       |*«      d¬	«      5 }t5        ||j7                  «       «       d
d
d
«       Œz |j                   tE        «       |&|'t        z   D �+cg c]"  }+t,        j                   j/                  ||+«      ‘Œ$ c}+t3        «       g|)D �,cg c]*  },t,        j                   j/                  t3        «       |,«      ‘Œ, c},z   |¬«      «       �Œ! |D ]  }-tG        |-tH        d«       Œ |S # 1 sw Y   �ŒŒxY wc c} w # 1 sw Y   �ŒÙxY w# 1 sw Y   �ŒWxY wc c}+w c c},w )a£  Main entry point to building using mypyc.

    This produces a list of Extension objects that should be passed as the
    ext_modules parameter to setup.

    Arguments:
        paths: A list of file paths to build. It may also contain mypy options.
        only_compile_paths: If not None, an iterable of paths that are to be
                            the only modules compiled, even if other modules
                            appear in the mypy command line given to paths.
                            (These modules must still be passed to paths.)

        verbose: Should mypyc be more verbose. Defaults to false.

        opt_level: The optimization level, as a string. Defaults to '3' (meaning '-O3').
        debug_level: The debug level, as a string. Defaults to '1' (meaning '-g1').
        strip_asserts: Should asserts be stripped from the generated code.

        multi_file: Should each Python module be compiled into its own C source file.
                    This can reduce compile time and memory requirements at the likely
                    cost of runtime performance of compiled code. Defaults to false.
        separate: Should compiled modules be placed in separate extension modules.
                  If False, all modules are placed in a single shared library.
                  If True, every module is placed in its own library.
                  Otherwise, separate should be a list of
                  (file name list, optional shared library name) pairs specifying
                  groups of files that should be placed in the same shared library
                  (while all other modules will be placed in its own library).

                  Each group can be compiled independently, which can
                  speed up compilation, but calls between groups can
                  be slower than calls within a group and can't be
                  inlined.
        target_dir: The directory to write C output files. Defaults to 'build'.
        include_runtime_files: If not None, whether the mypyc runtime library
                               should be directly #include'd instead of linked
                               separately in order to reduce compiler invocations.
                               Defaults to False in multi_file mode, True otherwise.
        strict_dunder_typing: If True, force dunder methods to have the return type
                              of the method strictly, which can lead to more
                              optimization opportunities. Defaults to False.
        group_name: If set, override the default group name derived from
                    the hash of module names. This is used for the names of the
                    output C files and the shared library. This is only supported
                    if there is a single group. [Experimental]
        log_trace: If True, compiled code writes a trace log of events in
                   mypyc_trace.txt (derived from executed operations). This is
                   useful for performance analysis, such as analyzing which
                   primitive ops are used the most and on which lines.
        depends_on_librt_internal: This is True only for mypy itself.
        install_librt: If True, also build the librt extension modules. Normally,
                       those are build and published on PyPI separately, but during
                       tests, we want to use their development versions (i.e. from
                       current commit).
        experimental_features: Enable experimental features (install_librt=True is
                               also needed if using experimental librt features). These
                               have no backward compatibility guarantees!
    F)rl  r\  r«   rf   r-  rm  rn  r‹   r^  ro  r]  )ro   rp   rf   r;  rX  zinternal/librt_internal_api.hzinternal/librt_internal_api.cr)   rÏ   r%  NrB  rÌ   T)%r  r   rU  rM   r4   rg  r5   rh  r-  rk  rY  rd   rm  r  r   rÃ   re   Ú
get_headerr˜   r!   ro  r)  ry   rY   rƒ   r„   r†   r…   r*  Úzipr	  rÊ   rÍ   ÚLIBRT_MODULESrA   Úsetattrrï   ).rF  ro   r«   rZ  r[  rl  r\  rf   r;  r-  rm  rn  r‹   r^  ro  rp  r]  rp   r¢   rN  r½   ri  rÆ   rj  Úshared_cfilenamesr!   Úfiles_to_copyÚ
source_depr  Úrt_filer�   rÈ   ÚdirrÇ   r  Úlib_namerQ  rÅ   ÚmodÚ
file_namesÚaddit_filesÚincludesÚ	file_nameÚfiler¤   rñ   s.                                                 r(   Úmypycifyr‚  k  s/  € ôd 0Ô1ô 'Ø#ØØØ Ð&ØØ3Ø1ØØØ";Ø3ôÐô -8ØØ-Ø)ØØ'ô-Ñ)€FÐ˜kô Ôô
 ×*Ñ*Ó,€HÜ× Ñ  Ô*à ×+Ñ+€IäØ×,Ñ,ØØØØ3Øô€Fð ÐÜ“5€LØ×1Ó1äœ_Ó-ˆØ%ò 	9ˆJØ× Ñ  §¡Ô1Ø× Ñ  ×!6Ñ!6Ó!8Ô9Ø×Ñ 
× 7Ñ 7Õ8ð	9ð
 ×5Ò5Ø× Ñ Ð!@ÔAØ× Ñ Ð!@ÔAØ×Ñ˜ZÔ(ð "ò 	2ˆDÜ—g‘g—l‘l 9¨dÓ3ˆGÜ”b—g‘g—l‘l¤;£=°$Ó7À'ÔJð .ÈaÜ˜7 A§F¡F£HÔ-÷.à�}‰}˜TÕ"Ø!×(Ñ(¨Õ1ð	2ð €JØFRÖS¸sœ"Ÿ'™'Ÿ,™,¤{£}°cÕ:ÐSÐÐSÜ9<¸VÐEUÓ9Vò Ñ5Ñ!ˆ˜Ñ#5 J°ÙØ×ÑÜ&Ø!ØØÐ!2Ñ2ØØØØ&óõ
ð ×ÑÜ#Ø! :Ð0AÑ#AÀ6ÐK]óõðò( Ü#ò 	.ˆDÜ—g‘g—l‘l 9¨dÓ3ˆGÜ”b—g‘g—l‘l¤;£=°$Ó7À'ÔJð .ÈaÜ˜7 A§F¡F£HÔ-÷.ð .ð	.ô 7Dó 	Ñ2ˆC�˜[¨(Ø'¨+Ñ5ò 2�	ÜŸ'™'Ÿ,™, y°)Ó<�Üœ"Ÿ'™'Ÿ,™,¤{£}°iÓ@È7ÔSð 2ÐWXÜ˜w¨¯©«Ô1÷2ð 2ð2ð ×ÑØ”“ØàBLÌÑB^öØ:>œŸ™Ÿ™ Y°Õ5òô #.£- Ø?GÖH¸!”r—w‘w—|‘|¤K£M°1Õ5ÒHñ"Ià'-ôö
ð	ð& ò 4ˆÜ�Ô,¨dÕ3ð4ð Ð÷m.ñ .üò T÷0.ñ .ú÷
2ñ 2üò
ùò Is6   Æ,QÇ:/QË*Q#Í9Q0Î?'Q=Ï6/RÑQ	Ñ#Q-	Ñ0Q:)rö   ztype[Extension])rö   rü   )rP   r   rö   r   )F)
rZ   r   r[   r   r\   Úfloatr]   r÷   rö   rü   )
rn   r   ro   úIterable[str] | Nonerp   r   ra   zFileSystemCache | Nonerö   z4tuple[list[BuildSource], list[BuildSource], Options])rv   r
   rö   r÷   )
rˆ   r   r‰   r   rŠ   r   r‹   r   rö   r   )r9   r   rö   r   )rö   r   )rµ   úlist[BuildSource]rZ   r   r¢   úemitmodule.Groupsra   r   rp   r   rö   z8tuple[list[list[tuple[str, str]]], str, list[SourceDep]])rµ   r…  r‹   r   rÄ   r   rÅ   r   rÆ   r   rÁ   r   rÇ   r   rö   úlist[Extension])
rµ   r…  rÄ   r   rÁ   r   rÇ   r   rö   r‡  )re   r   rÚ   r   rö   rü   )
rµ   r…  rf   ú)bool | list[tuple[list[str], str | None]]r  r÷   r  ú
str | Nonerö   r†  )rÚ   r   rö   úlist[tuple[bool, str]])rÄ   zlist[tuple[str, str]]rö   rŠ  )r+  r   r,  rŠ  r-  r   rö   zset[str])rF  r   rp   r   rf   rˆ  ro   r„  r;  úLtuple[list[list[tuple[str, str]]], list[tuple[str, list[str], bool]]] | Noner<  r÷   rö   zLtuple[emitmodule.Groups, list[tuple[list[str], list[str]]], list[SourceDep]])rY  r‰  rZ  r   r[  r   r\  r÷   r]  r÷   r^  r÷   rö   r   )$rF  r   ro   r„  r«   r÷   rZ  r   r[  r   rl  r÷   r\  r÷   rf   rˆ  r;  r‹  r-  r‰  rm  zbool | Nonern  r÷   r‹   r‰  r^  r÷   ro  r÷   rp  r÷   r]  r÷   rö   r‡  )XÚ__doc__Ú
__future__r   r–   Úos.pathry   Úrer8   r¨   Úcollections.abcr   Útypingr   r   r   r   r	   Úmypyc.build_setuprb   Ú
mypy.buildr
   Úmypy.errorsr   Úmypy.fscacher   Ú	mypy.mainr   Úmypy.optionsr   Ú	mypy.utilr   Úmypyc.annotater   Úmypyc.codegenr   Úmypyc.commonr   r   r   Úmypyc.errorsr   Úmypyc.ir.depsr   Úmypyc.ir.pprintr   Úmypyc.namegenr   Úmypyc.optionsr   r   rt  r7   ÚImportErrorr:   r2   r;   Ú_distutils_Extensionr3   Ú_setuptools_Extensionr%   r?   r4   r5   rA   rM   rQ   r_   rw   r|   r‘   r‹   r„   r¾   rÊ   rÍ   r†   rï   rý   r  r  Úcompiler  r  r#  r:  rU  rk  r‚  r&   r'   r(   ú<module>r¥     s9  ðòõ( #ã Û Û 	Û 
Û Ý $ß AÕ Aã Ý "Ý $Ý (Ý %Ý  Ý %Ý 2Ý $ß KÑ KÝ Ý #Ý *Ý 'Ý )ôˆjô ñ ÐÐ:Ð;¸RÀ*ÀÓNÙØØ	"Ð#Ø	"Ð$DÐEØ	ˆó	ñ Øò	
ò	
ð< 
ˆ
ó_0ñb Øò
	
ð 
Ð3Ð4Ø	ˆóñ  ˆLÐ.Ð/Ð2EÐ1FÈÓKÙˆNÐ4Ð5Ð8OÐ7PÐS[ÐR\Ó]ÙØØ	&Ð'Ø	&Ð'Ø	ˆó	ðWQ€ðf	ãñ Ø
×Ñ˜7Ò"Þ(åDÝ$åAà4Ð7KÑKˆ	�9ÓKà×Ñ�wÒç.Ð.ç.óó$Bóô
#ð &/Øð&/à,ð&/ð &ð&/ð $ð	&/ð
 :ó&/óRVð"Øð"Ø(+ð"Ø7:ð"ØHKð"àó"óJóNð
6)Øð6)àð6)ð ð6)ð ð	6)ð
 &ð6)ð >ó6)ðr.Øð.àð.ð ð.ð ð	.ð
 ð.ð "ð.ð "ð.ð ó.ðbØðàðð "ðð "ð	ð
 óó(5ð8 ?Ð Ø!Ð ó93ðx1Øð1à7ð1ð ð1ð $ð	1ð
 ó1ðr ˆb�j‰jÐAÓB€óóð88Øð8Ø%;ð8ØILð8àó8ð~ ;@Ø/3ð 	Ø"'ñ[1Øð[1à%ð[1ð 8ð	[1ð
 -ð[1ð 	Uð[1ð  ð[1ð Ró[1ð@ !%ØØØØ"'ØñWàðWð ðWð ð	Wð
 ðWð  ðWð ðWð óWðz 04ØØØØØØ:?ð 	Ø!Ø)-Ø!&Ø!ØØ&+ØØ"'ñ)KØðKð -ðKð ð	Kð
 ðKð ðKð ðKð ðKð 8ðKð 	UðKð ðKð 'ðKð ðKð  ð!Kð" ð#Kð$  $ð%Kð& ð'Kð(  ð)Kð* ô+Køð} ò 	Úð	ús   Ã:I' É'I0É/I0