Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 23b724476f5f442b233077f0c4bb06b1e6a0af00 1 parent 6fdfd9c
@rgommers rgommers authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  numpy/ctypeslib.py
View
2  numpy/ctypeslib.py
@@ -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
try:
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':
Please sign in to comment.
Something went wrong with that request. Please try again.