summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-03-24 05:58:25 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-03-24 05:58:25 +0000
commit8c0e230c54e25a6fb6ef1af525f55d5fc75cbad1 (patch)
tree476162a6bfc33c5371a766fea33a825e28005f31
parentbe4bf3f892b371503aa3e0e5a2562e2552216dc2 (diff)
downloadnumpy-8c0e230c54e25a6fb6ef1af525f55d5fc75cbad1.tar.gz
Emit a warning when numpy is imported on windows x64.
-rw-r--r--numpy/core/code_generators/generate_numpy_api.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/core/code_generators/generate_numpy_api.py b/numpy/core/code_generators/generate_numpy_api.py
index 4dda84146..3a29a19a1 100644
--- a/numpy/core/code_generators/generate_numpy_api.py
+++ b/numpy/core/code_generators/generate_numpy_api.py
@@ -108,6 +108,14 @@ _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;
}