Fix: Windows DLL path lookup with Python >= 3.8
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 11 Oct 2023 21:42:30 +0000 (17:42 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 21 Oct 2023 11:56:09 +0000 (07:56 -0400)
commit578f3d7758a335fd0405d55b5b17e18948a32f10
treea54f4a2ebc0de6aa13503a13d1955c4f4bebae9f
parent75daa1081c5cfee4197203dc826f30f58174fbac
Fix: Windows DLL path lookup with Python >= 3.8

Starting with Python 3.8 on Windows [1] the DLLs lookup when loading
native modules was changed to not search PATH like everything else on
this platform. Restore this behavior by doing it manually.

Simon adds: it only started to matter now because MSYS2 dropped a local
patch [2] that retained the old behaviour.

[1]: https://docs.python.org/3/library/os.html#os.add_dll_directory
[2]: https://www.msys2.org/news/#2023-08-06-python-changed-behavior-when-loading-dll-dependencies-of-extension-modules

Change-Id: Id436244a717f440db11c33b6d418f31c7838591d
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11043
(cherry picked from commit 86f24b106e04c81bf252f2a4b1b99ad99b938de8)
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11115
Tested-by: jenkins <jenkins@lttng.org>
setup.cfg
src/bindings/python/bt2/bt2/__init__.py
This page took 0.025643 seconds and 4 git commands to generate.