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 668196 - Install all files for python bindings in the same directory
Install all files for python bindings in the same directory
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Python Bindings
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Mark Jenkins
Mark Jenkins
Depends on:
Blocks:
 
 
Reported: 2012-01-18 17:00 UTC by Vincent Untz
Modified: 2018-06-29 23:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix installation of python bindings (635 bytes, patch)
2012-01-18 17:33 UTC, Vincent Untz
committed Details | Review

Description Vincent Untz 2012-01-18 17:00:33 UTC
The python bindings files are not all installed in the same directory, and I think this causes an issue when _gnucash_core_c.so gets installed in /usr/lib64/python2.7/site-packages/gnucash/ while the .py files get installed in /usr/lib/python2.7/site-packages/gnucash/ (which is how files get installed by default on at least openSUSE and Fedora).

As far as I can tell, Fedora got this issue reported as https://bugzilla.redhat.com/show_bug.cgi?id=729454 and they worked around it in a quite ugly way: http://pkgs.fedoraproject.org/gitweb/?p=gnucash.git;a=commitdiff;h=07da3ccb7fc971352d32c6c0a5592f41d6b94367

The .py files should go to the same directory as the .so file.
Comment 1 Vincent Untz 2012-01-18 17:33:40 UTC
Created attachment 205547 [details] [review]
Fix installation of python bindings

With this patch, files are correctly installed together.
Comment 2 Vincent Untz 2012-01-29 09:42:23 UTC
I can't commit the fix myself as I don't have a gnucash svn account.
Comment 3 Geert Janssens 2012-02-13 15:24:03 UTC
Comment on attachment 205547 [details] [review]
Fix installation of python bindings

Thank you for your patch !

Christian did commit it to trunk, but it wasn't backported yet to 2.4. I have just done that in r22019.
Comment 4 John Ralls 2018-06-29 23:05:09 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=668196. Please update any external references or bookmarks.