BCDA-APS / gemviz

Data visualization for tiled
https://bcda-aps.github.io/gemviz/
Other
4 stars 0 forks source link

make this package installable by pip #152

Closed prjemian closed 1 year ago

prjemian commented 1 year ago
prjemian commented 1 year ago

Took me a while to figure this one out: 4a3a140

Seems that the "header" file (named when promoting a widget in the designer) provides the indication for PyQt5 to locate the source code. I'm guessing it strips the .h to find the Python module to be loaded with the supporting Python code. So, that "header" file name must include the Python package.module to find the Python code.

prjemian commented 1 year ago

When testing on Windows, notice that Python files are sometimes autocreated from the .ui files. Need to ignore them.

prjemian commented 1 year ago

With these packaging changes, a starter is needed to run the application in debug mode. dev_starter.py:

from gemviz import app as gemviz_app

gemviz_app.main()