Re: WIll custom setup.py with (set library-prefix have post install actions) continue to be supported ?

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <20190623084434.sqxf5lutrrjc7bcb@blynas>
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?
--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/PES4ODIT4AN2Y53JRFJM2GCH345NRUCE/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.