a ;jgT ã@stddlmZddlmZmZddlmZddlmZddl m Z ddl Z ddl Z ddl Z ddlZGdd „d eƒZdS) é)ÚBackendé)ÚsetupÚ Extension)Úget_info)Ú dict_append)ÚVisibleDeprecationWarningNcs$eZdZ‡fdd„Zdd„Z‡ZS)ÚDistutilsBackendcs&tjdtddtƒj|i|¤ŽdS)NzŽ distutils has been deprecated since NumPy 1.26.x Use the Meson backend instead, or generate wrappers without -c and use a custom build scripté)Ú stacklevel)ÚwarningsÚwarnrÚsuperÚ__init__)ZsefÚargsÚkwargs©Ú __class__©úI/usr/local/lib/python3.9/site-packages/numpy/f2py/_backends/_distutils.pyrs ûzDistutilsBackend.__init__c CsBi}|r|j | dg¡¡|j|j|j|j|j|j|j|j |j dœ }|j rˆ|j D]4}t |ƒ}|svt dt|ƒ›dƒt|fi|¤ŽqRtfi|¤Ž}tjdg|jt_tj dd|jd|jd d d g¡|jrätj d g|j¡|jrþtj d g|j¡t|gd|jr>tj |j¡r>t d|j›ƒt |j¡dS)NÚ include_dirs) ÚnameÚsourcesrÚ library_dirsÚ librariesÚ define_macrosÚ undef_macrosÚ extra_objectsZ f2py_optionszNo z2 resources foundin system (try `f2py --help-link`)rÚbuildz --build-tempz --build-basez--build-platlibÚ.z--disable-optimizationZ config_fcÚ build_ext)Ú ext_moduleszRemoving build directory )rÚextendÚgetÚ modulenamerrrrrrZ f2py_flagsZ sysinfo_flagsrÚprintÚreprrrÚsysÚargvZ setup_flagsÚ build_dirZfc_flagsZ flib_flagsrZremove_build_dirÚosÚpathÚexistsÚshutilÚrmtree)ÚselfZnum_infoZext_argsÚnÚiÚextrrrÚcompilesT÷  ÿøÿ  zDistutilsBackend.compile)Ú__name__Ú __module__Ú __qualname__rr3Ú __classcell__rrrrr s r )Z_backendrZnumpy.distutils.corerrZnumpy.distutils.system_inforZnumpy.distutils.misc_utilrZnumpy.exceptionsrr*r'r-r r rrrrÚs