Fix namespace package usage

Turns out that Python namespace packages may be asymmetrical. The contents of a
particular package that was installed first (here grpcio) appears to retain its
contents in the installation directory when all other distributions declare
that package as a namespace package (here grpcio-tools).
pull/6896/head
Masood Malekghassemi 9 years ago
parent a47acad040
commit bb3948813c
  1. 1
      setup.py
  2. 2
      src/python/grpcio/grpc/__init__.py

@ -246,7 +246,6 @@ setuptools.setup(
ext_modules=CYTHON_EXTENSION_MODULES,
packages=list(PACKAGES),
package_dir=PACKAGE_DIRECTORIES,
namespace_packages=['grpc'],
package_data=PACKAGE_DATA,
install_requires=INSTALL_REQUIRES,
setup_requires=SETUP_REQUIRES,

@ -29,8 +29,6 @@
"""gRPC's Python API."""
__import__('pkg_resources').declare_namespace(__name__)
import abc
import enum

Loading…
Cancel
Save