[Zodb-checkins] CVS: Releases/StandaloneZODB - setup.py:1.3

jeremy@digicool.com jeremy@digicool.com
Mon, 2 Apr 2001 12:36:55 -0400 (EDT)


Update of /cvs-repository/Releases/StandaloneZODB
In directory korak:/tmp/cvs-serv26985

Modified Files:
	setup.py 
Log Message:
Add support for BTrees



--- Updated File setup.py in package Releases/StandaloneZODB --
--- setup.py	2001/03/27 20:36:42	1.2
+++ setup.py	2001/04/02 16:36:54	1.3
@@ -60,6 +60,7 @@
 
 # ZEO
 if sys.hexversion < 0x01060000:
+    # XXX this code probably does not work
     ext_modules = [Extension(name = 'ZEO.cPickle',
                              sources = ['cPickle.c']) ]
     async_modules = ['ZEO.asyncore', 'ZEO.asynchat']
@@ -81,6 +82,38 @@
 
       ext_modules = ext_modules,
       py_modules = zeo_modules + async_modules,
+      )
+
+# BTrees
+
+btree_include = ec_include + ['ZODB']
+
+oob = Extension(name = "BTrees._OOBTree",
+                include_dirs = btree_include,
+                sources = ['BTrees/_OOBTree.c'],
+                )
+
+oib = Extension(name = "BTrees._OIBTree",
+                include_dirs = btree_include,
+                sources = ['BTrees/_OIBTree.c'],
+                )
+
+iib = Extension(name = "BTrees._IIBTree",
+                include_dirs = btree_include,
+                sources = ['BTrees/_IIBTree.c'],
+                define_macros = [('EXCLUDE_INTSET_SUPPORT', None)],
+                )
+
+iob = Extension(name = "BTrees._IOBTree",
+                include_dirs = btree_include,
+                sources = ['BTrees/_IOBTree.c'],
+                define_macros = [('EXCLUDE_INTSET_SUPPORT', None)],
+                )
+
+setup(name="BTrees",
+      version="?",
+      packages=["BTrees", "BTrees.tests"],
+      ext_modules = [oob, oib, iib, iob],
       )
 
 # Lib -- misc. support files