Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-48069][INFRA] Handle
PEP-632
by checking `ModuleNotFoundErro…
…r` on `setuptools` in Python 3.12 ### What changes were proposed in this pull request? This PR aims to handle `PEP-632` by checking `ModuleNotFoundError` on `setuptools`. - [PEP 632 – Deprecate distutils module](https://peps.python.org/pep-0632/) ### Why are the changes needed? Use `Python 3.12`. ``` $ python3 --version Python 3.12.2 ``` **BEFORE** ``` $ dev/lint-python --mypy | grep ModuleNotFoundError Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'setuptools' ``` **AFTER** ``` $ dev/lint-python --mypy | grep ModuleNotFoundError ``` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs and manual test. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#46315 from dongjoon-hyun/SPARK-48069. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information