summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-01-13 11:15:15 -0500
committerJason R. Coombs <jaraco@jaraco.com>2023-01-13 11:15:15 -0500
commit4f23e9728b5e7ba4f81be586a11623aab55966c3 (patch)
tree9e3b1a3937189d454a06c6a462390c74a70970fe /tools
parent12123d9761b16831285f901ea5d3337628779d37 (diff)
downloadpython-setuptools-git-4f23e9728b5e7ba4f81be586a11623aab55966c3.tar.gz
Add typing extensions for compatibility with Python 3.7.
Diffstat (limited to 'tools')
-rw-r--r--tools/vendored.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/vendored.py b/tools/vendored.py
index a8808ce8..9b7cf729 100644
--- a/tools/vendored.py
+++ b/tools/vendored.py
@@ -96,6 +96,7 @@ def rewrite_platformdirs(pkg_files: Path):
init = pkg_files.joinpath('__init__.py')
text = init.read_text()
text = text.replace('from platformdirs.', 'from .')
+ text = text.replace('from typing_extensions', 'from ..typing_extensions')
init.write_text(text)