-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Summary
Hello all,
uv fails to build
uv add -v py7zr
Detailed log: https://gist.github.com/NewAtair/c307de9fbe2f571233ced47f1ce02e08.js
Last lines of the log:
DEBUG Reverting changes to
uv.lock
x Failed to buildinflate64==1.0.1
|-> The build backend returned an error
-> Call tosetuptools.build_meta.build_wheel` failed (exit code: 1)
[stdout]
running bdist_wheel
running build
running build_py
copying src\inflate64\__init__.py -> build\lib.win-amd64-cpython-313\inflate64
running egg_info
writing src\inflate64.egg-info\PKG-INFO
writing dependency_links to src\inflate64.egg-info\dependency_links.txt
writing requirements to src\inflate64.egg-info\requires.txt
writing top-level names to src\inflate64.egg-info\top_level.txt
writing manifest file 'src\inflate64.egg-info\SOURCES.txt'
reading manifest file 'src\inflate64.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'COPYING'
writing manifest file 'src\inflate64.egg-info\SOURCES.txt'
copying src\inflate64\py.typed -> build\lib.win-amd64-cpython-313\inflate64
running build_ext
building 'inflate64._inflate64' extension
[stderr]
C:\Users\username\AppData\Local\uv\cache\builds-v0\.tmp9ZApHf\Lib\site-packages\setuptools_scm\git.py:310: UserWarning: git archive did not support describe output
warnings.warn("git archive did not support describe output")
C:\Users\username\AppData\Local\uv\cache\builds-v0\.tmp9ZApHf\Lib\site-packages\setuptools_scm\git.py:328: UserWarning: unprocessed git archival found (no export subst applied)
warnings.warn("unprocessed git archival found (no export subst applied)")
C:\Users\username\AppData\Local\uv\cache\builds-v0\.tmp9ZApHf\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as
a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
C:\Users\username\AppData\Local\uv\cache\builds-v0\.tmp9ZApHf\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers
are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
dist._finalize_license_expression()
C:\Users\username\AppData\Local\uv\cache\builds-v0\.tmp9ZApHf\Lib\site-packages\setuptools\dist.py:761: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.woodpecker.yml'
no previously-included directories found matching 'ci'
no previously-included directories found matching 'ISSUE_TEMPLATE'
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
hint: This usually indicates a problem with the package or the build environment.
help: If you want to add the package regardless of the failed resolution, provide the --frozen flag to skip locking and syncing.
PS C:\Tools\Scripte\Python allgemein>
If run with
pip install --use-pep517 --no-cache --force-reinstall py7zr
than it is successful with:
Successfully installed brotli-1.1.0 inflate64-1.0.1 multivolumefile-0.2.3 psutil-7.0.0 py7zr-0.22.0 pybcj-1.0.6 pycryptodomex-3.22.0 pyppmd-1.1.1 pyzstd-0.17.0 texttable-1.7.0 typing-extensions-4.13.2
If I install py7zr with conda, there are no issues too.
So I'm a bit puzzled.
Platform
Windows 11 Version 23H2
Version
uv 0.7.3 (3c413f7 2025-05-07)
Python version
Python 3.13.3