Distributive-Network/PythonMonkey

`python3-distutils` is not a thing on Ubuntu 24.04 LTS

Internal-Compiler-Error opened this issue · 3 comments

Issue type

Build/Install

How did you install PythonMonkey?

Source

OS platform and distribution

Ubuntu 24.04 LTS

Python version (python --version)

Python 3.12.3

PythonMonkey version (pip show pythonmonkey)

N/A

Bug Description

python3-distutils is no longer a package on Ubuntu 24.04 LTS. However, python3-distutils-extra is a thing. No idea what the difference is.

Although you can argue setup.sh doesn't care about any environment other than the distro that the developers use, which is fair.

Package: python3-distutils-extra
Version: 3.0
Priority: optional
Section: universe/python
Source: python-distutils-extra
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Python Team <team+python@tracker.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 99.3 kB
Depends: intltool, python3-pkg-resources, python3-setuptools (>= 54.0.0~), python3:any
Suggests: devscripts
Breaks: python-distutils-extra (<< 2.44)
Replaces: python-distutils-extra (<< 2.44)
Download-Size: 22.1 kB
APT-Sources: http://ca.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
Description: enhancements to the Python3 build system
 This package provides additional functions to Python's distutils and
 setuptools. It allows you to easily integrate gettext, icons and GNOME
 documentation into your build and installation process.
 .
 It also provides an "auto" module which provides a "do what I mean" automatic
 build system; if you stick to the conventions, you do not need to write
 setup.cfg, POTFILES.in, or MANIFEST.in, and setup.py just needs to have the
 package metadata (such as project name and version).

Standalone code to reproduce the issue

No response

Relevant log output or backtrace

No response

Additional info if applicable

No response

What branch of PythonMonkey were you developing on? (If applicable)

No response

https://peps.python.org/pep-0632/ seems like distutils was removed in python 3.12. I don't know what Debian/Ubuntu is doing with python3-distutils-extra then

However, python3-distutils-extra is a thing. No idea what the difference is.

According to https://packages.ubuntu.com/noble/all/python3-distutils-extra/filelist, python3-distutils-extra contains nothing from https://packages.ubuntu.com/focal/all/python3-distutils/filelist

Fixed in coming release