File: //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/lib2def.pyo
�
�9Zc @` s} d d l m Z m Z m Z 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 rye � \ 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 ( t divisiont absolute_importt print_functionNs� 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` sD t t j � d k r� t j d d d k rY t j d d d k rY t j d \ } } q:t j d d d k r� t j d d d k r� t j d \ } } q:t d � t d � n� t t j � d k r*t j d d d k r� t j d } d t } q:t j d d d k r:d
} t j d } q:n 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 printt py_vert None( t libfilet deffile( ( sJ /opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/lib2def.pyt parse_cmd) s"