a
    bb                     @   s   d Z dZddlZddlmZ zddlZW n ey>   dZY n0 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 )zPyrex.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}t |D ],}|drd}|||d|dd   < q|rttj| ||f|||||||	|
|||||d| d S tjj| ||f|||||||	|
||||d| |pg | _|pi | _|| _|| _	|| _
|| _|| _|| _|| _|| _d S )NFZpyrex_TZ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$   j/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/Cython/Distutils/extension.pyr      sl    


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