Skip to content

Conversation

@nggit
Copy link
Owner

@nggit nggit commented Jan 1, 2026

That's why I dislike dependencies.

Run python -m build --no-isolation

  • Getting build dependencies for sdist...
    Could not find an up-to-date installation of packaging. License expressions might not be validated. To enforce validation, please install packaging>=24.2.
    Traceback (most recent call last):
    File "/home/runner/.local/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in
    main()
    File "/home/runner/.local/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/runner/.local/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 317, in get_requires_for_build_sdist
    return hook(config_settings)
    ^^^^^^^^^^^^^^^^^^^^^
    File "/home/runner/.local/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_sdist
    return self._get_build_requires(config_settings, requirements=[])
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/runner/.local/lib/python3.12/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
    self.run_setup()
    File "/home/runner/.local/lib/python3.12/site-packages/setuptools/build_meta.py", line 317, in run_setup
    exec(code, locals())
    File "", line 1, in
    File "/home/runner/.local/lib/python3.12/site-packages/setuptools/init.py", line 115, in setup
    return distutils.core.setup(**attrs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/runner/.local/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 160, in setup
    dist.parse_config_files()
    File "/home/runner/.local/lib/python3.12/site-packages/setuptools/dist.py", line 756, in parse_config_files
    pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
    File "/home/runner/.local/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py", line 73, in apply_configuration
    return _apply(dist, config, filepath)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/runner/.local/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py", line 61, in apply
    dist._finalize_license_expression()
    File "/home/runner/.local/lib/python3.12/site-packages/setuptools/dist.py", line 425, in finalize_license_expression
    normalized = str
    (_canonicalize_license_expression(license_expr))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/runner/.local/lib/python3.12/site-packages/setuptools/_normalization.py", line 161, in _missing_canonicalize_license_expression
    raise ImportError(
    ImportError: Cannot import packaging.licenses.
    Setuptools>=77.0.0 requires "packaging>=24.2" to work properly.
    Please make sure you have a suitable version installed.

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_sdist
Error: Process completed with exit code 1.

@nggit nggit merged commit e664c94 into main Jan 1, 2026
19 checks passed
@nggit nggit deleted the build branch January 1, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants