[Zodb-checkins] CVS: StandaloneZODB - setup.py:1.9.4.3

Guido van Rossum guido@python.org
Sat, 26 Jan 2002 22:53:29 -0500


Update of /cvs-repository/StandaloneZODB
In directory cvs.zope.org:/tmp/cvs-serv3415

Modified Files:
      Tag: StandaloneZODB-1_0-branch
	setup.py 
Log Message:
Only include Berkeley storage when "import bsddb3" succeeds.


=== StandaloneZODB/setup.py 1.9.4.2 => 1.9.4.3 ===
                 )
 
+packages = ['BTrees', 'BTrees.tests',
+            'ZEO', 'ZEO.tests',
+            'ZODB', 'ZODB.tests',
+            "Persistence",
+            "ThreadedAsync",
+            "zLOG", "zLOG.tests",
+            "zdaemon",                  
+            ]
+
+try:
+    import bsddb3
+except ImportError:
+    pass
+else:
+    packages.extend(["bsddb3Storage", "bsddb3Storage.tests"])
+
 setup(name="StandaloneZODB",
       version="1.0b1",
       description="Zope Object Database: object database and persistence",
@@ -90,15 +106,7 @@
       url = "http://www.zope.org/Wikis/ZODB/FrontPage",
 
       package_dir = {'bsddb3Storage': 'bsddb3Storage/bsddb3Storage'},
-      packages = ["bsddb3Storage", "bsddb3Storage.tests",
-                  'BTrees', 'BTrees.tests',
-                  'ZEO', 'ZEO.tests',
-                  'ZODB', 'ZODB.tests',
-                  "Persistence",
-                  "ThreadedAsync",
-                  "zLOG", "zLOG.tests",
-                  "zdaemon",                  
-                  ],
+      packages = packages,
       ext_modules = [ExtensionClass, Acquisition, ComputedAttribute,
                      MethodObject, Missing, MultiMapping, Sync,
                      ThreadLock, Record, cPersistence, cPickleCache,