[Zope3-checkins] CVS: Zope3 - setup.py:1.43

Fred L. Drake, Jr. fred at zope.com
Thu Jan 8 17:33:40 EST 2004


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv21413

Modified Files:
	setup.py 
Log Message:
build the ZODB 3.3 extensions so the ZODB 3.3 tests don't fail here


=== Zope3/setup.py 1.42 => 1.43 ===
--- Zope3/setup.py:1.42	Sat Dec 13 14:23:56 2003
+++ Zope3/setup.py	Thu Jan  8 17:33:39 2004
@@ -195,6 +195,17 @@
                                                     VALUE_H % _flavors[value]])
     return Extension(name, sources, **kwargs)
 
+def BTreeExtension3(flavor):
+    key = flavor[0]
+    value = flavor[1]
+    name = "BTrees._%sBTree" % flavor
+    sources = ["src/BTrees/_%sBTree.c" % flavor]
+    kwargs = {"include_dirs": ['src/persistent']}
+    if flavor != "fs":
+        kwargs["depends"] = (base_btrees_depends + [KEY_H % _flavors[key],
+                                                    VALUE_H % _flavors[value]])
+    return Extension(name, sources, **kwargs)
+
 # All Zope3 extension modules must be listed here.
 ext_modules = [
     BTreeExtension("OO"),
@@ -202,6 +213,39 @@
     BTreeExtension("OI"),
     BTreeExtension("II"),
     BTreeExtension("fs"),
+    BTreeExtension3("OO"),
+    BTreeExtension3("IO"),
+    BTreeExtension3("OI"),
+    BTreeExtension3("II"),
+    BTreeExtension3("fs"),
+    Extension(name = 'persistent.cPersistence',
+              include_dirs = ['src/persistent'],
+              sources= ['src/persistent/cPersistence.c',
+                        'src/persistent/ring.c'],
+              depends = ['src/persistent/cPersistence.h',
+                         'src/persistent/ring.h',
+                         'src/persistent/ring.c']
+              ),
+    Extension(name = 'persistent.cPickleCache',
+              include_dirs = ['src/persistent'],
+              sources= ['src/persistent/cPickleCache.c',
+                        'src/persistent/ring.c'],
+              depends = ['src/persistent/cPersistence.h',
+                         'src/persistent/ring.h',
+                         'src/persistent/ring.c']
+              ),
+    Extension(name = 'persistent.TimeStamp',
+              include_dirs = ['src/persistent'],
+              sources= ['src/persistent/TimeStamp.c']
+              ),
+    Extension(name = 'ZODB.coptimizations',
+              include_dirs = ['src/persistent'],
+              sources= ['src/ZODB/coptimizations.c']
+              ),
+    Extension(name = 'ZODB.winlock',
+              include_dirs = ['src/persistent'],
+              sources = ['src/ZODB/winlock.c']
+              ),
     Extension("persistence._persistence",
               ["src/persistence/persistence.c"],
               depends = ["src/persistence/persistence.h",




More information about the Zope3-Checkins mailing list