distutils will get removed in python 3.12. It is usage is now replaced by sysconfig. For py2 version code stays in specfile.
https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated
Related: https://pagure.io/koji/issue/3514
rebased onto 3e8e18538625c51bf3f56965c719e52337906ae2
:thumbsup:
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
Metadata Update from @mfilip: - Pull-request tagged with: testing-done
Commit 99a7e44d fixes this pull-request
Pull-Request has been merged by tkopecek
distutils will get removed in python 3.12. It is usage is now replaced
by sysconfig. For py2 version code stays in specfile.
https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated
Related: https://pagure.io/koji/issue/3514