summaryrefslogtreecommitdiff
path: root/databases/py-gdbm/files
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2002-01-28 09:30:08 +0000
committerdrochner <drochner@pkgsrc.org>2002-01-28 09:30:08 +0000
commit04a768f05aeca0d1bdaf37c57d96575c32a31652 (patch)
treefe5860441007f7a6027e99095bbd0f169dad1062 /databases/py-gdbm/files
parent2111e94c45ef81ea7e3af1e57751321009055167 (diff)
downloadpkgsrc-04a768f05aeca0d1bdaf37c57d96575c32a31652.tar.gz
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)
Diffstat (limited to 'databases/py-gdbm/files')
-rw-r--r--databases/py-gdbm/files/setup.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/databases/py-gdbm/files/setup.py b/databases/py-gdbm/files/setup.py
new file mode 100644
index 00000000000..2fce8c62aa1
--- /dev/null
+++ b/databases/py-gdbm/files/setup.py
@@ -0,0 +1,21 @@
+# $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']
+ )
+ ]
+)