[Numpy-discussion] Cygwin

Jochen Küpper jochen at unc.edu
Fri Jul 20 15:05:21 CDT 2001


>>>>> Paul F Dubois wrote on Tue, 17 Jul 2001 12:53:52 -0700:

[patch to Src/fastumathmodule.c]

Paul> This file is no longer in the distribution.

So why was it changed today?

> cvs log Src/fastumathmodule.c
,----
| RCS file: /cvsroot/numpy/Numerical/Src/fastumathmodule.c,v
| Working file: Src/fastumathmodule.c
| head: 1.2
| branch:
| locks: strict
| access list:
| symbolic names:
| keyword substitution: kv
| total revisions: 2;     selected revisions: 2
| description:
| ----------------------------
| revision 1.2
| date: 2001/07/20 03:24:33;  author: teoliphant;  state: Exp;  lines: +18 -0
| Added inverse hyperbolic functions.
| ----------------------------
| revision 1.1
| date: 2001/07/16 23:19:23;  author: teoliphant;  state: Exp;
| Added fastumathmodule which doesn't emit exceptions.
| =============================================================================
`----

To get that straight: I am looking at the Repository "Numerical" at
  :pserver:anonymous at cvs.numpy.sourceforge.net:/cvsroot/numpy 

I hope that is the correct module for an uptodate version of NumPy. If
so, I would suggest the following patch to have it link successfully
on Cygwin:

Index: Src/fastumathmodule.c
===================================================================
RCS file: /cvsroot/numpy/Numerical/Src/fastumathmodule.c,v
retrieving revision 1.2
diff -u -r1.2 fastumathmodule.c
--- Src/fastumathmodule.c       2001/07/20 03:24:33     1.2
+++ Src/fastumathmodule.c       2001/07/20 20:01:33
@@ -2141,7 +2141,7 @@
     {NULL,             NULL, 0}                /* sentinel */
 };
 
-void initfastumath() {
+DL_EXPORT(void) initfastumath() {
     PyObject *m, *d, *s;
   
     /* Create the module and add the functions */


Thanks,
Jochen
-- 
University of North Carolina                          phone: 919-962-4403
Department of Chemistry                               phone: 919-962-1579
Venable Hall CB#3290                                    fax: 919-843-6041
Chapel Hill, NC 27599, USA                            GnuPG key: 44BCCD8E





More information about the Numpy-discussion mailing list