Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/numpy/distutils/tests/__pycache__/ |
Upload File : |
o 6��aI � @ sN d dl Z d dlZd dlZd dlZd dlmZ ejjejdkdd�dd� �Z dS )� N)�mingw32ccompiler�win32zwin32 only test)�reasonc C s� z t �ddg�} W n ty t�d� Y nw | | �d�d� }tjdk r1d|vr0td| ��n d |vr;td | ��t � � \}}|rKt�||d � zt � � W |r]t�|d |� dS dS |rjt�|d |� w w )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?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