[Checkins] SVN: zc.winauth/trunk/s Added the setup.py file in order
to 'eggify' the package
Alexander Heavner
alex at zope.com
Fri Feb 9 14:12:58 EST 2007
Log message for revision 72489:
Added the setup.py file in order to 'eggify' the package
Added the __init__.py file in order to make 'zc' a namespace package
Changed:
A zc.winauth/trunk/setup.py
A zc.winauth/trunk/src/zc/__init__.py
-=-
Added: zc.winauth/trunk/setup.py
===================================================================
--- zc.winauth/trunk/setup.py 2007-02-09 18:33:43 UTC (rev 72488)
+++ zc.winauth/trunk/setup.py 2007-02-09 19:12:58 UTC (rev 72489)
@@ -0,0 +1,13 @@
+from setuptools import setup, find_packages
+
+setup(
+ name="zc.winauth",
+ version="0.1dev",
+ packages=find_packages('src'),
+ package_dir={'':'src'},
+ namespace_packages=['zc'],
+ include_package_data=True,
+ install_requirements = ['setuptools'],
+ zip_safe = False,
+ )
+
Added: zc.winauth/trunk/src/zc/__init__.py
===================================================================
--- zc.winauth/trunk/src/zc/__init__.py 2007-02-09 18:33:43 UTC (rev 72488)
+++ zc.winauth/trunk/src/zc/__init__.py 2007-02-09 19:12:58 UTC (rev 72489)
@@ -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