dcantrell / pyparted

Python bindings for GNU parted (libparted)
GNU General Public License v2.0
85 stars 42 forks source link

setup.py: port to setuptools #85

Closed rossburton closed 2 years ago

rossburton commented 2 years ago

Python 3.10 has deprecated distutils[1], and it will be removed entirely in Python 3.12.

As the setuptools API is identical, moving to setuptools is trivial by changing the import.

Remove check_mod_version, a version specifier can be passed directly to pkg-config.

Remove unused imports.

Closes #84.

[1] https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated