After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 323170 - python bindings installed in wrong location
python bindings installed in wrong location
Status: RESOLVED FIXED
Product: gnome-bluetooth
Classification: Core
Component: general
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: Edd Dumbill
Edd Dumbill
: 322682 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-12-04 02:21 UTC by Joseph Sacco
Modified: 2006-04-26 11:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Updates python.m4 (automake 1.9 file) , fix location sh script (11.71 KB, patch)
2005-12-16 16:25 UTC, Jorge Pérez Burgos
needs-work Details | Review

Description Joseph Sacco 2005-12-04 02:21:28 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.
Comment 1 Jorge Pérez Burgos 2005-12-16 16:25:41 UTC
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
Comment 2 Bastien Nocera 2005-12-27 18:41:12 UTC
*** Bug 322682 has been marked as a duplicate of this bug. ***
Comment 3 Bastien Nocera 2005-12-27 18:41:45 UTC
If we install the Python bindings under /opt/garnome as per the prefix, they won't work...
Comment 4 Jorge Pérez Burgos 2005-12-30 12:47:37 UTC
I've just installed it in /opt/garnome with the patch and it works. What's the error?
Comment 5 Mark Rosenstand 2005-12-30 12:59:40 UTC
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.
Comment 6 Bastien Nocera 2005-12-30 13:03:32 UTC
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.
Comment 7 Jorge Pérez Burgos 2005-12-30 13:47:28 UTC
In my script @prefix@ is used. I suppose it's a autoconf/automake version issue. I think i don't understand well resource localization.
Comment 8 Bastien Nocera 2006-04-26 11:37:26 UTC
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)