Bug 56884 - Unable to execute Python scripts in a C/C++ project
Summary: Unable to execute Python scripts in a C/C++ project
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.0.0
Platform: Mandrake RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-05 19:06 UTC by Alexandre Courbot
Modified: 2009-01-24 02:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.