[Checkins] SVN: zope.decorator/trunk/s Added __init__.py to make zope a namespace package.

Alexander Heavner alex at zope.com
Tue Feb 13 13:12:20 EST 2007


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

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

-=-
Added: zope.decorator/trunk/setup.py
===================================================================
--- zope.decorator/trunk/setup.py	2007-02-13 18:02:37 UTC (rev 72529)
+++ zope.decorator/trunk/setup.py	2007-02-13 18:12:19 UTC (rev 72530)
@@ -0,0 +1,13 @@
+from setuptools import setup, find_packages
+
+setup(
+    name="zc.decorator",
+    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.decorator/trunk/src/zope
___________________________________________________________________
Name: svn:externals
   + decorator svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/decorator


Added: zope.decorator/trunk/src/zope/__init__.py
===================================================================
--- zope.decorator/trunk/src/zope/__init__.py	2007-02-13 18:02:37 UTC (rev 72529)
+++ zope.decorator/trunk/src/zope/__init__.py	2007-02-13 18:12:19 UTC (rev 72530)
@@ -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