Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Install setuptools for tox jobs with py3.12 #165

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

askb
Copy link
Contributor

@askb askb commented Jun 5, 2024

The lftools license check fails the tox run with python 3.12.

The default version of the python used in the tox workflow using python 3.12. Python 3.12 does not come with a stdlib distutils module (changelog), because distutils was deprecated in 3.10 and removed in 3.12. See PEP 632 – Deprecate distutils module.

Therefore, check if python 3.12 and install distutils before the run.

Ref:
https://docs.python.org/3/whatsnew/3.12.html
https://peps.python.org/pep-0632/
Issue: RELENG-5403

@askb askb requested review from tykeal and eb-oss June 5, 2024 01:10
The lftools license check fails the tox run with python 3.12.

The default version of the python used in the tox workflow
using python 3.12. Python 3.12 does not come with a stdlib
distutils module (changelog), because distutils was deprecated
in 3.10 and removed in 3.12. See PEP 632 – Deprecate distutils
module.

Therefore, check if python 3.12 and install distutils before the
run.

Ref:
https://docs.python.org/3/whatsnew/3.12.html
https://peps.python.org/pep-0632/
Issue: RELENG-5403
Signed-off-by: Anil Belur <[email protected]>
@tykeal tykeal merged commit 21a0b19 into lfit:main Jun 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants