Fix "make install" of Python. Remove old code and restructure the Python sources under lang/python to simplify the installation step.

--HG--
rename : lang/python/fpacking.py => lang/python/wiredtiger/fpacking.py
rename : lang/python/intpack-test.py => lang/python/wiredtiger/intpack-test.py
rename : lang/python/intpacking.py => lang/python/wiredtiger/intpacking.py
rename : lang/python/packing-test.py => lang/python/wiredtiger/packing-test.py
rename : lang/python/packing.py => lang/python/wiredtiger/packing.py
This commit is contained in:
Michael Cahill
2013-07-17 10:13:11 +10:00
parent ba05f74e0d
commit 1fb70757f2
19 changed files with 23 additions and 6408 deletions

View File

@@ -21,8 +21,7 @@ extra_cflags = [
dir = os.path.dirname(__file__)
# Read the version information from the RELEASE file
top = os.path.dirname(os.path.dirname(dir))
for l in open(os.path.join(top, 'RELEASE')):
for l in open(os.path.join(dir, '..', '..', 'RELEASE')):
if re.match(r'WIREDTIGER_VERSION_(?:MAJOR|MINOR|PATCH)=', l):
exec(l)
@@ -30,11 +29,12 @@ 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')],
[os.path.join(dir, 'wiredtiger_wrap.c')],
include_dirs=['../..'],
library_dirs=['../../.libs'],
libraries=['wiredtiger'],
extra_compile_args=extra_cflags,
)],
py_modules=['wiredtiger'],
package_dir={'' : dir},
packages=['wiredtiger'],
)