Skip to content Skip to sidebar Skip to footer

Python Installing Package With Submodules

I have a custom project package with structure like: package-dir/ mypackage/ __init__.py submodule1/ __init__.py testmodule.py

Solution 1:

setup.py is missing information about your package structure. You can enable auto-discovery by adding a line

setup(
    # ...
    packages=setuptools.find_packages(),
)

to it.


Post a Comment for "Python Installing Package With Submodules"