[Zodb-checkins] CVS: ZODB3 - setup.py:1.43

Jeremy Hylton jeremy@zope.com
Fri, 17 Jan 2003 15:08:20 -0500


Update of /cvs-repository/ZODB3
In directory cvs.zope.org:/tmp/cvs-serv11804

Modified Files:
	setup.py 
Log Message:
Always include optional packages in a source distribution.


=== ZODB3/setup.py 1.42 => 1.43 ===
--- ZODB3/setup.py:1.42	Fri Jan 17 14:12:34 2003
+++ ZODB3/setup.py	Fri Jan 17 15:08:18 2003
@@ -136,7 +136,7 @@
 exts += [cPersistence, cPickleCache, TimeStamp, coptimizations, winlock]
 
 # Don't build the helper unless using at least Python 2.2
-if sys.hexversion >= 0x020200F0:
+if sys.version_info >= (2, 2) or "sdist" in sys.argv:
     bsddbhelper = Extension(name = 'BDBStorage._helper',
                             sources = ['BDBStorage/_helper.c'])
     exts += [bsddbhelper]
@@ -154,7 +154,8 @@
             ]
 package_dir = {'BDBStorage': 'BDBStorage'}
 
-if sys.version_info < (2, 3):
+# include in a source distribution and 
+if sys.version_info < (2, 3) or "sdist" in sys.argv:
     packages.append("logging")
 
 scripts = ["Tools/fsdump.py",