Bug 56884

Summary: Unable to execute Python scripts in a C/C++ project
Product: [Applications] kdevelop Reporter: Alexandre Courbot <alexandrecourbot>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 4.0.0   
Target Milestone: ---   
Platform: Mandrake RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexandre Courbot 2003-04-05 19:06:18 UTC
Version:           3.0.0a4 (using KDE 3.1.0)
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
OS:          Linux (i686) release 2.4.21-0.13mdk

Sometimes it is useful to have a "mixed" project - i.e a project that mixes both C/C++ code and code from an interpreted language like Python. The project that cause me problems is made of a set of C++ libraries that get called by Python scripts. I.e, while most of the code is C++, there is no binary program. Instead, I write Python scripts that call my C++ library functions.

The problem is that since the project is defined as a C++ one (which is sensible since I want it to compile and so on), I have not found a clean way to run my test scripts. Starting a Python project however makes a "Project -> Run" command to appear. It would be nice to have a similar feature whenever a script file is open, either in the right-click menu or maybe in the "build" menu when a script file is active.

Thanks in advance for considering this feature.
Comment 1 Amilcar do Carmo Lucas 2003-09-03 17:35:39 UTC
Wasn't this whish granted in a recent commit?
Comment 2 Alexander Dymo 2003-09-03 21:05:10 UTC
I don't think so. It will be possible with generic project manager using 
shell script build system plugin in a short time (till the release for sure). 
Comment 3 Amilcar do Carmo Lucas 2003-11-01 20:02:28 UTC
Alexander what is the status on this one?
Comment 4 Andreas Pakulat 2007-02-23 12:19:14 UTC
Alexander, is this working nowadays?
Comment 5 Alexander Dymo 2007-02-24 13:29:04 UTC
The wish is still valid IMHO. I did found the way to do that with a KDevelop script (see http://adymo.blogspot.com/2007/02/scripting-kdevelop3.html) but that does not invalidate the wishlist.
Comment 6 Andreas Pakulat 2009-01-24 02:03:28 UTC
Unless I'm mistaken this is possible with kdev4 as you can simply use a "binary" run target.