B
    Í‹db  ã               @   s‚   d Z dZddlZddlmZ yddlZW n ek
r@   dZY nX G dd„ dejƒZej	Z	ej
d dk r~ejj r~ejj d e_ dS )zŠPyrex.Distutils.extension

Provides a modified Extension class, that understands how to describe
Pyrex extension modules in setup scripts.z$Id:$é    Nc               @   s   e Zd Zddd„ZdS )Ú	ExtensionNFc             K   sò   d}x8t |ƒD ],}| d¡rd}| |¡|d|dd …  < qW |rxtj| ||f|||||||	|
|||||dœ|—Ž d S tjj| ||f|||||||	|
||||dœ|—Ž |p°g | _|pºi | _|| _|| _	|| _
|| _|| _|| _|| _|| _d S )NFZpyrex_TÚcythoné   )Úinclude_dirsÚdefine_macrosÚundef_macrosÚlibrary_dirsÚ	librariesÚruntime_library_dirsÚextra_objectsÚextra_compile_argsÚextra_link_argsÚexport_symbolsÚdependsÚlanguageÚno_c_in_traceback)r   r   r   r   r	   r
   r   r   r   r   r   r   )ÚlistÚ
startswithÚpopr   Ú__init__Ú
_ExtensionÚcython_include_dirsÚcython_directivesÚcython_create_listingÚcython_line_directivesÚcython_cplusÚcython_c_in_tempÚcython_gen_pxiÚ
cython_gdbr   Úcython_compile_time_env)ÚselfÚnameÚsourcesr   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ÚkwZhad_pyrex_optionsÚkey© r%   úg/work/yifan.wang/ringdown/master-ringdown-env/lib/python3.7/site-packages/Cython/Distutils/extension.pyr      s`    


zExtension.__init__)NNNNNNNNNNNNNNFFFFFFFN)Ú__name__Ú
__module__Ú__qualname__r   r%   r%   r%   r&   r      s,                        r   é   aW      cython_include_dirs : [string]
        list of directories to search for Pyrex header files (.pxd) (in
        Unix form for portability)
    cython_directives : {string:value}
        dict of compiler directives
    cython_create_listing_file : boolean
        write pyrex error messages to a listing (.lis) file.
    cython_line_directives : boolean
        emit pyx line numbers for debugging/profiling
    cython_cplus : boolean
        use the C++ compiler for compiling and linking.
    cython_c_in_temp : boolean
        put generated C files in temp directory.
    cython_gen_pxi : boolean
        generate .pxi file for public declarations
    cython_gdb : boolean
        generate Cython debug information for this extension for cygdb
    no_c_in_traceback : boolean
        emit the c file and line number from the traceback for exceptions
)Ú__doc__Z__revision__ÚsysÚdistutils.extensionÚ	extensionr   ÚwarningsÚImportErrorr   Úread_setup_fileÚversion_infor%   r%   r%   r&   Ú<module>   s   
U