From a8e6059a8cf389625e7fda7088da3cfe567af6d2 Mon Sep 17 00:00:00 2001 From: dvp Date: Thu, 4 Jan 2024 16:02:52 +0300 Subject: [PATCH 1/2] fix: return nlopt preloading to avoid import errors --- src/mckit/_init_dynamic_libraries.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mckit/_init_dynamic_libraries.py b/src/mckit/_init_dynamic_libraries.py index ef4c207b..a74c087a 100644 --- a/src/mckit/_init_dynamic_libraries.py +++ b/src/mckit/_init_dynamic_libraries.py @@ -74,7 +74,10 @@ def _init(): if WIN: for _dir in SHARED_LIBRARY_DIRECTORIES: os.add_dll_directory(str(_dir)) - _preload_library("mkl_rt", max_version=2) + _preload_library("mkl_rt") + _preload_library( + "nlopt" + ) # otherwise: ImportError: libnlopt.so.0: cannot open shared object fileg _init() From bddf3ab17426096139846628e6e5a085b1fa9d8d Mon Sep 17 00:00:00 2001 From: dvp Date: Thu, 4 Jan 2024 16:03:02 +0300 Subject: [PATCH 2/2] bump: version mckit 0.6.31 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 467a34f0..0fc4f054 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mckit" -version = "0.6.30" +version = "0.6.31" description = "Tools to process MCNP models and results" authors = ["rrn "] maintainers = ["dpv2015 "]