pkgsrc/databases/py-gdbm/files/setup.py
drochner 04a768f05a use distutils to build the extension module, to make it work with
newer Python versions too,
XXX we have to override the do-patch rule to avoid patch errors
    (we use EXTRACT_ELEMENTS, so we don't generally have all the
     original files)
2002-01-28 09:30:08 +00:00

21 lines
416 B
Python

# $NetBSD: setup.py,v 1.1 2002/01/28 09:30:10 drochner Exp $
import distutils
from distutils.core import setup, Extension
gdbmprefix = '@GDBMPREFIX@'
gdbmincl = gdbmprefix + '/include'
gdbmlib = gdbmprefix + '/lib'
setup(
ext_modules = [
Extension(
'gdbm',
['Modules/gdbmmodule.c'],
include_dirs=[gdbmincl],
library_dirs=[gdbmlib],
runtime_library_dirs=[gdbmlib],
libraries=['gdbm']
)
]
)