From: Dilawar S. <dil...@gm...> - 2014-07-30 17:06:01
|
Dear All, Currently moose-gui is in mgui folder. I propose the following to make the packaging consistent with general packaging policy on debian and rpm. Debian and RPM would accept this kind of layout also but PyPI will complain about it. 1. Move mgui to python/gui. This way everything pythonic in moose is in one place and can be passed easily to `setup.py` for building and installing. 2. Currently mgui scripts are not in standard python packaging format; lot of scripts are bundled together to make it work. It can not be installed using `python setup.py install`. One can only install it as inseparable part of moose which is also OK as long as we don't give preference to packaging. Currently, I copied mgui folder as python/gui and fixed few imports statement. Statements such as `import kkit` are changed to `from ..plugins import kkit`. One only has to change the import statements. One can test the development in usual way except that for launching gui when developing one should also pass `-m mgui` to tell python that this is in package. python -m mgui mgui.py instead of python mgui.py Currently this is what is being put in debian packages. Dilawar |