I have been able to successfully build 77 packages (of the 196 slated to be built for sage 10.2) but now encountered a strange error with meson_python.
I went to the appropriate directory, opened up a subshell and tried to rebuild the package.
owner@localhost:~/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.14.0> cd '/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.14.0' && '/home/owner/math/sage-10.2/sage' --buildsh
Starting subshell with Sage environment variables set. Don't forget
to exit when you are done. Beware:
* Do not do anything with other copies of Sage on your system.
* Do not use this for installing Sage packages using "sage -i" or for
running "make" at Sage's root directory. These should be done
outside the Sage shell.
Bypassing shell configuration files...
Note: SAGE_ROOT=/home/owner/math/sage-10.2
(sage-buildsh) owner@localhost:meson_python-0.14.0$ ls
checksums.ini dependencies_check inst package-version.txt
spkg-check.in spkg-install spkg-piprm SPKG.rst type
dependencies distros install-requires.txt spkg-check spkg-configure.m4
spkg-install.in spkg-piprm.in src
(sage-buildsh) owner@localhost:meson_python-0.14.0$ bash spkg-install
Installing meson_python-0.14.0
Processing /home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.14.0/src
Running command Preparing metadata (pyproject.toml)
Traceback (most recent call last):
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.14.0/src/mesonpy/__init__.py", line 1008, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.14.0/src/mesonpy/__init__.py", line 1072, in build_wheel
with _project(config_settings) as project:
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.14.0/src/mesonpy/__init__.py", line 951, in _project
yield Project(source_dir, build_dir, meson_args, editable_verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.14.0/src/mesonpy/__init__.py", line 626, in __init__
_check_meson_version()
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.14.0/src/mesonpy/__init__.py", line 987, in _check_meson_version
meson_version = subprocess.run(['meson', '--version'], check=False, text=True, capture_output=True).stdout
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/subprocess.py", line 1024, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
NotADirectoryError: [Errno 20] Not a directory: 'meson'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/bin/python3 /home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpn9qzkw8i
cwd: /home/owner/math/sage-10.2/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/meson_python-0.14.0/src
Preparing metadata (pyproject.toml) ... error
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.
***********************************************************************************************************************************************************************
Error building a wheel for meson_python-0.14.0
***********************************************************************************************************************************************************************