Skip to content

Commit b0eb572

Browse files
authored
chore: fix the Python build for Python >= 3.12 (#4827)
Since the removal of a class in Python 3.12, we need a more modern version of `setuptools` to work on newer Python versions. This gets rid of the error: ``` AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? ``` --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
1 parent 5f60208 commit b0eb572

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@jsii/python-runtime/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools~=62.2", "wheel~=0.37"]
2+
requires = ["setuptools~=80.3", "wheel~=0.45"]
33
build-backend = 'setuptools.build_meta'
44

55
[tool.black]

packages/@jsii/python-runtime/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mypy==1.15.0
33
pip~=25.1
44
pytest~=8.3
55
pytest-mypy~=1.0
6-
setuptools~=75.3.2
6+
setuptools~=80.3
77
types-python-dateutil~=2.9
88
wheel~=0.45
99

0 commit comments

Comments
 (0)