o
    Ô­jI  ã                   @   sN   d dl Z d dlZd dlZd dlZd dlmZ ejjejdkdd�dd„ ƒZ	dS )é    N)Úmingw32ccompilerÚwin32zwin32 only test)Úreasonc               
   C   sÖ   z	t  ddg¡} W n ty   t d¡ Y nw | |  d¡d… }tjdk r1d|vr0td| ƒ‚n
d	|vr;td
| ƒ‚t	 
¡ \}}|rKt ||d ¡ zt	 ¡  W |r]t |d |¡ dS dS |rjt |d |¡ w w )zmTest the mingw32ccompiler.build_import_library, which builds a
    `python.a` from the MSVC `python.lib`
    znm.exez--helpz)'nm.exe' not on path, is mingw installed?s   supported targets:Nl        s   pe-i386zd'nm.exe' found but it does not support 32-bit dlls when using 32-bit python. Supported formats: '%s's	   pe-x86-64zd'nm.exe' found but it does not support 64-bit dlls when using 64-bit python. Supported formats: '%s'z.bak)Ú
subprocessÚcheck_outputÚFileNotFoundErrorÚpytestÚskipÚfindÚsysÚmaxsizeÚ
ValueErrorr   Ú_check_for_import_libÚshutilÚmoveÚbuild_import_library)ÚoutÚ	supportedÚhas_import_libÚfullpath© r   úh/var/www/html/CropPilot/venv/lib/python3.10/site-packages/numpy/distutils/tests/test_mingw32ccompiler.pyÚtest_build_import	   s4   ÿ
þÿþ
ÿÿr   )
r   r   r   r   Únumpy.distutilsr   ÚmarkÚskipifÚplatformr   r   r   r   r   Ú<module>   s    