Ë
    Æ[;j"5  ã                   óø   — d dl Z d dlmZmZmZmZ ddlmZ  G d„ de«      Z G d„ de«      Z	 G d	„ d
e«      Z
 G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zd„ Zd„ Zd„ Zd„ Zy)é    N)ÚArgumentParserÚActionÚSUPPRESSÚRawDescriptionHelpFormatteré   )ÚOptionsc                   ó   — e Zd Zdd„Zy)ÚParseDirectivesActionNc                 óÆ   — t        t        || j                  t        j                  «       «      «      }t        j
                  |d|¬«      }t        || j                  |«       y )NT)Úrelaxed_boolÚcurrent_settings)ÚdictÚgetattrÚdestr   Úget_directive_defaultsÚparse_directive_listÚsetattr)ÚselfÚparserÚ	namespaceÚvaluesÚoption_stringÚold_directivesÚ
directivess          ú`G:\00. PROJECTS\API\Inventory\templateJSON\kerjaOCR\Lib\site-packages\Cython/Compiler/CmdLine.pyÚ__call__zParseDirectivesAction.__call__   sQ   € Üœg i°·±Ü&-×&DÑ&DÓ&FóHó Iˆä×1Ñ1Ø ¸ôHˆ
ä�	˜4Ÿ9™9 jÕ1ó    ©N©Ú__name__Ú
__module__Ú__qualname__r   © r   r   r
   r
      s   „ ô2r   r
   c                   ó   — e Zd Zdd„Zy)ÚParseOptionsActionNc                 ó  — t        t        || j                  i «      «      }|j                  d«      D ]7  }d|v r(|j                  dd«      \  }}|j	                  «       dv}n|d}}|||<   Œ9 t        || j                  |«       y )NÚ,Ú=r   )ÚfalseÚfÚ0ÚnoT)r   r   r   ÚsplitÚlowerr   )	r   r   r   r   r   ÚoptionsÚoptÚnÚvs	            r   r   zParseOptionsAction.__call__   s|   € Ü”w˜y¨$¯)©)°RÓ8Ó9ˆØ—<‘< Ö$ˆCØ�c‰zØ—y‘y  aÓ(‘��1Ø—G‘G“IÐ%>Ð>‘à˜D�1�ØˆG�AŠJð %ô 	�	˜4Ÿ9™9 gÕ.r   r   r   r#   r   r   r%   r%      s   „ ô	/r   r%   c                   ó   — e Zd Zdd„Zy)ÚParseCompileTimeEnvActionNc                 ó    — t        t        || j                  i «      «      }t        j                  ||¬«      }t        || j                  |«       y )N)r   )r   r   r   r   Úparse_compile_time_envr   )r   r   r   r   r   Úold_envÚnew_envs          r   r   z"ParseCompileTimeEnvAction.__call__"   s;   € Ü”w˜y¨$¯)©)°RÓ8Ó9ˆÜ×0Ñ0°È'ÔRˆÜ�	˜4Ÿ9™9 gÕ.r   r   r   r#   r   r   r4   r4   !   s   „ ô/r   r4   c                   ó   — e Zd Zdd„Zy)ÚActivateAllWarningsActionNc                 ój   — t        |di «      }|j                  t        j                  «       ||_        y )NÚcompiler_directives)r   Úupdater   Úextra_warningsr<   )r   r   r   r   r   r   s         r   r   z"ActivateAllWarningsAction.__call__)   s-   € Ü˜YÐ(=¸rÓBˆ
Ø×Ñœ'×0Ñ0Ô1Ø(2ˆ	Õ%r   r   r   r#   r   r   r:   r:   (   s   „ ô3r   r:   c                   ó   — e Zd Zdd„Zy)ÚSetLenientActionNc                 ó    — d|_         d|_        y )NF)Úerror_on_unknown_namesÚerror_on_uninitialized©r   r   r   r   r   s        r   r   zSetLenientAction.__call__0   s   € Ø+0ˆ	Ô(Ø+0ˆ	Õ(r   r   r   r#   r   r   r@   r@   /   ó   „ ô1r   r@   c                   ó   — e Zd Zdd„Zy)ÚSetGDBDebugActionNc                 ó<   — d|_         t        j                  |_        y ©NT)Ú	gdb_debugÚosÚcurdirÚ
output_dirrD   s        r   r   zSetGDBDebugAction.__call__6   s   € Ø"ˆ	ÔÜ!Ÿy™yˆ	Õr   r   r   r#   r   r   rG   rG   5   s   „ ô)r   rG   c                   ó   — e Zd Zdd„Zy)ÚSetGDBDebugOutputActionNc                 ó    — d|_         ||_        y rI   )rJ   rM   rD   s        r   r   z SetGDBDebugOutputAction.__call__<   s   € Ø"ˆ	ÔØ%ˆ	Õr   r   r   r#   r   r   rO   rO   ;   s   „ ô&r   rO   c                   ó   — e Zd Zdd„Zy)ÚSetAnnotateCoverageActionNc                 ó    — d|_         ||_        y rI   )ÚannotateÚannotate_coverage_xmlrD   s        r   r   z"SetAnnotateCoverageAction.__call__B   s   € Ø!ˆ	ÔØ*0ˆ	Õ'r   r   r   r#   r   r   rR   rR   A   rE   r   rR   c            	      óª  — d} t        | t        t        d¬«      }|j                  dddddd	¬
«       |j                  dddddd¬
«       |j                  ddddd¬«       |j                  ddddt        d¬«       |j                  dddddd¬
«       |j                  dd ddd!d"¬
«       |j                  d#d$d%d&d'¬«       |j                  d(d)d*ddd+¬
«       |j                  d,d-dt
        d.¬«       |j                  d/d0d1d2¬«       |j                  d3d4d5dt        d6¬«       |j                  d7t        d!d8¬9«       |j                  d:t        t        d;¬<«       |j                  d=d>d?d@dA¬«       |j                  dBdCddDdEdF¬G«       |j                  dHddIdEdJ¬G«       |j                  dKdLt        t        dM¬«       |j                  dNdOd1dP¬«       |j                  dQdRdSdddT¬
«       |j                  dUddVdW¬X«       |j                  dYdt        dZ¬<«       |j                  d[d\dd]d^¬
«       |j                  d_d\dd`da¬
«       |j                  dbd\ddcdd¬
«       |j                  det        d!df¬9«       |j                  dgdhd1di¬«       |j                  djdkd1dl¬«       |j                  dmdndod1dp¬«       |j                  dqdrt        d!ds¬9«       |j                  dtdudvdwt        t        dx¬y«       |j                  dzd{dvd|t        t        d}¬y«       |j                  d~dt        dd€¬�«       |j                  d‚dƒd1d„¬…«       |j                  d†d‡dt        dˆ¬«       |j                  d‰dŠdt        d‹¬«       |j                  dŒd�g ¬Ž«       |j                  d�d�d‘dt        t        ¬«       |j                  d’d“d1t        ¬«       |j                  d”d•d@t        ¬«       |j                  d–d—d1t        ¬«       |j                  d˜d™d1t        ¬«       ddšlm} t!        |«      D ]A  }|j#                  d›«      sŒ|j%                  dœd�«      }|j                  dž|z   d1t        ¬…«       ŒC |S )ŸNz|Cython (https://cython.org/) is a compiler for code written in the Cython language.  Cython is based on Pyrex by Greg Ewing.zYEnvironment variables:
  CYTHON_CACHE_DIR: the base directory containing Cython's caches.)ÚdescriptionÚargument_defaultÚformatter_classÚepilogz-Vz	--versionÚshow_versionÚstore_constr   z)Display version number of cython compiler)r   ÚactionÚconstÚhelpz-lz--create-listingÚuse_listing_filez&Write error messages to a listing filez-Iz--include-dirÚinclude_pathÚappendzWSearch for include files in named directory (multiple include directories are allowed).)r   r]   r_   z-oz--output-fileÚoutput_fileÚstorez Specify name of generated C file)r   r]   Útyper_   z-tz--timestampsÚ
timestampszOnly compile newer source filesz-fz--forcer   z/Compile all source files (overrides implied -t)z-vz	--verboseÚverboseÚcountz4Be verbose, print file names on multiple compilationz-pz--embed-positionsÚembed_pos_in_docstringzeIf specified, the positions in Cython files of each function definition is embedded in its docstring.z	--cleanupÚgenerate_cleanup_codezzRelease interned objects on python exit, for memory debugging. Level indicates aggressiveness, default 0 releases nothing.z--cacheÚcacheÚ
store_truez!Enables Cython compilation cache.z-wz	--workingÚworking_pathzOSets the working directory for Cython (the directory modules are searched from)z--gdbz"Output debug information for cygdb)r]   Únargsr_   z--gdb-outdirz>Specify gdb debug information output directory. Implies --gdb.)r]   re   r_   z-Dz--no-docstringsÚ
docstringsÚstore_falsez*Strip docstrings from the compiled module.z-az
--annotateÚdefaultrT   z/Produce a colorized HTML version of the source.)r]   r^   r   r_   z--annotate-fullcÚfullczZProduce a colorized HTML version of the source which includes entire generated C/C++-code.z--annotate-coveragerU   z7Annotate and include coverage information from cov.xml.z--line-directivesÚemit_linenumsz4Produce #line directives pointing to the .pyx sourcez-+z--cplusÚcplusz Output a C++ rather than C file.ú--embedÚmainzwGenerate a main() function that embeds the Python interpreter. Pass --embed=<method_name> for a name other than main().)r]   r^   r_   z--embed-modulesÚ z-2Úlanguage_levelé   z4Compile based on Python-2 syntax and code semantics.z-3é   z4Compile based on Python-3 syntax and code semantics.z--3strÚ3zRCompile based on Python-3 syntax and code semantics (same as -3 since Cython 3.1).z	--lenientzQChange some compile time errors to runtime errors to improve Python compatibilityz--capi-reexport-cincludesÚcapi_reexport_cincludesz9Add cincluded headers to any auto-generated header files.z--fast-failÚ	fast_failz(Abort the compilation on the first errorz-Werrorz--warning-errorsÚwarning_errorszMake all warnings into errorsz-Wextraz--warning-extrazEnable extra warningsz-Xz--directivezNAME=VALUE,...r<   zOverrides a compiler directive)Úmetavarr   re   r]   r_   z-Ez--compile-time-envÚcompile_time_envz,Provides compile time env like DEF would do.z--module-nameÚmodule_namezŒFully qualified module name. If not given, is deduced from the import path if source file is in a package, or equals the filename otherwise.)r   re   r]   r_   z-Mz	--depfilez produce depfiles for the sources)r]   r_   z--generate-sharedÚshared_c_file_pathz,Generates shared module with specified name.z--sharedÚshared_utility_qualified_namezQImports utility code from shared module specified by fully qualified module name.ÚsourcesÚ*)rn   rq   z-zz--pre-importÚ
pre_importz--convert-rangeÚconvert_rangez--no-c-in-tracebackÚc_line_in_tracebackz--cimport-from-pyxÚcimport_from_pyxz--old-style-globalsÚold_style_globals©Ú
DebugFlagsÚdebugÚ_Ú-z--)r   r   r   Úadd_argumentÚstrÚintrG   rO   rR   Ú
comma_listr@   r:   r
   r4   rw   rŒ   ÚvarsÚ
startswithÚreplace)rW   r   rŒ   ÚnameÚoption_names        r   Úcreate_cython_argparserr™   F   s¯  € ðN€Kô ØÜ!Ü3ðFô	€Fð ×Ñ˜˜k°À}Ð\]ØFð ô Hà
×Ñ˜Ð0Ð7IÐR_ÐghØCð ô Eà
×Ñ˜˜o°NÈ8ðIð ô Jð ×Ñ˜˜o°MÈ'ÔX[Ø=ð ô ?à
×Ñ˜˜n°<ÈÐ]^Ø<ð ô >à
×Ñ˜˜i¨lÀ=ÐXYØLð ô Nà
×Ñ˜˜k°	À'ØQð ô Sà
×Ñ˜Ð1Ð8PÐYfÐnoðOð ô Pð ×Ñ˜Ð*AÈ'ÔX[ðYð ô Zð ×Ñ˜	¨¸Ø>ð ô @à
×Ñ˜˜k°ÀwÔUXØlð ô nà
×Ñ˜Ô(9ÀØ?ð ô Aà
×Ñ˜Ô/FÌSØ[ð ô ]à
×Ñ˜Ð/°lÈ=ØGð ô Ià
×Ñ˜˜l°=È	ÐXbØLð ô Nà
×ÑÐ*°=ÈÐV`ðIð ô Jð ×ÑÐ-Ð4KÔTmÔtwØTð ô Và
×ÑÐ+°/È,ØQð ô Sà
×Ñ˜˜i¨g¸mÐSTØ=ð ô ?à
×Ñ˜	¨-¸vðVð ô Wð ×ÑÐ)°'Ä
Øð ô à
×Ñ˜Ð#3¸MÐQRØQð ô Sà
×Ñ˜Ð#3¸MÐQRØQð ô Sà
×Ñ˜Ð'7ÀÐUXØoð ô qà
×Ñ˜Ô,<ÀAð:ð ô ;ð ×ÑÐ3Ð:SÐ\hØVð ô Xà
×Ñ˜¨KÀØEð ô Gà
×Ñ˜	Ð#5Ð<LÐUaØ:ð ô <à
×Ñ˜	Ð#4Ô=VÐ^_Ø2ð ô 4ð ×Ñ˜˜mÐ5EØ0´sÜ2Ø;ð ô =ð ×Ñ˜Ð2Ð<LØ-´CÜ6ØIð ô Kð ×Ñ˜Ø(¬s¸7ðJð ô Kð
 ×Ñ˜˜k°,ÐEgÐÔhØ
×ÑÐ+Ð2FÈwÔ]`ØKð ô Mà
×Ñ˜
Ð)HÐQXÔ_bØpð ô rð ×Ñ˜	¨°bÐÔ9ð ×Ñ˜˜n°<ÈÔVYÔ`hÐÔiØ
×ÑÐ)°ÈÔ[cÐÔdØ
×ÑÐ-Ð4IÐR_ÔfnÐÔoØ
×ÑÐ,Ð3EÈlÔaiÐÔjØ
×ÑÐ-Ð4GÐP\ÔckÐÔlõ Ü�ZÖ ˆØ�?‰?˜7Õ#ØŸ,™, s¨CÓ0ˆKØ×Ñ  {Ñ 2¸<ÌhÐÕWð !ð
 €Mr   c                 ó$   — | j                  d«      S )Nr'   )r-   )Ústrings    r   r“   r“   ¹   s   € Ø�<‰<˜ÓÐr   c                 ó:  — d„ } ||«      \  }}| j                  |«      \  }}|j                  }|`|D ]9  }|j                  d«      r| j                  d|z   «       Œ)|j	                  |«       Œ; |D ]%  }	|	dk(  rd}
n|	t        d«      d  }
t        |d|
«       Œ' ||fS )Nc                 ó’   — g g }}| D ];  }|dk(  s|j                  d«      r|j                  |«       Œ+|j                  |«       Œ= ||fS )Nru   ú--embed=)r•   rb   )ÚargsÚ
with_embedÚwithout_embedÚxs       r   Úfilter_out_embed_optionsz8parse_command_line_raw.<locals>.filter_out_embed_options¾   sP   € Ø$&¨�Mˆ
ÛˆAØ�IŠ~ §¡¨jÔ!9Ø×!Ñ! !Õ$à×$Ñ$ QÕ'ð	 ð
 ˜=Ð(Ð(r   r�   zunknown option ru   rv   rž   Úembed)Úparse_known_argsr„   r•   Úerrorrb   Úlenr   )r   rŸ   r£   r    Úargs_without_embedÚ	argumentsÚunknownr„   Úoptionr¢   r—   s              r   Úparse_command_line_rawr¬   ¼   sº   € ò)ñ &>¸dÓ%CÑ"€JÐ"à×0Ñ0Ð1CÓDÑ€Iˆwà×Ñ€GØÐó ˆØ×Ñ˜SÔ!Ø�L‰LÐ*¨VÑ3Õ4à�N‰N˜6Õ"ð	 ó ˆØ�	Š>Ø‰Dà”S˜“_Ð%Ð&ˆDÜ�	˜7 DÕ)ð ð �gÐÐr   c                 óú  — t        «       }t        || «      \  }}t        |dd«      }|D ]š  }|r?t        j                  j                  |«      s t        j                  j                  ||«      }t        j                  j                  |«      rŒddd l}t        |j                  t        j                  |j                  «      |«      ‚ t        j                  t        j                  «      }t        |«      j!                  «       D ]{  \  }}	|j#                  d«      r6ddlm}
 |t)        |
«      v rt+        |
||	«       Œ8|j-                  d|z  «       ŒMt/        t        |«      rt+        t        ||	«       Œot+        |||	«       Œ} |j0                  rt3        |«      dkD  r|j-                  d«       |j4                  r t3        |«      dkD  r=|j-                  d	«       n+t3        |«      dk(  r|j6                  s|j-                  d
«       t        j8                  rt3        |«      dkD  r|j-                  d«       |j:                  r<|j<                  r|j-                  d«       t3        |«      dkD  r|j-                  d«       ||fS )Nrm   rw   r   r�   r   r‹   zUnknown debug flag: %s
z3cython: Only one source file allowed when using -o
z=cython: Source file not allowed when using --generate-shared
z&cython: Need at least one source file
z8cython: Only one source file allowed when using --embed
z3cython: Cannot use --module-name with --timestamps
z>cython: Only one source file allowed when using --module-name
)r™   r¬   r   rK   ÚpathÚisabsÚjoinÚexistsÚerrnoÚFileNotFoundErrorÚENOENTÚstrerrorr   ÚCompilationOptionsÚdefault_optionsr”   Úitemsr•   rw   rŒ   Údirr   r¦   Úhasattrr`   r§   r‚   r[   r¤   r�   rf   )rŸ   r   r©   r„   Úwork_dirÚsourcer²   r/   r—   ÚvaluerŒ   s              r   Úparse_command_liner¾   à   sâ  € Ü$Ó&€FÜ/°¸Ó=Ñ€Iˆwä�y .°"Ó5€HÛˆÙœBŸG™GŸM™M¨&Ô1Ü—W‘W—\‘\ (¨FÓ3ˆFÜ�w‰w�~‰~˜fÕ%ÛÜ# E§L¡L´"·+±+¸e¿l¹lÓ2KÈVÓTÐTð ô ×(Ñ(¬×)@Ñ)@ÓA€GÜ˜I“×,Ñ,Ö.‰ˆˆeØ�?‰?˜7Ô#Ý$Ø”s˜:“Ñ&Ü˜
 D¨%Õ0à—‘Ð7¸$Ñ>Õ?Ü”W˜dÔ#Ü”G˜T 5Õ)ä�G˜T 5Õ)ð /ð ×Ò¤C¨£L°1Ò$4Ø�‰ÐKÔLØ×!Ò!Üˆw‹<˜!ÒØ�L‰LÐYÕZÜ	ˆW‹˜Ò	 7×#7Ò#7Ø�‰Ð>Ô?Ü‡}‚}œ˜W›¨Ò)Ø�‰ÐPÔQØ×ÒØ×ÒØ�L‰LÐOÔPÜˆw‹<˜!ÒØ�L‰LÐZÔ[Ø�GÐÐr   )rK   Úargparser   r   r   r   rw   r   r
   r%   r4   r:   r@   rG   rO   rR   r™   r“   r¬   r¾   r#   r   r   Ú<module>rÀ      sŠ   ðó 
ß RÓ RÝ ô2˜Fô 2ô
/˜ô 
/ô/ ô /ô3 ô 3ô1�vô 1ô)˜ô )ô&˜fô &ô1 ô 1ò
qòfò!óH'r   