diff options
author | David Cournapeau <cournape@gmail.com> | 2009-03-24 06:11:09 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-03-24 06:11:09 +0000 |
commit | c01b0504b338a38747a902546392a8383a53848e (patch) | |
tree | 6753a3065c3dcdb852567911b7e7bba8e7b0c209 | |
parent | 8c0e230c54e25a6fb6ef1af525f55d5fc75cbad1 (diff) | |
download | numpy-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.py | 8 | ||||
-rw-r--r-- | numpy/core/src/multiarraymodule.c | 9 |
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) { |