Browse files

BUG: defer numpy.distutils import in ctypeslib.

Numpy.distutils was imported together with numpy due to the change in commit
025c8c7; this is unwanted.
  • Loading branch information...
1 parent 6fdfd9c commit 23b724476f5f442b233077f0c4bb06b1e6a0af00 @rgommers rgommers committed Jul 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 numpy/
2 numpy/
@@ -55,7 +55,6 @@
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
import ctypes
@@ -98,6 +97,7 @@ def load_library(libname, loader_path):
# 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':

0 comments on commit 23b7244

Please sign in to comment.