Add libtool to the build.

While in the area, add a pkg-config file.
* * *
[mq]: build-fixes
This commit is contained in:
Michael Cahill
2011-08-26 15:28:43 +10:00
parent 020ccb3d75
commit 574d7b43cf
8 changed files with 55 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
import os
import re, os
from distutils.core import setup, Extension
# OS X hack: turn off the Universal binary support that is built into the
@@ -8,11 +8,19 @@ if not 'ARCHFLAGS' in os.environ:
dir = os.path.dirname(__file__)
setup(name='wiredtiger', version='1.0',
# Read the version information from dist/RELEASE
dist = os.path.join(os.path.dirname(os.path.dirname(dir)), 'dist')
for l in open(os.path.join(dist, 'RELEASE')):
if re.match(r'WIREDTIGER_VERSION_(?:MAJOR|MINOR|PATCH)=', l):
exec(l)
wt_ver = '%d.%d' % (WIREDTIGER_VERSION_MAJOR, WIREDTIGER_VERSION_MINOR)
setup(name='wiredtiger', version=wt_ver,
ext_modules=[Extension('_wiredtiger',
[os.path.join(dir, 'wiredtiger_wrap.c')],
include_dirs=['.'],
library_dirs=['.'],
library_dirs=['.libs'],
libraries=['wiredtiger'],
)],
py_modules=['wiredtiger'],