maintainer-feedback requested: [Bug 274020] devel/meson: ModuleNotFoundError: No module named 'typing_extensions'

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 22 Sep 2023 11:54:14 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 274020: devel/meson: ModuleNotFoundError: No module named
'typing_extensions'
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274020



--- Description ---
I am working with DEFAULT_VERSIONS+= python=3.11 python3=3.11

In building meson-1.2.1 I encounter an error:
ModuleNotFoundError: No module named 'typing_extensions'

I added this to BUILD_DEPENDS:
${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAV
OR}

...for "Great Success!"

I don't however use Python enough nor have the necessary motivation to
investigate in order to confidently say where this line might more
appropriately belong (LIB_DEPENDS perhaps?) and under what conditions (Python
versions? Other software I have tickling the configure target?). Meson is now
working well on my workstation for my purposes (where all build dependencies
always remain installed anyway among 2500+ pkgs).

I am of course assuming this error doesn't come up in the typical environment.
If requested, I would be happy to dig further into its cause.