summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-03-24 06:11:09 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-03-24 06:11:09 +0000
commitc01b0504b338a38747a902546392a8383a53848e (patch)
tree6753a3065c3dcdb852567911b7e7bba8e7b0c209
parent8c0e230c54e25a6fb6ef1af525f55d5fc75cbad1 (diff)
downloadnumpy-c01b0504b338a38747a902546392a8383a53848e.tar.gz
Put the win64 warning in multiarray init instead of _import_array to avoid multiple warnings.
-rw-r--r--numpy/core/code_generators/generate_numpy_api.py8
-rw-r--r--numpy/core/src/multiarraymodule.c9
2 files changed, 9 insertions, 8 deletions
diff --git a/numpy/core/code_generators/generate_numpy_api.py b/numpy/core/code_generators/generate_numpy_api.py
index 3a29a19a1..4dda84146 100644
--- a/numpy/core/code_generators/generate_numpy_api.py
+++ b/numpy/core/code_generators/generate_numpy_api.py
@@ -108,14 +108,6 @@ _import_array(void)
}
#endif
-#ifdef MS_WIN64
- PyErr_WarnEx(PyExc_Warning,
- "Windows 64 bits support is experimental, and only available for \n" \
- "testing. You are advised not to use it for production. \n\n" \
- "CRASHES ARE TO BE EXPECTED - PLEASE REPORT THEM TO NUMPY DEVELOPERS",
- 1);
-#endif
-
return 0;
}
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c
index 381b72c2c..df61aec31 100644
--- a/numpy/core/src/multiarraymodule.c
+++ b/numpy/core/src/multiarraymodule.c
@@ -8520,6 +8520,15 @@ PyMODINIT_FUNC initmultiarray(void) {
if (!m) {
goto err;
}
+
+#ifdef MS_WIN64
+ PyErr_WarnEx(PyExc_Warning,
+ "Windows 64 bits support is experimental, and only available for \n" \
+ "testing. You are advised not to use it for production. \n\n" \
+ "CRASHES ARE TO BE EXPECTED - PLEASE REPORT THEM TO NUMPY DEVELOPERS",
+ 1);
+#endif
+
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);
if (!d) {