%c d Z ddlZddlmZ ej dej j Z ej dej j Z G d de ZdS )zdistutils.extension Provides the Extension class, used to describe C/C++ extension modules in setup scripts. Overridden to support f2py. N) Extensionz.*\.(cpp|cxx|cc)\Zz!.*\.(f90|f95|f77|for|ftn|f|pyf)\Zc L e Zd ZdZ ddZd Zd ZdS )r a Parameters ---------- name : str Extension name. sources : list of str List of source file locations relative to the top directory of the package. extra_compile_args : list of str Extra command line arguments to pass to the compiler. extra_f77_compile_args : list of str Extra command line arguments to pass to the fortran77 compiler. extra_f90_compile_args : list of str Extra command line arguments to pass to the fortran90 compiler. Nc t j | |g ||||||| | || || _ | pg | _ t | j t rAdd l}d}| |t d | j | _ |pg | _ || _ |pg | _ |pg | _ |pg | _ |pg | _ |pg | _ |pg | _ d S )N) include_dirs define_macrosundef_macroslibrary_dirs librariesruntime_library_dirs extra_objectsextra_compile_argsextra_link_argsexport_symbolsr z4swig_opts is specified as a string instead of a list ) stacklevel) old_Extension__init__sources swig_opts isinstancestrwarningswarn SyntaxWarningsplitdependslanguagef2py_optionsmodule_dirsextra_c_compile_argsextra_cxx_compile_argsextra_f77_compile_argsextra_f90_compile_args)selfnamer r r r r r r r r r r r r r r r r r! r" r# r msgs m/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/distutils/extension.pyr zExtension.__init__! s , dB)+))#%9+#5 /- / / / / #b dnc** 4OOOHCMM#}M;;;!^1133DN }" ).B&,"$8$>B!&<&B#&<&B#&<&B# c X | j D ]!}t t | r dS "dS NTF)r cxx_ext_rer r$ sources r' has_cxx_sourceszExtension.has_cxx_sources_ s: l F#f++&&