Bug 96482 - kdevelop 3.1.2 fails to find python 2.4
Summary: kdevelop 3.1.2 fails to find python 2.4
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.1.2
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-06 23:49 UTC by Eric Sandall
Modified: 2005-01-07 17:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
python-2.4.patch for ./configure to find python 2.4 (1.87 KB, patch)
2005-01-06 23:51 UTC, Eric Sandall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Sandall 2005-01-06 23:49:07 UTC
Version:           3.1.2 (using KDE KDE 3.3.2)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3.3 
OS:                Linux

My system has python 2.4 installed to /usr/include/python2.4, but kdevelop's configure can only find 1.5-2.3:
checking for Python directory... /usr/local
checking if scripting enabled... yes
checking for Python2.3... header no library no modules no
checking for Python2.2... header no library no modules no
checking for Python2.1... header no library no modules no
checking for Python2.0... header no library no modules no
checking for Python1.5... header no library no modules no
configure: error: You enabled scripting but have no python installed.

I'll attach a patch which adds 2.4 to the search path. kdevelop compiles and runs fine with this patch, but I haven't tested if it breaks python < 2.4 (though it shouldn't ;)).

Would it be possible to perhaps just search for /usr/include/python* instead of having to update the autoconf files when a new version of python is released?
Comment 1 Eric Sandall 2005-01-06 23:51:00 UTC
Created attachment 8963 [details]
python-2.4.patch for ./configure to find python 2.4

Applies cleanly against kdevelop 3.1.2. Modifies the following files:
acinclude.m4
admin/acinclude.m4.in
configure
Comment 2 Jens Dagerbo 2005-01-07 08:18:39 UTC
Thanks, but.. the scripting part was an old experimental plugin that never saw much use and that has been removed in HEAD. 

KDevelop-3.2 will likely have a replacement built around KScript.
Comment 3 Eric Sandall 2005-01-07 17:36:04 UTC
I'll remove the optional dependency on python when kdevelop 3.2 comes out then, thanks.