Subject: Re: Numerical Python on cygwin
From: "Dr. Volker Zell" <[email-masked]>
To: Turnbull Wallace Capt AFRL/VSBXR <[email-masked]>
Cc: "[email-masked]'" <[email-masked]>
Date: 06 Apr 2001 12:59:55 +0200

>>>>> "VSBXR" == VSBXR  <Turnbull> writes:

    VSBXR> Has anyone successfully gotten Numerical Python (numpy) built under cygwin?
    VSBXR> I was able to get python (2.1b2 using gcc 2.95.3-2) built with a minor
    VSBXR> change usr/include/sys/signal.h and specifying '--without-threads' in the
    VSBXR> configure script but when I try to install numerical python, I get the
    VSBXR> following errors.  It looks like some sort of problem with DLLs but I'm not
    VSBXR> sure what to make of it.  I searched the cygwin list archive and found one
    VSBXR> old reference to numpy but it didn't help.

Here a patch for Numeric-17.3.0 which worked for me:

diff -upr /gnu/Numeric-17.3.0/Src/_numpymodule.c Numeric-17.3.0/Src/_numpymodule.c
--- /gnu/Numeric-17.3.0/Src/_numpymodule.c	Mon Oct  2 17:33:46 2000
+++ Numeric-17.3.0/Src/_numpymodule.c	Fri Feb  9 17:44:35 2001
@@ -13,7 +13,7 @@ static PyMethodDef numpy_methods[] = {
 
 /* Module initialization */
 
-void
+DL_EXPORT(void)
 init_numpy()
 {
   PyObject *m, *d;
diff -upr /gnu/Numeric-17.3.0/Src/arrayfnsmodule.c Numeric-17.3.0/Src/arrayfnsmodule.c
--- /gnu/Numeric-17.3.0/Src/arrayfnsmodule.c	Tue Nov 28 00:16:58 2000
+++ Numeric-17.3.0/Src/arrayfnsmodule.c	Fri Feb  9 17:46:31 2001
@@ -1425,7 +1425,7 @@ static char arrayfns_module_documentatio
 ""
 ;
 
-void
+DL_EXPORT(void)
 initarrayfns()
 {
    PyObject *m, *d;
diff -upr /gnu/Numeric-17.3.0/Src/multiarraymodule.c Numeric-17.3.0/Src/multiarraymodule.c
--- /gnu/Numeric-17.3.0/Src/multiarraymodule.c	Mon Oct  2 17:37:45 2000
+++ Numeric-17.3.0/Src/multiarraymodule.c	Fri Feb  9 17:45:19 2001
@@ -1230,7 +1230,8 @@ static struct PyMethodDef array_module_m
 
 /* Initialization function for the module (*must* be called initArray) */
 
-void initmultiarray() {
+DL_EXPORT(void)
+initmultiarray() {
 	PyObject *m, *d, *s, *one, *zero;
 	int i;
 	char *data;
diff -upr /gnu/Numeric-17.3.0/Src/umathmodule.c Numeric-17.3.0/Src/umathmodule.c
--- /gnu/Numeric-17.3.0/Src/umathmodule.c	Mon Sep 11 17:46:33 2000
+++ Numeric-17.3.0/Src/umathmodule.c	Fri Feb  9 17:46:02 2001
@@ -2096,7 +2096,8 @@ static struct PyMethodDef methods[] = {
   {NULL,		NULL, 0}		/* sentinel */
 };
 
-void initumath() {
+DL_EXPORT(void)
+initumath() {
   PyObject *m, *d, *s;
   
   /* Create the module and add the functions */

Ciao
  Volker

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple