[Interface-dev] Problems with zope.interface-3.3.0b1

Žiga Seilnacht ziga.seilnacht at gmail.com
Wed Jan 3 21:40:28 EST 2007


Hi,

The setup script for the latest release fails with a NameError if
you don't have setuptools installed. There are also some tests that
fail because of missing text files in the built package. The
attached patch should fix this.

Regards,
Žiga

-------------- next part --------------
Index: setup.py
===================================================================
--- setup.py	(revision 71705)
+++ setup.py	(working copy)
@@ -17,11 +17,21 @@
 """
 
 import os
+import sys
 
 try:
     from setuptools import setup, Extension
 except ImportError, e:
     from distutils.core import setup, Extension
+    if sys.version_info[:2] >= (2, 4):
+        extra = dict(
+            package_data={
+                'zope.interface': ['*.txt'],
+                'zope.interface.tests': ['*.txt'],
+                }
+            )
+    else:
+        extra = dict()
 else:
     extra = dict(
         namespace_packages=["zope"],


More information about the Interface-dev mailing list