Skip to content

Commit f8f96a2

Browse files
committed
Add .pth encoding to compat.py312
1 parent 48eb575 commit f8f96a2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

setuptools/compat/py312.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import sys
2+
3+
if sys.version_info >= (3, 13):
4+
# Python 3.13 should support `.pth` files encoded in UTF-8
5+
# See discussion in https://github.com/python/cpython/issues/77102
6+
PTH_ENCODING = "utf-8"
7+
else:
8+
from .py39 import LOCALE_ENCODING
9+
10+
# PTH_ENCODING = "locale"
11+
PTH_ENCODING = LOCALE_ENCODING

0 commit comments

Comments
 (0)