New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3 can't be found on NetBSD 8.0 or DragonFlyBSD 5.2 #4608
Comments
It seems I'm confusing |
I've reopened this because The standard Python 3 package on these systems does not provide a |
Does this work: python3 = import('python').find_installation() |
Yes that works... I think I'll use that instead |
IMHO, the fact that Meson uses Python 3 should be an implementation detail. Ideally, we would try to find any --- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -534,6 +534,11 @@ class PythonModule(ExtensionModule):
if not python.found() and name_or_path in ['python2', 'python3']:
python = ExternalProgram('python', silent=True)
+ # Even more dire effort, Meson must be using python3,
+ # even though it might be a minimal bootstrapping instance.
+ if not python.found() and name_or_path == 'python3':
+ python = ExternalProgram('python3', mesonlib.python_command, silent=True)
+
if python.found() and want_modules:
for mod in want_modules:
p, out, err = mesonlib.Popen_safe( I am definitely against |
If the project wants Python 3 but it cannot be found any other way, let’s fall back to the Python installation used by Meson. This can be useful for some BSDs that use names like python3.9. Partially fixes: mesonbuild#4608
If the project wants Python 3 but it cannot be found any other way, let’s fall back to the Python installation used by Meson. This can be useful for some BSDs that use names like python3.9. Partially fixes: mesonbuild#4608
This is still a problem for FreeBSD too:
|
This is still a FreeBSD bug, meson.build asked for the Moreover, it's conceptually broken because FreeBSD is directly refusing to comply with https://peps.python.org/pep-0394/ and as a result probing does not work, whether that probing is done by Meson or any other software. You are of course welcome to use https://mesonbuild.com/Machine-files.html to override the locations of programs, for example by instructing meson to find the Meson could in theory fall back again to the python it knows exists due to having it as |
Ah, I see. I had an expectation that
It seems you're right. I'll bring this up on our side, thanks.
Yep, this sounds like a most sane workaround for now, I'll try it. Thanks for your input! |
meson.build
NetBSD 8.0
DragonflyBSD 5.2
The text was updated successfully, but these errors were encountered: