Skip to content

Commit

Permalink
Remove the namespace declaration
Browse files Browse the repository at this point in the history
After installing the package via pip, the __init__.py from the source
distribution does not exist. It is instead replaced by:

  pyga-2.4.2-py2.7-nspkg.pth

Which does some magic to make sure that sys.modules is updated correctly

I am installing pyga and deploying it to appspot and the import fails
because __init__.py is missing.
  • Loading branch information
nickjoyce-wf committed Aug 21, 2013
1 parent a8fb96e commit 12b2770
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions pyga/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
__import__('pkg_resources').declare_namespace(__name__)

from pyga.requests import Q

def shutdown():
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
requires=[],
install_requires=['setuptools', ],
packages=find_packages(),
namespace_packages=['pyga'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
Expand Down

0 comments on commit 12b2770

Please sign in to comment.