[Checkins] SVN: zope.dublincore/trunk/s Added the setup.py file to 'eggify' dublincore

Alexander Heavner alex at zope.com
Tue Feb 13 14:18:08 EST 2007


Log message for revision 72539:
  Added the setup.py file to 'eggify' dublincore
  Added the 'src' and 'zope' directories to structure the package.
  Added __init__.py file to make 'zope' a namespace package
  

Changed:
  A   zope.dublincore/trunk/setup.py
  A   zope.dublincore/trunk/src/
  A   zope.dublincore/trunk/src/zope/
  A   zope.dublincore/trunk/src/zope/__init__.py

-=-
Added: zope.dublincore/trunk/setup.py
===================================================================
--- zope.dublincore/trunk/setup.py	2007-02-13 19:11:12 UTC (rev 72538)
+++ zope.dublincore/trunk/setup.py	2007-02-13 19:18:08 UTC (rev 72539)
@@ -0,0 +1,13 @@
+from setuptools import setup, find_packages
+
+setup(
+    name="zope.dublincore",
+    version="0.1dev",
+    packages=find_packages('src'),
+    package_dir={'':'src'},
+    namespace_packages=['zope'],
+    include_package_data=True,
+    install_requirements = ['setuptools'],
+    zip_safe = False
+    )
+


Property changes on: zope.dublincore/trunk/src/zope
___________________________________________________________________
Name: svn:externals
   + dublincore svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/dublincore


Added: zope.dublincore/trunk/src/zope/__init__.py
===================================================================
--- zope.dublincore/trunk/src/zope/__init__.py	2007-02-13 19:11:12 UTC (rev 72538)
+++ zope.dublincore/trunk/src/zope/__init__.py	2007-02-13 19:18:08 UTC (rev 72539)
@@ -0,0 +1,8 @@
+# this is a namespace package
+try:
+    import pkg_resources
+    pkg_resources.declare_namespace(__name__)
+except ImportError:
+    import pkgutil
+    __path__ = pkgutil.extend_path(__path__, __name__)
+



More information about the Checkins mailing list