o
    6aI                     @   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   M/usr/lib/python3/dist-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    