1
2
3
4
5
6
7
8
9
10
11
U
O±dŸã@s@ddlZddlmZddlmZddlmZGdd„deƒZdS)éN)ÚCommand)Ú new_compiler)Úget_cmdc@s4eZdZdZgZdd„Zdd„Zdd„Zdd    „Zd
S) Ú install_clibz*Command to install installable C librariescCsd|_g|_dS©N)Ú install_dirÚoutfiles©Úself©r ú[d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/distutils/command/install_clib.pyÚinitialize_options szinstall_clib.initialize_optionscCs| dd¡dS)NÚinstall)Ú install_libr)Úset_undefined_optionsr    r r r Úfinalize_optionsszinstall_clib.finalize_optionscCs tdƒ}|js| ¡|j}|js:tdd}| |j¡n|j}|jjD]R}tj     
|j |j ¡}|  |j¡}tj     
||¡}| |¡|j | ||¡d¡qHdS)NÚ
build_clib)Úcompilerr)rrrrrZ    customizeÚ distributionZinstalled_librariesÚosÚpathÚjoinrÚ
target_dirZlibrary_filenameÚnameÚmkpathrÚappendÚ    copy_file)r
Zbuild_clib_cmdÚ    build_dirrÚlrrÚsourcer r r Úruns
 
zinstall_clib.runcCs|jSr)rr    r r r Ú get_outputs'szinstall_clib.get_outputsN)    Ú__name__Ú
__module__Ú __qualname__Ú descriptionÚ user_optionsr rr r!r r r r rs r)rÚdistutils.corerÚdistutils.ccompilerrZnumpy.distutils.misc_utilrrr r r r Ú<module>s