summaryrefslogtreecommitdiff
path: root/databases/py-gdbm/files
diff options
context:
space:
mode:
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']
+ )
+ ]
+)