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

build: remove requirement on distutils #1332

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

lunarpapillo
Copy link
Contributor

distutils is deprecated in Python 3.12. We were only using it for version number checking, and only for "."-separated lists of integers; we don't require the extended version syntax supported by PEP 440.

Simple version checking can be done easily via list comparison of integers, which supports the same "less than" semantics as version comparison, without requiring any external dependency.

build.py:

  • use lists of integers to reflect versions being compared

distutils is deprecated in Python 3.12.  We were only using it for
version number checking, and only for "."-separated lists of integers;
we don't require the extended version syntax supported by PEP 440.

Simple version checking can be done easily via list comparison of integers,
which supports the same "less than" semantics as version comparison, without
requiring any external dependency.

build.py:
- use lists of integers to reflect versions being compared
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 78702.

@bradgrantham-lunarg
Copy link
Contributor

Waiting on internal CI run

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3464 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3464 passed.

@bradgrantham-lunarg bradgrantham-lunarg merged commit f5a683f into LunarG:dev Nov 7, 2023
5 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