관리-도구
편집 파일: lib2def.cpython-311.pyc
� �܋f. � �� � d dl Z d dlZd dlZdZdZd eej dd� � � z ZddgZdez Z e j d ez e j � � Z e j d ez e j � � Z d� Zdddez gd fd�Zd� Zej fd�Zedk r] e� � \ ZZe�ej Zn eed� � Ze ee� � gz Z eed�� � Z ee� � \ ZZ eeee 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 � � t t j � � dk r�t j d dd� dk r7t j d dd� dk rt j dd� \ } }�n t j d dd� dk r6t j d dd� dk rt j dd� \ }} n�t d� � t d � � n�t t j � � dk rnt j d dd� dk rt j d }d t z } n?t j d dd� dk rd}t j d } nd t z } 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�deffiles �j/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/distutils/lib2def.py� parse_cmdr &