from setuptools import find_packages, setup setup( name='mynamespace-subpackage-a', ... packages=find_packages() namespace_packages=['mynamespace'] )