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
46
47
48
49
U
O±dã@sFddlmZddlmZd
dd„ZGdd„deƒZGdd    „d    eƒZdS) é)ÚCommand)ÚlogNcCsF|rdS|dkrg}| d¡ddlm}ddl}|jj}||ƒdS)Nér)Úshow_fcompilers)ÚappendZnumpy.distutils.fcompilerrÚdistutils.coreÚcoreÚ_setup_distribution)Ú_cacherÚ    distutilsÚdist©r ú^d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/distutils/command/config_compiler.pyÚshow_fortran_compilerss
 rc
@s\eZdZdZdZddddddd    d
d d g
Zd ddefgZdddgZdd„Z    dd„Z
dd„Z dS)Ú    config_fcz” Distutils command to hold user specified options
    to Fortran compilers.
 
    config_fc command is used by the FCompiler.customize() method.
    z2specify Fortran 77/Fortran 90 compiler information)z
fcompiler=Nzspecify Fortran compiler type)zf77exec=Nzspecify F77 compiler command)zf90exec=Nzspecify F90 compiler command)z    f77flags=Nzspecify F77 compiler flags)z    f90flags=Nzspecify F90 compiler flags)zopt=Nzspecify optimization flags)zarch=Nz0specify architecture specific optimization flags)ÚdebugÚgz"compile with debugging information)ÚnooptNzcompile without optimization)ÚnoarchNz+compile without arch-dependent optimizationzhelp-fcompilerNz list available Fortran compilersrrrcCs@d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_    dS©N)
Ú    fcompilerZf77execZf90execZf77flagsZf90flagsÚoptÚarchrrr©Úselfr r rÚinitialize_options/szconfig_fc.initialize_optionsc Csèt d¡| d¡}| d¡}| d¡}| d¡}|||||g}dD]ž}g}|D]8}t||ƒ}    |    dk    rPt|    tƒsv|    j}    |    |krP| |    ¡qP|s”d}
n|d}
t|ƒdkrºt     d    ||f¡|
rD|D]}t||ƒdkrÂt
|||
ƒqÂqDdS)
NzTunifing config_fc, config, build_clib, build_ext, build commands --fcompiler optionsÚ
build_clibÚ    build_extÚconfigÚbuild)rrrúJ  commands have different --%s options: %s, using first in list as default© rÚinfoÚget_finalized_commandÚgetattrÚ
isinstanceÚstrÚ compiler_typerÚlenÚwarnÚsetattr© rrrrrZcmd_listÚaÚlÚcÚvZv1r r rÚfinalize_options;s4
 
 
 
 
 
 
  ÿzconfig_fc.finalize_optionscCsdSrr rr r rÚrunRsz config_fc.run) Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú descriptionÚ user_optionsrÚ help_optionsÚboolean_optionsrr0r1r r r rrs*öÿÿ
 rc@s2eZdZdZdZdgZdd„Zdd„Zdd    „Zd
S) Ú    config_cczN Distutils command to hold user specified options
    to C/C++ compilers.
    z"specify C/C++ compiler information)z    compiler=Nzspecify C/C++ compiler typecCs
d|_dSr©Úcompilerrr r rraszconfig_cc.initialize_optionsc Csèt d¡| d¡}| d¡}| d¡}| d¡}|||||g}dD]ž}g}|D]8}t||ƒ}    |    dk    rPt|    tƒsv|    j}    |    |krP| |    ¡qP|s”d}
n|d}
t|ƒdkrºt     d    ||f¡|
rD|D]}t||ƒdkrÂt
|||
ƒqÂqDdS)
NzSunifing config_cc, config, build_clib, build_ext, build commands --compiler optionsrrrrr;rrr r!r+r r rr0ds6
 
 
 
 
 
 
  ÿzconfig_cc.finalize_optionscCsdSrr rr r rr1|sz config_cc.runN)    r2r3r4r5r6r7rr0r1r r r rr:Vsÿr:)N)rrZnumpy.distutilsrrrr:r r r rÚ<module>s  
D