I'm trying to deploy TurboGears as the sub-package frontend
of my main application MainApp
. Following, the structure of my project:
.
├── MainApp
│ ├── MainApp.egg-info
│ ├── backend
│ ├── frontend
│ └── __init__.py
├── LICENSE.txt
├── MANIFEST.in
├── README.md
├── development.ini
├── setup.cfg
├── setup.py
├── test.ini
Unfortunately, I always get an error when trying to start it with gearbox serve --reload --debug
in the project folder:
pkg_resources.DistributionNotFound: The 'MainApp.frontend' distribution was not found and is required by the application
I understand that this is due to the definition in the development.ini
:
[app:main]
use = egg:MainApp.frontend
I tried different alternatives, calling egg:MainApp
or egg:frontend
, also inside the MainApp
folder with the development.ini
copied over - nothing worked. What am I missing? Is this even possible?
Thanks you.