[Checkins] SVN: zope.locking/trunk/s The __init__.py file was added to make 'zope' a namespace package

Alexander Heavner alex at zope.com
Wed Feb 7 17:21:32 EST 2007


Log message for revision 72430:
  The __init__.py file was added to make 'zope' a namespace package
  The setup.py file was added so that the package can be 'eggified'
  

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

-=-
Added: zope.locking/trunk/setup.py
===================================================================
--- zope.locking/trunk/setup.py	2007-02-07 22:09:40 UTC (rev 72429)
+++ zope.locking/trunk/setup.py	2007-02-07 22:21:31 UTC (rev 72430)
@@ -0,0 +1,12 @@
+from setuptools import setup, find_packages
+
+setup(
+    name="zope.locking",
+    version="0.1dev",
+    packages=find_packages('src'),
+    package_dir={'':'src'},
+    namespace_packages=['zope'],
+    include_package_data=True,
+    install_requirements = ['setuptools'],
+    zip_safe = False
+    )

Added: zope.locking/trunk/src/zope/__init__.py
===================================================================
--- zope.locking/trunk/src/zope/__init__.py	2007-02-07 22:09:40 UTC (rev 72429)
+++ zope.locking/trunk/src/zope/__init__.py	2007-02-07 22:21:31 UTC (rev 72430)
@@ -0,0 +1,7 @@
+# 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