From: Richard Jones <rich@annexia.org>
To: "Dr. Thomas Fischbacher" <t.fischbacher@soton.ac.uk>
Cc: Caml-list List <caml-list@inria.fr>
Subject: Re: [Caml-list] OCaml and PETSc
Date: Fri, 23 Jan 2009 13:20:09 +0000 [thread overview]
Message-ID: <20090123132008.GB32545@annexia.org> (raw)
In-Reply-To: <4978C484.6040001@soton.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 538 bytes --]
On Thu, Jan 22, 2009 at 07:09:56PM +0000, Dr. Thomas Fischbacher wrote:
> extended (and mm-bugfixed) version of Art Yerkes' "Pycaml" module,
> the other one is our (rudimentary yet useful) interface to the
> PETSc library for MPI-parallelizable sparse/dense matrix linear
> algebra (plus linear solvers, etc.).
Is there no maintained upstream source for Pycaml? I noticed the
other day that Coccinelle is also shipping Pycaml, and their version
doesn't work with Python 2.6 (potential patch attached).
Rich.
--
Richard Jones
Red Hat
[-- Attachment #2: coccinelle-0.1.4-python26.patch --]
[-- Type: text/x-diff, Size: 920 bytes --]
diff -ur coccinelle-0.1.4.orig/pycaml/pycaml_ml.c coccinelle-0.1.4/pycaml/pycaml_ml.c
--- coccinelle-0.1.4.orig/pycaml/pycaml_ml.c 2008-03-29 20:25:26.000000000 +0000
+++ coccinelle-0.1.4/pycaml/pycaml_ml.c 2009-01-21 21:58:21.000000000 +0000
@@ -173,7 +173,7 @@
int fd;
int x;
int ret_int;
- char *rvs;
+ const char *rvs;
int fmt = Int_val(Field(format,1));
PyObject *ob1,*ob2,*ob3;
void *func = getcustom(Field(format,0));
@@ -1184,7 +1184,12 @@
{ (void *)PyImport_AddModule, 28, "PyImport_AddModule" },
{ (void *)PyImport_ImportModule, 28, "PyImport_ImportModule" },
/* 51 */
+#ifndef PyImport_ImportModuleEx
+ /* In Python 2.6, this because a #define so we cannot take
+ * the address of the function. - RWMJ.
+ */
{ (void *)PyImport_ImportModuleEx, 51, "PyImport_ImportModuleEx" },
+#endif
/* 28 */
{ (void *)PyImport_Import, 28, "PyImport_Import" },
/* 14 */
next prev parent reply other threads:[~2009-01-23 13:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-22 19:09 Dr. Thomas Fischbacher
2009-01-22 23:45 ` [Caml-list] " Alexy Khrabrov
2009-01-23 13:20 ` Richard Jones [this message]
2009-01-23 14:09 ` Dr. Thomas Fischbacher
2009-01-23 14:42 ` Stefano Zacchiroli
2009-01-26 9:17 ` RABIH.ELCHAAR
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090123132008.GB32545@annexia.org \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
--cc=t.fischbacher@soton.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).