Permalink
Browse files

Added namespacing to the piston package.

  • Loading branch information...
Ionel Cristian Maries
Ionel Cristian Maries committed Mar 4, 2010
1 parent eaea40a commit 494d495e4f5fa820189d51d91c6f465487b4d06b
Showing with 16 additions and 0 deletions.
  1. +15 −0 piston/__init__.py
  2. +1 −0 setup.py
View
@@ -0,0 +1,15 @@
+try:
+ import pkg_resources
+ pkg_resources.declare_namespace(__name__)
+except ImportError:
+ # don't prevent use of paste if pkg_resources isn't installed
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
+
+try:
+ import modulefinder
+except ImportError:
+ pass
+else:
+ for p in __path__:
+ modulefinder.AddPackagePath(__name__, p)
View
@@ -20,6 +20,7 @@
author = 'Jesper Noehr',
author_email = 'jesper@noehr.org',
packages = find_packages(),
+ namespace_packages = ['piston'],
include_package_data = True,
zip_safe = False,
classifiers = [

0 comments on commit 494d495

Please sign in to comment.