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/__pycache__/ |
Upload File : |
o 6��a< � @ s d dl Z d dlZd dlZdZdZdeejdd� � ZddgZde Z e � d e e j�Ze � d e e j�Z dd� Zddd e gdfdd�Zdd� Zejfdd�Zedkr�e� \ZZedu raejZneed�Zeee�g Zeedd�Zee�\ZZeeee e� dS dS )� Na� This module generates a DEF file from the symbols in an MSVC-compiled DLL import library. It correctly discriminates between data and functions. The data is collected from the output of the program nm(1). Usage: python lib2def.py [libname.lib] [output.def] or python lib2def.py [libname.lib] > output.def libname.lib defaults to python<py_ver>.lib and output.def defaults to stdout Author: Robert Kern <kernr@mail.ncifcrf.gov> Last Update: April 30, 1999 z0.1az%d%d� �nmz-CszrLIBRARY python%s.dll ;CODE PRELOAD MOVEABLE DISCARDABLE ;DATA PRELOAD SINGLE EXPORTS z^(.*) in python%s\.dllz^_imp__(.*) in python%s\.dllc C s0 t tj�dkrYtjd dd� dkr*tjd dd� dkr*tjdd� \} }| |fS tjd dd� dkrMtjd dd� dkrMtjdd� \}} | |fS td� td � | |fS t tj�dkr�tjd dd� dkrxtjd }d t } | |fS tjd dd� dkr�d}tjd } | |fS d t } d}| |fS )zBParses the command-line arguments. libfile, deffile = parse_cmd()� � ���Nz.libr z.defz4I'm assuming that your first argument is the libraryzand the second is the DEF file.�python%s.lib)�len�sys�argv�print�py_ver)�libfile�deffile� r �9/usr/lib/python3/dist-packages/numpy/distutils/lib2def.py� parse_cmd&