Skip to content

Commit 20df826

Browse files
committed
python: add a note re Py_LIMITED_API not being enough
upstream uses a MSVC only feature to link against python3, so document the difference
1 parent 1eddb32 commit 20df826

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/docs/python.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Some differences/features compared to the official Windows CPython:
77
* In an active MSYS2 environment `os.sep` and `os.altsep` are switched to make relative paths more compatible with Unix tools that don't understand Windows paths. Outside of an active MSYS2 environment it behaves normally though.
88
* `sys.path` uses the Unix directory layout, see `python -m site`
99
* Virtual environments also work with bash: `python -m venv _venv`, `source _venv/bin/activate` and so on.
10+
* When building against the limited API only defining `Py_LIMITED_API` isn't enough, you also have to explicitly link against `python3` instead of `python3.y`.
1011

1112
### Portability
1213

0 commit comments

Comments
 (0)