Bug 96482

Summary: kdevelop 3.1.2 fails to find python 2.4
Product: [Applications] kdevelop Reporter: Eric Sandall <eric>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: 3.1.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: python-2.4.patch for ./configure to find python 2.4

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.