freebsd-ports/databases/py-gdbm/files/setup3.py
Li-Wen Hsu 979f0ac6fb - Fix building with python3*
- Use checksum file under lang/python${PYTHON_SUFFIX}/,
  for removal lang/python/distinfo

PR:		ports/136199
Submitted by:	lwhsu
Approved by:	perky
2009-07-08 09:12:46 +00:00

28 lines
714 B
Python

#!/usr/bin/env python
# To use:
# python setup.py install
#
__version__ = "$FreeBSD$"
try:
import distutils
from distutils import sysconfig
from distutils.command.install import install
from distutils.core import setup, Extension
except:
raise SystemExit("Distutils problem")
prefix = sysconfig.PREFIX
inc_dirs = [prefix + "/include"]
lib_dirs = [prefix + "/lib"]
libs = ["gdbm"]
setup(name = "gdbm",
description = "GDBM Extension to Python",
ext_modules = [Extension('gdbm', ['_gdbmmodule.c'],
include_dirs = inc_dirs,
libraries = libs,
library_dirs = lib_dirs)]
)