summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/ctypeslib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ctypeslib.py b/numpy/ctypeslib.py
index f3d42ab54..367b08f49 100644
--- a/numpy/ctypeslib.py
+++ b/numpy/ctypeslib.py
@@ -55,7 +55,6 @@ __all__ = ['load_library', 'ndpointer', 'test', 'ctypes_load_library',
import sys, os
from numpy import integer, ndarray, dtype as _dtype, deprecate, array
from numpy.core.multiarray import _flagdict, flagsobj
-from numpy.distutils.misc_util import get_shared_lib_extension
try:
import ctypes
@@ -98,6 +97,7 @@ else:
# Try to load library with platform-specific name, otherwise
# default to libname.[so|pyd]. Sometimes, these files are built
# erroneously on non-linux platforms.
+ from numpy.distutils.misc_util import get_shared_lib_extension
so_ext = get_shared_lib_extension()
libname_ext = [libname + so_ext]
if sys.version[:3] >= '3.2':