Skip to content

Commit 12b2770

Browse files
committed
Remove the namespace declaration
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.
1 parent a8fb96e commit 12b2770

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

pyga/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
__import__('pkg_resources').declare_namespace(__name__)
2-
31
from pyga.requests import Q
42

53
def shutdown():

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
requires=[],
2222
install_requires=['setuptools', ],
2323
packages=find_packages(),
24-
namespace_packages=['pyga'],
2524
classifiers=[
2625
'Intended Audience :: Developers',
2726
'License :: OSI Approved :: BSD License',

0 commit comments

Comments
 (0)