Déclaration correcte des namespace packages v0.8
authorEric Mc Sween <eric.mcsween@auf.org>
Fri, 24 Feb 2012 18:54:32 +0000 (13:54 -0500)
committerEric Mc Sween <eric.mcsween@auf.org>
Fri, 24 Feb 2012 18:54:32 +0000 (13:54 -0500)
auf/__init__.py
auf/django/__init__.py
setup.py

index ece379c..de40ea7 100644 (file)
@@ -1,2 +1 @@
-import pkg_resources
-pkg_resources.declare_namespace(__name__)
+__import__('pkg_resources').declare_namespace(__name__)
index ece379c..de40ea7 100644 (file)
@@ -1,2 +1 @@
-import pkg_resources
-pkg_resources.declare_namespace(__name__)
+__import__('pkg_resources').declare_namespace(__name__)
index a30a979..2b67503 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,7 @@ setup(
     url='http://pypi.auf.org/%s' % name,
     license='GPL',
     packages=find_packages(exclude=['tests', 'tests.*']),
+    namespace_packages=['auf', 'auf.django'],
     include_package_data=True,
     zip_safe=False,
 )