GNOME Bugzilla – Bug 338524
Detecting python: redux
Last modified: 2006-04-25 16:20:37 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
Created attachment 63496 [details] [review] patch for python path detection
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.
Okidoc, applied and commited, thanks ! Daniel
Daniel, You are welcome. Be well, -Joseph