[GE users] Re: [drmaa-wg] Re: [GE users] python DRMAA module
Tim Harsch
harsch1 at llnl.gov
Fri Oct 28 11:53:36 CDT 2005
Rayson et al,
When I created the SWIG file for the Perl module ( Schedule::DRMAAc ) I
started off with keeping it generic in mind. The idea being one SWIG file
would create bindings for any of the SWIG supported languages. I quickly
learned its not quite that simple. It's still possible, its just that
tricky functions you need to get language specifc. So you define the
function once of Perl, then again for Python, etc.
Then also, there is the language support stuff that should be included
with the module distro... like the required wrapper.
Given all that, I think Enrico took the right approach by starting with
my swig file and then altering it to work with Python. I hope in the future
someone will try it for the other languages like Ruby. Or if we're lucky
we'll get a Chicken binding ;-)
----- Original Message -----
From: "Rayson Ho" <rayrayson at gmail.com>
To: <users at gridengine.sunsource.net>; "DRMAA Working Group"
<drmaa-wg at gridforum.org>
Sent: Thursday, October 20, 2005 6:14 AM
Subject: [GE users] Re: [drmaa-wg] Re: [GE users] python DRMAA module
First of all, thanks Enrico for the module...
Did anyone look at using SWIG (Simplified Wrapper and Interface
Generator) ?? It seems like with SWIG, you only need to define the
interface once and the tool will generate bindings for many languages.
http://www.swig.org/
Rayson
On 10/20/05, Andreas Haas <Andreas.Haas at sun.com> wrote:
> On Thu, 20 Oct 2005 enrico.sirola at statpro.com wrote:
>
> > Hello,
> > recently I developed a DRMAA python module for the SGE. It wraps the C
> > APIs and presents the user an interface similar to the one specified
> > in the Java DRMAA APIs. I'd contribute it to the opensource
> > community. Is anyone interested?
>
> Hi Enrico,
>
> I'm sure there is interest.
>
> Possible there is a python module directory where it naturally would be
> placed? E.g. the DRMAA perl binding for example is kept in CPAN perl
> directory.
>
> Best regards,
> Andreas
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net
More information about the drmaa-wg
mailing list