Hide implementation modules and submodules in package
问题 I want to package my code to expose only the main functions. My directory is like this: ./ setup.py my_module/ __init__.py public_functions.py internal_modules/ __init__.py A.py B.py other_modules.py/ __init__.py C.py In public_functions I do import some operations from internal_modules.A but NOT from internal_modules.B , and both A.py and B.py uses some functions from C.py . My setup.py is as follows: from setuptools import setup setup(name='my_module', version='0.1', description='my_awesome