For a directory structure like the following, I haven't been able to make xy
an importable package.
xy
├── __init__.py
├── z
│ ├── __init__.py
│ └── stuff.py
└── setup.py
If the setup.py
were a directory up, I could use
from setuptools import setup
setup(name='xy',
packages=['xy'])
but short of that, no combination of package_dir
and packages
has let me import xy
, only import z
. Unfortunately, moving the setup.py a directory up isn't really an option due to an excessive number of hard-coded paths.