[Checkins] SVN: zope.html/trunk/s The __init__.py file was added to
make 'zope' a namespace directory
Alexander Heavner
alex at zope.com
Wed Feb 7 17:09:40 EST 2007
Log message for revision 72429:
The __init__.py file was added to make 'zope' a namespace directory
The setup.py file was added to allow the package to be 'eggified'
Changed:
A zope.html/trunk/setup.py
A zope.html/trunk/src/zope/__init__.py
-=-
Added: zope.html/trunk/setup.py
===================================================================
--- zope.html/trunk/setup.py 2007-02-07 21:51:42 UTC (rev 72428)
+++ zope.html/trunk/setup.py 2007-02-07 22:09:40 UTC (rev 72429)
@@ -0,0 +1,12 @@
+from setuptools import setup, find_packages
+
+setup(
+ name="zope.html",
+ 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.html/trunk/src/zope/__init__.py
===================================================================
--- zope.html/trunk/src/zope/__init__.py 2007-02-07 21:51:42 UTC (rev 72428)
+++ zope.html/trunk/src/zope/__init__.py 2007-02-07 22:09:40 UTC (rev 72429)
@@ -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