diff options
author | mattip <matti.picus@gmail.com> | 2019-06-13 10:53:46 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-06-16 23:29:16 +0300 |
commit | 9fe7fec9a68c250b462a9cffdcdce185daaa9020 (patch) | |
tree | 6c28f248b4e3508284dba8a9cecc5caba2c576ae /numpy/core | |
parent | 90ee55557537f5fc2f02cca57f43f8494a5c497d (diff) | |
download | numpy-9fe7fec9a68c250b462a9cffdcdce185daaa9020.tar.gz |
BUILD: use openblas_support.py from numpy-wheels to create _distributor_init.py
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/__init__.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/numpy/core/__init__.py b/numpy/core/__init__.py index 90aab7fd5..ce443bb22 100644 --- a/numpy/core/__init__.py +++ b/numpy/core/__init__.py @@ -5,29 +5,6 @@ from numpy.version import version as __version__ import os -# on Windows NumPy loads an important OpenBLAS-related DLL -# and the code below aims to alleviate issues with DLL -# path resolution portability with an absolute path DLL load -if os.name == 'nt': - from ctypes import WinDLL - import glob - # convention for storing / loading the DLL from - # numpy/.libs/, if present - libs_path = os.path.abspath(os.path.join(os.path.dirname(__file__), - '..', '.libs')) - DLL_filenames = [] - if os.path.isdir(libs_path): - for filename in glob.glob(os.path.join(libs_path, '*openblas*dll')): - # NOTE: would it change behavior to load ALL - # DLLs at this path vs. the name restriction? - WinDLL(os.path.abspath(filename)) - DLL_filenames.append(filename) - if len(DLL_filenames) > 1: - import warnings - warnings.warn("loaded more than 1 DLL from .libs:\n%s" % - "\n".join(DLL_filenames), - stacklevel=1) - # disables OpenBLAS affinity setting of the main thread that limits # python threads or processes to one core env_added = [] |