On Sun, May 26, 2019 at 12:24:08PM +0000, Stuart Axon via Distutils-SIG wrote:
I'm making a python package for something python Gedit/Pluma/Xed plugin.
Like other lots of other packages that use Gtk, I use glib-compile-schemas [1] at install time.
I do this by using a custom setup.py - similar to this file this from flux: [1]https://github.com/xflux-gui/fluxgui/blob/master/setup.py#L81 (other app, like Meld to something similar)
It looks like there are a lot of changes happening to setuptools, will this continue to work or will it break one day ?
This isn't the only file I'd like to generate at install time, but might be the hardest to work around if I can't.
For gtimelog I ended up calling glib-compile-schemas at runtime, prior to `import gi`. I'm also setting os.environ['GSETTINGS_SCHEMA_DIR'] to the directory where my schema file resides (inside the virtualenv's site-packages, usually). This allows me to support 'pip install gtinelog', as well as running straight from a git checkout with no intermediate build step. Marius Gedminas -- We have enough youth, how about a fountain of SMART?