mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
cb9cbfb122
a bsddb[34] binding bundled in python2.3 distribution.
30 lines
833 B
Python
30 lines
833 B
Python
#!/usr/bin/env python
|
|
# To use:
|
|
# python setup.py install
|
|
#
|
|
|
|
__version__ = "$FreeBSD: /tmp/pcvs/ports/databases/py-bsddb/files/setup.py,v 1.1 2003-07-31 20:03:51 perky Exp $"
|
|
|
|
import os
|
|
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 = [os.environ['BSDDB_VERSION']]
|
|
|
|
setup(name = "_bsddb",
|
|
description = "BSDDB Extension to Python",
|
|
|
|
ext_modules = [Extension('_bsddb', ['_bsddb.c'],
|
|
include_dirs = inc_dirs,
|
|
libraries = libs,
|
|
library_dirs = lib_dirs)]
|
|
)
|