Bug 63293 - WISH: auto-guess of Python directory
Summary: WISH: auto-guess of Python directory
Status: RESOLVED WORKSFORME
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KOffice List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-26 22:37 UTC by Laurence Withers
Modified: 2004-06-16 21:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurence Withers 2003-08-26 22:37:59 UTC
Version:           1.2.92 (using KDE KDE 3.1.3)
Installed from:    Compiled From Sources
Compiler:          GCC 3.3.1 
OS:          Linux

It would be great if the configure script for KOffice tried to figure out Python's prefix directory, e.g. using PYTHON_DIR=`echo \`which python\` | sed "s|/bin/python||"` or something similar.

This would be useful on systems such as mine where python is in /opt/python , as it saves yet another thing to edit on the configure commandline.
Comment 1 tnagy 2003-08-27 13:03:28 UTC
This is quite similar to this one -> http://bugs.kde.org/show_bug.cgi?id=61808
I am surprized that nobody ever told you to put export PYTHON_DIR=`echo \`which
python\` | sed "s|/bin/python||"` in your ~/.bashrc ;-)

This sounds more related to the packaging system (autoconf automake configure)
than to koffice. I agree that this is not very user friendly, and that the tools
should detect the right settings or warn the users (KDEDIR, JAVADIR ...).

In addition the behaviour is not consistent : I've never seen ./configure
complain about missing compiler (CXX not set) ;-)


Comment 2 Laurence Withers 2003-08-27 18:12:23 UTC
Yes, this is very much along the same lines as your bug/request. Have you 
raised this issue on any mailing list? If not, I think I'll try and bring it to 
attention :) 
 
Comment 3 tnagy 2003-08-27 18:51:33 UTC
I haven't talked about it on a mailing list. This problem is mostly related to
autoconf and automake, it is not KDE or KOffice fault. If however you decide to
raise this problem on a mailing-list, don't forget to mention the slowness of
the configure scripts.

When you install 10 programs ./configure has to detect each time the compiler,
the libraries, the Qt location, etc. It could be a lot smarter and store the
system-specific configuration parameters into a file (eg: feature an option eg
:'--use-database' to use a configure-created database specific to your system).

This is a problem for the developers as well, because configure is slow and
giving the flags everytime to make sure it will compile is boring.

Configure should be more configurable ;-)

Comment 4 Laurence Withers 2004-06-16 21:27:15 UTC
I'm going to mark this bug as resolved, even though it isn't really, because it's the sort of thing that depends more on the distribution in use and/or autoconf. But if in future I can see any way of improving the situation I'll file another report.