Current File : //usr/lib64/python2.7/site-packages/numpy/distutils/lib2def.pyc |
�
E�`Qc @ sa d d l Z d d l Z d d l Z d d l Z d Z d Z d e e j d � Z d Z d e Z
e j d e e j � Z
e j d e e j � Z d
� Z d d d
e g d � Z d � Z e j d � Z e d k r]e � \ Z Z e d k re j Z n e e d � Z e e � e e � g Z e e � Z e e � \ Z Z e e e e
e � n d S( i����Ns� 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
s 0.1as %d%di s nm -Cssr LIBRARY python%s.dll
;CODE PRELOAD MOVEABLE DISCARDABLE
;DATA PRELOAD SINGLE
EXPORTS
s ^(.*) in python%s\.dlls ^_imp__(.*) in python%s\.dllc C s: t t j � d k r� t j d d d k rY t j d d d k rY t j d \ } } q0t j d d d k r� t j d d d k r� t j d \ } } q0d GHd GHn� t t j � d k r t j d d d k r� t j d } d t } q0t j d d d k r0d
} t j d } q0n d t } d
} | | f S( sB Parses the command-line arguments.
libfile, deffile = parse_cmd()i i i����s .libi s .defs4 I'm assuming that your first argument is the librarys and the second is the DEF file.s python%s.libN( t lent syst argvt py_vert None( t libfilet deffile( ( s= /usr/lib64/python2.7/site-packages/numpy/distutils/lib2def.pyt parse_cmd'