autopkg / autopkg

Automating packaging and software distribution on macOS.
http://autopkg.github.io/autopkg
Other
1.31k stars 200 forks source link

Deprecation of Python's distutils module #852

Open choules opened 1 year ago

choules commented 1 year ago

With our MunkiAutoStaging processor we have adopted AutoPkg's handling of version strings, using the distutils.version module. Since distutils are deprecated and will be removed with Python 3.12 its functionality should be replaced.

We are not sure on how to proceed with this issue, since the suggested alternative is to use the packaging package, but this is not a core module. And it's not a drop in replacement, as well.

Do you have any plans on how to tackle this issue for the AutoPkg core, yet?

One option would be to include the packages package in AutoPkg's Python and use its version.

Thanks, Matthias

gregneagle commented 1 year ago

See https://github.com/autopkg/autopkg/issues/856