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>
Thu, 12 Oct 2023 19:02:44 +0000 (15:02 -0400)
commit86f24b106e04c81bf252f2a4b1b99ad99b938de8
treede6025a89ba2fd572bf925721edc59a80777dc82
parent1e14ec653e366e2781f59e03ac619748f345d6d1
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
setup.cfg
src/bindings/python/bt2/bt2/__init__.py
This page took 0.024646 seconds and 4 git commands to generate.