solo-python fails to install with Flit 3.5.1 while it installed fine with version 3.0.0:
$ flit install --user
Extras to install for deps 'all': {'.none'} I-flit.install
Processing ~/solo-python
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /tmp/tmpbp6lkz0g_in_process.py prepare_metadata_for_build_wheel /tmp/tmpkzis0nqc
cwd: /tmp/pip-req-build-g16wfr24
Complete output (28 lines):
Traceback (most recent call last):
File "/tmp/tmpbp6lkz0g_in_process.py", line 280, in <module>
main()
File "/tmp/tmpbp6lkz0g_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/tmp/tmpbp6lkz0g_in_process.py", line 133, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-kg7av81r/overlay/lib/python3.9/site-packages/flit_core/buildapi.py", line 49, in prepare_metadata_for_build_wheel
metadata = make_metadata(module, ini_info)
File "/tmp/pip-build-env-kg7av81r/overlay/lib/python3.9/site-packages/flit_core/common.py", line 396, in make_metadata
md_dict.update(get_info_from_module(module, ini_info.dynamic_metadata))
File "/tmp/pip-build-env-kg7av81r/overlay/lib/python3.9/site-packages/flit_core/common.py", line 193, in get_info_from_module
docstring, version = get_docstring_and_version_via_import(target)
File "/tmp/pip-build-env-kg7av81r/overlay/lib/python3.9/site-packages/flit_core/common.py", line 169, in get_docstring_and_version_via_import
m = sl.load_module()
File "<frozen importlib._bootstrap_external>", line 529, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 1029, in load_module
File "<frozen importlib._bootstrap_external>", line 854, in load_module
File "<frozen importlib._bootstrap>", line 274, in _load_module_shim
File "<frozen importlib._bootstrap>", line 711, in _load
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/tmp/pip-req-build-g16wfr24/solo/__init__.py", line 15, in <module>
from . import client, commands, dfu, helpers, operations
File "/tmp/pip-req-build-g16wfr24/solo/client.py", line 14, in <module>
import solo.exceptions
ModuleNotFoundError: No module named 'solo'
----------------------------------------
WARNING: Discarding file:///~/solo-python. Command errored out with exit status 1: /usr/bin/python3 /tmp/tmpbp6lkz0g_in_process.py prepare_metadata_for_build_wheel /tmp/tmpkzis0nqc Check the logs for full command output.
ERROR: Command errored out with exit status 1: /usr/bin/python3 /tmp/tmpbp6lkz0g_in_process.py prepare_metadata_for_build_wheel /tmp/tmpkzis0nqc Check the logs for full command output.
Traceback (most recent call last):
File "/usr/bin/flit", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3/dist-packages/flit/__init__.py", line 200, in main
Installer.from_ini_path(args.ini_file, user=args.user, python=python,
File "/usr/lib/python3/dist-packages/flit/install.py", line 420, in install
self.install_with_pip()
File "/usr/lib/python3/dist-packages/flit/install.py", line 358, in install_with_pip
check_call(cmd, shell=shell)
File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', 'install', '.', '--user']' returned non-zero exit status 1.
$ flit --version
Flit 3.5.1
Hi,
solo-python fails to install with Flit 3.5.1 while it installed fine with version 3.0.0: