summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/_dtype_ctypes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/_dtype_ctypes.py b/numpy/core/_dtype_ctypes.py
index 017f13ff8..6d7cbb244 100644
--- a/numpy/core/_dtype_ctypes.py
+++ b/numpy/core/_dtype_ctypes.py
@@ -23,6 +23,9 @@ Unfortunately, this fails because:
* ctypes cannot handle big-endian structs with PEP3118 (bpo-32780)
"""
+# We delay-import ctypes for distributions that do not include it.
+# While this module is not used unless the user passes in ctypes
+# members, it is eagerly imported from numpy/core/__init__.py.
import numpy as np