Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/Cython/Compiler/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/Cython/Compiler/__pycache__/CmdLine.cpython-35.pyc



Z��Z#�@sZddlmZddlZddlZddlmZdZdd�Zdd	�ZdS)
�)�absolute_importN�)�OptionsaD
Cython (http://cython.org) is a compiler for code written in the
Cython language.  Cython is based on Pyrex by Greg Ewing.

Usage: cython [options] sourcefile.{pyx,py} ...

Options:
  -V, --version                  Display version number of cython compiler
  -l, --create-listing           Write error messages to a listing file
  -I, --include-dir <directory>  Search for include files in named directory
                                 (multiple include directories are allowed).
  -o, --output-file <filename>   Specify name of generated C file
  -t, --timestamps               Only compile newer source files
  -f, --force                    Compile all source files (overrides implied -t)
  -v, --verbose                  Be verbose, print file names on multiple compilation
  -p, --embed-positions          If specified, the positions in Cython files of each
                                 function definition is embedded in its docstring.
  --cleanup <level>              Release interned objects on python exit, for memory debugging.
                                 Level indicates aggressiveness, default 0 releases nothing.
  -w, --working <directory>      Sets the working directory for Cython (the directory modules
                                 are searched from)
  --gdb                          Output debug information for cygdb
  --gdb-outdir <directory>       Specify gdb debug information output directory. Implies --gdb.

  -D, --no-docstrings            Strip docstrings from the compiled module.
  -a, --annotate                 Produce a colorized HTML version of the source.
  --annotate-coverage <cov.xml>  Annotate and include coverage information from cov.xml.
  --line-directives              Produce #line directives pointing to the .pyx source
  --cplus                        Output a C++ rather than C file.
  --embed[=<method_name>]        Generate a main() function that embeds the Python interpreter.
  -2                             Compile based on Python-2 syntax and code semantics.
  -3                             Compile based on Python-3 syntax and code semantics.
  --lenient                      Change some compile time errors to runtime errors to
                                 improve Python compatibility
  --capi-reexport-cincludes      Add cincluded headers to any auto-generated header files.
  --fast-fail                    Abort the compilation on the first error
  --warning-errors, -Werror      Make all warnings into errors
  --warning-extra, -Wextra       Enable extra warnings
  -X, --directive <name>=<value>[,<name=value,...] Overrides a compiler directive
cCs!tjjt�tjd�dS)Nr)�sys�stderr�write�usage�exit�r
r
�J/opt/alt/python35/lib64/python3.5/site-packages/Cython/Compiler/CmdLine.py�	bad_usage;srcsIddlm}m}g���fdd��d��fdd�}�fdd�}||�}g}x/�r��d	jd
�r���}|dKkr�d|_q�|dLkr�d|_q�|dMkr�d|_q�|dkr�|d�t_q�|jd�r |j	j
||��q�|dkrB|j	j
|��q�|dNkr]|�|_q�|dOkrx|�|_q�|dPkr�d|_
q�|dQkr�d	|_
q�|dRkr�|jd7_q�|dSkr�dt_q�|dTkr�|�t_q�|d#krt|��t_q�|dUkr2d&t_q�|dVkrJd)t_q�|d*krnd)t_|�t_q�|d+kr�d)t_q�|d,kr�d)|_q�|d-kr�d&|_q�|d.kr�d)|_tj|_q�|d/kr�d)|_|�|_q�|d0krd&t_d&t_q�|d1kr7d2|_q�|d3krOd4|_q�|d5krgd)|_ q�|d6krd)t_!q�|d7kr�d)t_"q�|dWkr�d)t_#q�|dXkr�|j$j%tj&�q�|d<kr�d)t_'q�|d=ks|jd>�r�|jd>�r<|d2d�j(�r<|d2d�}n	|�}y%tj)|d?d)d@|j$�|_$Wq�t*k
r�}	z-t+j,j-dA|	j.d	�t+j/d�WYdd}	~	Xq�Xq�|jdB�r;|d2d�j0d
dC�}ddDl1m2}
|t3|
�krt4|
|d)�q�t+j,j-dE|�t5�q�|dYkrgt+j6j-t7�t+j/d	�q�t+j,j-dH|�t+j/d�qp|j
���qpW�r�t5�|jr�t8|�dkr�t+j,j-dI�t+j/d�t8|�d	kr|jrt5�tjr?t8|�dkr?t+j,j-dJ�t+j/d�||fS)ZNr)�CompilationOptions�default_optionscsv�s
�rt�d�dkri�djd�ri�jd�jdd�\}}�j|�|S�jd�S)N�=rz--r)r�
startswith�pop�split�append)�name�value)�args�pending_argr
r�pop_argEs
#!
z#parse_command_line.<locals>.pop_argcs:�r�j�S|dk	r |S�s-t��jd�S)Nr)rr)�default)rrr
r�	pop_valueNs
z%parse_command_line.<locals>.pop_valuecs%|dd�}|r|S��SdS)N�r
)�option�tail)rr
r�	get_paramWsz%parse_command_line.<locals>.get_paramr�-�-V�	--version�-l�--create-listing�-+�--cplusz--embed�mainz-Iz
--include-dir�-w�	--working�-o�
--output-file�-t�--timestamps�-f�--force�-v�	--verbose�-p�--embed-positions�-z�--pre-importz	--cleanup�-D�--no-docstringsF�-a�
--annotateTz--annotate-coveragez--convert-rangez--line-directivesz--no-c-in-tracebackz--gdbz--gdb-outdirz	--lenientz-2rz-3�z--capi-reexport-cincludesz--fast-failz--cimport-from-pyx�-Werror�--warning-errors�-Wextra�--warning-extraz--old-style-globalsz--directivez-XZrelaxed_boolZcurrent_settingsz Error in compiler directive: %s
z--debug�_)�
DebugFlagszUnknown debug flag: %s
�-h�--helpzUnknown compiler flag: %s
z3cython: Only one source file allowed when using -o
z7cython: Only one source file allowed when using -embed
)r r!)r"r#)r$r%)r'r()r)r*)r+r,)r-r.)r/r0)r1r2)r3r4)r5r6)r7r8)r:r;)r<r=)r@rA)9ZMainr
rrZshow_version�use_listing_file�cplusrZembed�include_pathrZworking_path�output_fileZ
timestamps�verboseZembed_pos_in_docstringZ
pre_import�intZgenerate_cleanup_codeZ
docstringsZannotateZannotate_coverage_xmlZ
convert_range�
emit_linenums�c_line_in_traceback�	gdb_debug�os�curdir�
output_dirZerror_on_unknown_namesZerror_on_uninitializedZlanguage_levelZcapi_reexport_cincludesZ	fast_failZcimport_from_pyxZwarning_errors�compiler_directives�updateZextra_warningsZold_style_globals�stripZparse_directive_list�
ValueErrorrrrrr	�replace�r?�dir�setattrr�stdoutr�len)rr
rrr�options�sourcesrZx_args�er?r
)rrrr�parse_command_line@s�								%	#
	
	
r[)	�
__future__rrKrrSrrrr[r
r
r
r�<module>s)