o
    Ô­jO	  ã                   @   st   d dl mZ ddlmZmZ ddlmZ ddlmZ ddl	m
Z
 ddlZddlZddlZddlZG dd	„ d	eƒZdS )
é   )ÚBackendé    )ÚsetupÚ	Extension)Úget_info)Údict_append)ÚVisibleDeprecationWarningNc                       s$   e Zd Z‡ fdd„Zdd„ Z‡  ZS )ÚDistutilsBackendc                    s&   t jdtdd� tƒ j|i |¤Ž d S )Nz‹distutils has been deprecated since NumPy 1.26.xUse the Meson backend instead, or generate wrapperswithout -c and use a custom build scripté   )Ú
stacklevel)ÚwarningsÚwarnr   ÚsuperÚ__init__)ÚsefÚargsÚkwargs©Ú	__class__© ú\/var/www/html/CropPilot/venv/lib/python3.10/site-packages/numpy/f2py/_backends/_distutils.pyr      s   ûzDistutilsBackend.__init__c              
   C   sF  i }|r| j  | dg ¡¡ | j| j| j | j| j| j| j| j	| j
dœ	}| jrD| jD ]}t|ƒ}|s;tdt|ƒ› d�ƒ t|fi |¤Ž q)tdi |¤Ž}tjd g| j t_tj dd| jd| jd	d
dg¡ | jrrtj dg| j ¡ | jrtj dg| j ¡ t|gd� | jrŸtj | j¡r¡td| j› �ƒ t | j¡ d S d S d S )NÚinclude_dirs)	ÚnameÚsourcesr   Úlibrary_dirsÚ	librariesÚdefine_macrosÚundef_macrosÚextra_objectsÚf2py_optionszNo z2 resources foundin system (try `f2py --help-link`)r   Úbuildz--build-tempz--build-basez--build-platlibÚ.z--disable-optimizationÚ	config_fcÚ	build_ext)Úext_moduleszRemoving build directory r   )r   ÚextendÚgetÚ
modulenamer   r   r   r   r   r   Ú
f2py_flagsÚsysinfo_flagsr   ÚprintÚreprr   r   ÚsysÚargvÚsetup_flagsÚ	build_dirÚfc_flagsÚ
flib_flagsr   Úremove_build_dirÚosÚpathÚexistsÚshutilÚrmtree)ÚselfÚnum_infoÚext_argsÚnÚiÚextr   r   r   Úcompile   sV   ÷
ÿøÿþzDistutilsBackend.compile)Ú__name__Ú
__module__Ú__qualname__r   r>   Ú__classcell__r   r   r   r   r	      s    
r	   )Ú_backendr   Únumpy.distutils.corer   r   Únumpy.distutils.system_infor   Únumpy.distutils.misc_utilr   Únumpy.exceptionsr   r3   r,   r6   r   r	   r   r   r   r   Ú<module>   s    