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)
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


No differences found
This page took 0.025498 seconds and 4 git commands to generate.