o 6aI@sNddlZddlZddlZddlZddlmZejjejdkddddZ dS)N)mingw32ccompilerwin32zwin32 only test)reasonc Csz tddg}WntytdYnw||dd}tjdkr1d|vr0td|n d |vr;td |t \}}|rKt ||d zt W|r]t |d |dSdS|rjt |d |ww) zmTest the mingw32ccompiler.build_import_library, which builds a `python.a` from the MSVC `python.lib` znm.exez--helpz)'nm.exe' not on path, is mingw installed?ssupported targets:Nlspe-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_outputFileNotFoundErrorpytestskipfindsysmaxsize ValueErrorr_check_for_import_libshutilmovebuild_import_library)out supportedhas_import_libfullpathrM/usr/lib/python3/dist-packages/numpy/distutils/tests/test_mingw32ccompiler.pytest_build_import s4    r) rrr rnumpy.distutilsrmarkskipifplatformrrrrrs