You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/docs/python.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,10 @@ if os.name == "nt" and sysconfig.get_platform().startswith("mingw"):
22
22
print("cpython-mingw detected!")
23
23
```
24
24
25
+
Unlike many other Windows packages in MSYS2, Python will not look for DLL dependencies in PATH by default, but requires directories to be explicitly added via `os.add_dll_directory()` at runtime. You can disable this behavior, and make it look in PATH, by setting the `PYTHONLEGACYWINDOWSDLLLOADING` environment variable to `1`.
26
+
25
27
### Known issues
26
28
27
29
* C extensions are not compatible with the official CPython, which means pip can't use binary wheels from PyPI and packages have to be build when installing them.
28
30
* Some C extensions don't build out of the box since they don't expect non-MSVC on Windows. In some cases we provide patched versions in our repo.
29
31
*[setuptools](https://github.com/pypa/setuptools) >= 60.0 is currently incompatible with MSYS2. You can set `export SETUPTOOLS_USE_DISTUTILS=stdlib` to work around the issue. We are currently working on restoring compatibility.
30
-
* It still looks up DLLs via PATH and `os.add_dll_directory()` doesn't work, see https://github.com/msys2-contrib/cpython-mingw/issues/48
Copy file name to clipboardExpand all lines: web/news.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,32 @@ summary: Important events happening.
5
5
6
6
This page lists important changes or issues affecting MSYS2 users. We also post them to [Twitter](https://twitter.com/msys2org) and [Mastodon](https://fosstodon.org/@msys2org), including some not-so-important things :)
7
7
8
+
### 2023-08-06 - Python: Changed behavior when loading DLL dependencies of extension modules
9
+
10
+
Starting with CPython 3.8, upstream CPython changed their DLL lookup behavior to
11
+
a safer default when loading extension modules, which meant no longer looking in
12
+
PATH, but requiring code to explicitly add directories containing dependencies
0 commit comments