diff --git a/CMakeLists.txt b/CMakeLists.txt index 94ad5451..2ca37537 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_policy(SET CMP0091 NEW) set(CMAKE_FIND_NO_INSTALL_PREFIX TRUE FORCE) cmake_minimum_required(VERSION 3.16 FATAL_ERROR) -project(treelite LANGUAGES CXX C VERSION 4.1.1) +project(treelite LANGUAGES CXX C VERSION 4.1.2) # Check compiler versions # Use latest compilers to ensure that std::filesystem is available diff --git a/python/pyproject.toml b/python/pyproject.toml index 1c80ddc3..25ae7112 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "packager.pep517" [project] name = "treelite" -version = "4.1.1" +version = "4.1.2" authors = [ {name = "Hyunsu Cho", email = "chohyu01@cs.washington.edu"} ] diff --git a/python/treelite/VERSION b/python/treelite/VERSION index 627a3f43..4d0dcda0 100644 --- a/python/treelite/VERSION +++ b/python/treelite/VERSION @@ -1 +1 @@ -4.1.1 +4.1.2 diff --git a/python/treelite/core.py b/python/treelite/core.py index cbaf61f6..9c8ddac4 100644 --- a/python/treelite/core.py +++ b/python/treelite/core.py @@ -36,7 +36,7 @@ def _load_lib(): os.add_dll_directory( os.path.join(os.path.normpath(sys.base_prefix), "Library", "bin") ) - lib = ctypes.CDLL(lib_path[0], mode=ctypes.RTLD_GLOBAL) + lib = ctypes.cdll.LoadLibrary(lib_path[0]) lib.TreeliteGetLastError.restype = ctypes.c_char_p lib.log_callback = _log_callback lib.warn_callback = _warn_callback