GNOME Bugzilla – Bug 621525
should not use "site-packages/gtk-2.0" dir
Last modified: 2010-11-30 22:14:58 UTC
currently pygi isntalls modules in python2.6/site-packages/gtk-2.0/gi I think we should change that directory while we still can (no stable version released yet) - it should not use "gtk" since pygi operates at a lower level and binds stuff outside of gtk - it should not use 2.0 since even today it is working with gtk 3
I agree about this. Anybody remembers why are installing inside gtk-2.0/?
Created attachment 163670 [details] [review] Do not install gi in the gtk-2.0 directory.
The reason was for parallel installs. Someone need to figure out what needs to be done so gtk 2.x and 3.x can be used at the same time (on different processes of course) on the same system.
Created attachment 163672 [details] [review] Do not install gi in the gtk-2.0 directory. Also remove the requirement for pygtk 2.0 in the tests.
(In reply to comment #3) > The reason was for parallel installs. Someone need to figure out what needs to > be done so gtk 2.x and 3.x can be used at the same time (on different processes > of course) on the same system. I was hoping we would be able to keep pygobject (and pygi) working with both gtk 2.x and 3.x.
I think this patch is obsoleted by the merge of pygi into pygobject.
(In reply to comment #6) > I think this patch is obsoleted by the merge of pygi into pygobject. Are you sure? I get my modules installed in site-packages/gtk-2.0/gi
As of today, gi modules are still installed in site-packages/gtk-2.0/gi/. We can move them wherever we want, but gi depends on gobject that is loaded from the site-packages/gtk-2.0 (which doesn't seem right either).
ping. would like to get a decision this. Can someone update the patch if they think it is important (I know for testing the gtk-2.0 directory screws up modules installed to lib64 and I have to manually add to PYTHONPATH). Does moving the module screw up anything? As far as parallel usage of Gtk-2/3 this is not an issue because it is a matter of either using PyGTK or PyGI. PyGI should have a way of selecting gir versions but that does not require the current directory structure. I'm doing a release soon. Let's make a decision after that release.
Ok, I cleaned up and committed. Make sure you clean out the gtk-2.0 directory in your buildroot/installroot. Please test with legacy static modules to make sure we don't break everything.
Closing this. Please reopen if there are issues