[Zope3-checkins] SVN: zope.testing/trunk/setup.py Added missing setuptools dependency (when setuptools is used) and

Jim Fulton jim at zope.com
Sun May 6 09:56:53 EDT 2007


Log message for revision 75564:
  Added missing setuptools dependency (when setuptools is used) and
  changed to work w/o setuptools.
  

Changed:
  U   zope.testing/trunk/setup.py

-=-
Modified: zope.testing/trunk/setup.py
===================================================================
--- zope.testing/trunk/setup.py	2007-05-06 13:56:42 UTC (rev 75563)
+++ zope.testing/trunk/setup.py	2007-05-06 13:56:52 UTC (rev 75564)
@@ -20,8 +20,16 @@
 
 try:
     from setuptools import setup
+    extra = dict(
+        namespace_packages=['zope',],
+        install_requires = ['setuptools'],
+        extras_require={'zope_tracebacks': 'zope.exceptions'},
+        include_package_data = True,    
+        zip_safe = False,
+        )
 except ImportError, e:
     from distutils.core import setup
+    extra = {}
 
 chapters = '\n'.join([
     open(os.path.join('src', 'zope', 'testing', name)).read()
@@ -70,9 +78,4 @@
     
     packages=["zope", "zope.testing"],
     package_dir = {'': 'src'},
-    
-    namespace_packages=['zope',],
-    extras_require={'zope_tracebacks': 'zope.exceptions'},
-    include_package_data = True,    
-    zip_safe = False,
-    )
+    **extra)



More information about the Zope3-Checkins mailing list