[Zodb-checkins] CVS: StandaloneZODB - setup.py:1.10
Guido van Rossum
guido@python.org
Mon, 21 Jan 2002 11:47:02 -0500
Update of /cvs-repository/StandaloneZODB
In directory cvs.zope.org:/tmp/cvs-serv9975
Modified Files:
setup.py
Log Message:
Only do the setup() call for bsddb3Storage when "import bsddb3"
succeeds.
=== StandaloneZODB/setup.py 1.9 => 1.10 ===
# Berkeley storages
-setup(name="bsddb3Storage",
- description="ZODB storages based on Berkeley DB",
- author = zope_corp,
- author_email = zodb_email,
- url = zodb_wiki,
- package_dir = {'bsddb3Storage': 'bsddb3Storage/bsddb3Storage'},
- packages = ["bsddb3Storage", "bsddb3Storage.tests"],
- )
+try:
+ import bsddb3
+except ImportError:
+ pass # Skipping bsddb3Storage
+else:
+ setup(name="bsddb3Storage",
+ description="ZODB storages based on Berkeley DB",
+ author = zope_corp,
+ author_email = zodb_email,
+ url = zodb_wiki,
+ package_dir = {'bsddb3Storage': 'bsddb3Storage/bsddb3Storage'},
+ packages = ["bsddb3Storage", "bsddb3Storage.tests"],
+ )
# BTrees