[Checkins] SVN: zope.modulealias/trunk/s Added a setup.py file so that the package can be 'eggified'.

Alexander Heavner alex at zope.com
Tue Feb 13 16:23:41 EST 2007


Log message for revision 72559:
  Added a setup.py file so that the package can be 'eggified'.
  Added the src and zope directories to give structure to the package.
  Added a __init__.py file to make the 'zope' directory a namespace package.
  

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

-=-
Added: zope.modulealias/trunk/setup.py
===================================================================
--- zope.modulealias/trunk/setup.py	2007-02-13 21:17:29 UTC (rev 72558)
+++ zope.modulealias/trunk/setup.py	2007-02-13 21:23:41 UTC (rev 72559)
@@ -0,0 +1,13 @@
+from setuptools import setup, find_packages
+
+setup(
+    name="zope.modulealias",
+    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.modulealias/trunk/src/zope
___________________________________________________________________
Name: svn:externals
   + modulealias svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/modulealias


Added: zope.modulealias/trunk/src/zope/__init__.py
===================================================================
--- zope.modulealias/trunk/src/zope/__init__.py	2007-02-13 21:17:29 UTC (rev 72558)
+++ zope.modulealias/trunk/src/zope/__init__.py	2007-02-13 21:23:41 UTC (rev 72559)
@@ -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