GNOME Bugzilla – Bug 323170
python bindings installed in wrong location
Last modified: 2006-04-26 11:37:26 UTC
Distribution/Version: YDL-4.0.1 Configure the application with a prefix, for example, prefix=/opt/garnome I expect the python bindings to be installed under /opt/garnome/lib/pythonx.y/site-packages as they were in version 0.6 Instead, the python bindings are installed under PYTHON's site-packages directory.
Created attachment 56077 [details] [review] Updates python.m4 (automake 1.9 file) , fix location sh script This patches fixes this bug, updates python.m4 (automake1.9) , fixed gnome-bluetooth-manager.in adding prefix variable and fix manager.py to get bluetooth pixmap from correct location
*** Bug 322682 has been marked as a duplicate of this bug. ***
If we install the Python bindings under /opt/garnome as per the prefix, they won't work...
I've just installed it in /opt/garnome with the patch and it works. What's the error?
If an appication that is prefixed /opt/garnome doesn't find them in /opt/garnome/lib/python2.4, that application is broken. This isn't different from placing shared libraries on a file system.
The errors would be the ones in bug #153429 But I see that the script sets PYTHONPATH so it should indeed work. Note that: @prefix@ is unused in your python/gnome-bluetooth-manager.in changes - for d in [os.path.join (__datadir__, "pixmaps"), "../pixmaps"]: + for d in [os.path.join (__datadir__, "pixmaps"), os.path.join (__datadir__, "../pixmaps")]: This is broken, as explained in the other BZ. The .m4 changes can be applied though.
In my script @prefix@ is used. I suppose it's a autoconf/automake version issue. I think i don't understand well resource localization.
Should be fixed by those commits. Reopen the bug if not. 2006-04-26 Bastien Nocera <hadess@hadess.net> * configure.in: * python/Makefile.am: Fix variable-substitutions in the gnome-bluetooth-manager script 2006-04-26 Bastien Nocera <hadess@hadess.net> * autogen.sh: * python.m4: Remove the python.m4 file, it is shipped with automake, so people can't blame us for automake's bugs (Closes: #149710)