I am not sure when this stopped working but with latest meson and python there see to be some issue and meson executable does not seem to be in path.
Maybe we can import meson and execute it directly instead of relying on its executable?
Processing /root/project
Installing build dependencies ... -� �\� �|� �/� �-� �\� �done
Getting requirements to build wheel ... done
Installing backend dependencies ... -� �\� �|� �/� �-� �\� �|� �/� �-� �\� �|� �/� �done
Preparing metadata (pyproject.toml) ... -� �error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-3ri6jxdy/overlay/local/lib/python3.10/dist-packages/mesonpep517/buildapi.py", line 269, in prepare_metadata_for_build_wheel
meson_configure(builddir, config_settings=config_settings)
File "/tmp/pip-build-env-3ri6jxdy/overlay/local/lib/python3.10/dist-packages/mesonpep517/buildapi.py", line 51, in meson_configure
meson(*args, builddir=args[0], config_settings=config_settings)
File "/tmp/pip-build-env-3ri6jxdy/overlay/local/lib/python3.10/dist-packages/mesonpep517/buildapi.py", line 25, in meson
return subprocess.check_output(['meson'] + list(args))
File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'meson'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Exited with code exit status 1