[Zope-Checkins] SVN: Zope/branches/2.12/ Cleaned up setup.py extension build info

Hanno Schlichting hannosch at hannosch.eu
Fri Apr 30 12:44:03 EDT 2010


Log message for revision 111644:
  Cleaned up setup.py extension build info
  

Changed:
  _U  Zope/branches/2.12/include/
  U   Zope/branches/2.12/setup.py

-=-

Property changes on: Zope/branches/2.12/include
___________________________________________________________________
Modified: svn:externals
   - Acquisition     svn://svn.zope.org/repos/main/Acquisition/tags/2.13.3/src/Acquisition
ExtensionClass  svn://svn.zope.org/repos/main/ExtensionClass/tags/2.13.1/src/ExtensionClass
persistent      svn://svn.zope.org/repos/main/ZODB/tags/3.9.5/src/persistent

   + Acquisition     svn://svn.zope.org/repos/main/Acquisition/tags/2.13.3/src/Acquisition
ExtensionClass  svn://svn.zope.org/repos/main/ExtensionClass/tags/2.13.1/src/ExtensionClass


Modified: Zope/branches/2.12/setup.py
===================================================================
--- Zope/branches/2.12/setup.py	2010-04-30 16:41:02 UTC (rev 111643)
+++ Zope/branches/2.12/setup.py	2010-04-30 16:44:03 UTC (rev 111644)
@@ -15,9 +15,7 @@
 import os
 from setuptools import setup, find_packages, Extension
 
-EXTENSIONCLASS_INCLUDEDIRS = ['include', 'src']
-
-params = dict(name='Zope2',
+setup(name='Zope2',
     version='2.12.6dev',
     url='http://www.zope.org',
     license='ZPL 2.1',
@@ -36,17 +34,17 @@
       # AccessControl
       Extension(
             name='AccessControl.cAccessControl',
-            include_dirs=EXTENSIONCLASS_INCLUDEDIRS,
+            include_dirs=['include', 'src'],
             sources=['src/AccessControl/cAccessControl.c'],
             depends=['include/ExtensionClass/ExtensionClass.h',
-                     'include/ExtensionClass/pickle/pickle.c',
                      'include/Acquisition/Acquisition.h']),
 
       # DocumentTemplate
       Extension(
             name='DocumentTemplate.cDocumentTemplate',
-            include_dirs=EXTENSIONCLASS_INCLUDEDIRS,
-            sources=['src/DocumentTemplate/cDocumentTemplate.c']),
+            include_dirs=['include', 'src'],
+            sources=['src/DocumentTemplate/cDocumentTemplate.c'],
+            depends=['include/ExtensionClass/ExtensionClass.h']),
 
       # indexes
       Extension(
@@ -118,14 +116,12 @@
     include_package_data=True,
     zip_safe=False,
     entry_points={
-       'console_scripts' : [
+       'console_scripts': [
           'mkzeoinstance=Zope2.utilities.mkzeoinstance:main',
           'mkzopeinstance=Zope2.utilities.mkzopeinstance:main',
           'runzope=Zope2.Startup.run:run',
           'zopectl=Zope2.Startup.zopectl:run',
           'zpasswd=Zope2.utilities.zpasswd:main',
-      ]
+      ],
     },
 )
-
-setup(**params)



More information about the Zope-Checkins mailing list