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 338524 - Detecting python: redux
Detecting python: redux
Status: RESOLVED FIXED
Product: gamin
Classification: Other
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Gamin Maintainer(s)
Gamin Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-04-14 19:40 UTC by Joseph Sacco
Modified: 2006-04-25 16:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for python path detection (4.56 KB, patch)
2006-04-14 19:42 UTC, Joseph Sacco
none Details | Review
patch for python path detection (2.00 KB, patch)
2006-04-22 16:28 UTC, Joseph Sacco
none Details | Review

Description Joseph Sacco 2006-04-14 19:40:49 UTC
Some GARNOME users have encountered problems building gamin because of python detection. These users typically are running older linux distos and have installed a newer version of python in some location other than /usr, for example, /opt/python-2.4.3.

Gamin is to be built using this newer version of python. The gamin python site_packages files are to be installed in the GARNOME tree, not the python tree.

To make this happen two issues must be address:

Python detection
-----------------
Python should be detected in this order:
* user specifies path to python executable as a configuration argument
* user specifies path to python executable as an environment variable
* configure script hunts in the usual places

Python site_package installation
--------------------------------
Python site_packages should be installed in 

   $exec_prefix/lib/pythonX.Y/site-packages

Note:

   in general: $exec_prefix != $python_exec_prefix


Attached is a proposed patch for gamin-0.1.7 that will resolve these issues.


-Joseph
Comment 1 Joseph Sacco 2006-04-14 19:42:15 UTC
Created attachment 63496 [details] [review]
patch for python path detection
Comment 2 Joseph Sacco 2006-04-22 16:28:46 UTC
Created attachment 64111 [details] [review]
patch for python path detection

Daniel,

Attached is a patch for configure.in that (1) works within existing code and
semantics of configure flags, and (2) resolves the issues of python detection
and site-package installation referenced above.

Note that in addition, some quoting foo has been cleaned up within the python
section. Also, an "AC_ARG_WITH" entry for python has been added for consistency with libxml2 and libxslt.

Hindsight is an exact science... If the python section were to be rewritten
from scratch, using the stock macro definitions provided by aclocal in
python.m4 would be a good choice.
Comment 3 Daniel Veillard 2006-04-25 16:11:48 UTC
Okidoc, applied and commited,

  thanks !

Daniel
Comment 4 Joseph Sacco 2006-04-25 16:20:37 UTC
Daniel,

You are welcome.


Be well,

-Joseph