zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
U
O±d[ã@sLdZddlZddlmZe dej¡jZe dej¡jZ    Gdd„deƒZdS)zŒdistutils.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@s*eZdZdZd    dd„Zdd„Zdd„ZdS)
ra
    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.
    NcCs¸tj||g|||||||    |
| | d ||_| p0g|_t|jtƒrhddl}d}|j|tdd|j     ¡|_|png|_
||_ |p~g|_ |pˆg|_ |p’g|_|pœg|_|p¦g|_|p°g|_dS)N)
Ú include_dirsÚ define_macrosÚ undef_macrosÚ library_dirsÚ    librariesÚruntime_library_dirsÚ extra_objectsÚextra_compile_argsÚextra_link_argsÚexport_symbolsrz4swig_opts is specified as a string instead of a listé)Ú
stacklevel)Ú old_ExtensionÚ__init__ÚsourcesÚ    swig_optsÚ
isinstanceÚstrÚwarningsÚwarnÚ SyntaxWarningÚsplitÚdependsÚlanguageÚ f2py_optionsÚ module_dirsÚextra_c_compile_argsÚextra_cxx_compile_argsÚextra_f77_compile_argsÚextra_f90_compile_args)ÚselfÚnamerrrrrrrr    r
r r rrrrrrrrr rÚmsg©r$úPd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/distutils/extension.pyr!s>õ
 
 
 
 
 
 
 
zExtension.__init__cCs"|jD]}tt|ƒƒrdSqdS©NTF)rÚ
cxx_ext_rer©r!Úsourcer$r$r%Úhas_cxx_sources_s
 zExtension.has_cxx_sourcescCs|jD]}t|ƒrdSqdSr&)rÚfortran_pyf_ext_rer(r$r$r%Úhas_f2py_sourceses
zExtension.has_f2py_sources)NNNNNNNNNNNNNNNNNNN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rr*r,r$r$r$r%rs.ì
>r)
r0ÚreÚdistutils.extensionrrÚcompileÚIÚmatchr'r+r$r$r$r%Ú<module>s