[Zodb-checkins] CVS: StandaloneZODB - setup.py:1.14.2.2
Barry Warsaw
barry@wooz.org
Thu, 22 Aug 2002 23:05:09 -0400
Update of /cvs-repository/StandaloneZODB
In directory cvs.zope.org:/tmp/cvs-serv12008
Modified Files:
Tag: bsddb3Storage-picklelog-branch
setup.py
Log Message:
Don't build the bsddb _helper extension unless using at least Python
2.2.
=== StandaloneZODB/setup.py 1.14.2.1 => 1.14.2.2 ===
--- StandaloneZODB/setup.py:1.14.2.1 Thu Jun 6 18:36:43 2002
+++ StandaloneZODB/setup.py Thu Aug 22 23:05:08 2002
@@ -12,6 +12,7 @@
#
##############################################################################
+import sys
from distutils.core import setup
from distutils.extension import Extension
@@ -109,6 +110,19 @@
"bsddb3Storage", "bsddb3Storage.tests",
]
+ext_modules = [ExtensionClass, Acquisition, ComputedAttribute,
+ MethodObject, Missing, MultiMapping, Sync,
+ ThreadLock, Record, cPersistence, cPickleCache,
+ TimeStamp, coptimizations, winlock, oob, oib,
+ iib, iob, fsb,
+ ]
+
+
+# Don't build this unless using at least Python 2.2
+if sys.hexversion >= 0x020200F0:
+ ext_modules.append(bsddbhelper)
+
+
setup(name="ZODB",
version="3.0",
description="Zope Object Database: object database and persistence",
@@ -118,12 +132,7 @@
package_dir = {'bsddb3Storage': 'bsddb3Storage/bsddb3Storage'},
packages = packages,
- ext_modules = [ExtensionClass, Acquisition, ComputedAttribute,
- MethodObject, Missing, MultiMapping, Sync,
- ThreadLock, Record, cPersistence, cPickleCache,
- TimeStamp, coptimizations, winlock, oob, oib,
- iib, iob, fsb, bsddbhelper,
- ],
+ ext_modules = ext_modules,
headers = ['ExtensionClass/src/ExtensionClass.h', 'ZODB/cPersistence.h'],
)