[MacPorts] #69036: glib2 @2.78.3_1: gdbus-codegen fails with python3.12 due to distutils use
MacPorts
noreply at macports.org
Sun Jan 14 00:58:45 UTC 2024
#69036: glib2 @2.78.3_1: gdbus-codegen fails with python3.12 due to distutils use
---------------------+----------------------
Reporter: tenzap | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: glib2 |
---------------------+----------------------
Old description:
> I was trying to build gtk3 and was facing this build error.
>
> ModuleNotFoundError: No module named 'distutils'
>
> I had to install py-setuptools to make it build
>
> See also
> https://stackoverflow.com/questions/77233855/why-did-i-got-an-error-
> modulenotfounderror-no-module-named-distutils
New description:
I was trying to build gtk3 and was facing this build error.
{{{
ModuleNotFoundError: No module named 'distutils'
}}}
I had to install py-setuptools to make it build
See also
https://stackoverflow.com/questions/77233855/why-did-i-got-an-error-
modulenotfounderror-no-module-named-distutils
--
Comment (by ryandesign):
Replying to [comment:7 mascguy]:
> Replying to [comment:6 ryandesign]:
> > 1. add a patch for that change and add py312-packaging dependency
> But option 1 would be my preference.
Ok. I may look into this in the next days if nobody else beats me to it.
> More generally, we need to be cautious about switching to Python 3.12,
particularly for foundational ports like this. (Just a general suggestion,
to avoid having to scramble to fix issues.)
Evidently! This distutils thing seems like one big easy-to-overlook
problem (it occurs with gobject-introspection too in #69105), and syntax
warnings due to lack of use of raw strings is another big one I've seen
several times already in other ports. I was trying to be helpful but I
should have remembered that I don't understand Python so I've discontinued
my effort to switch ports to Python 3.12 and will leave it for those more
knowledgeable.
--
Ticket URL: <https://trac.macports.org/ticket/69036#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list