For a directory structure like the following, I was unable to make an xy import package.
xy ├── __init__.py ├── z │ ├── __init__.py │ └── stuff.py └── setup.py
If setup.py was a directory up, I could use
from setuptools import setup setup(name='xy', packages=['xy'])
but also, no combination of package_dir and packages allowed me import xy , only import z . Unfortunately, moving setup.py in the directory up is not an option due to the excessive number of hard-coded paths.
source share