-
Notifications
You must be signed in to change notification settings - Fork 25
Failed to build installable wheels for some pyproject.toml based projects ╰─> editdistance #37
Description
C:\Users\catzerone>python3 -m pip install chs
Defaulting to user installation because normal site-packages is not writeable
Collecting chs
Using cached chs-3.0.0.tar.gz (13.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting python-chess (from chs)
Using cached python_chess-1.999-py3-none-any.whl.metadata (776 bytes)
Collecting editdistance (from chs)
Using cached editdistance-0.8.1.tar.gz (50 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting chess<2,>=1 (from python-chess->chs)
Using cached chess-1.11.2.tar.gz (6.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Using cached python_chess-1.999-py3-none-any.whl (1.4 kB)
Building wheels for collected packages: chs, editdistance, chess
Building wheel for chs (pyproject.toml) ... done
Created wheel for chs: filename=chs-3.0.0-py3-none-any.whl size=12991400 sha256=99b574d2234bb8e4b7c76a4b1b21681a67a4db4ed210b73aa7d803c9b442b5ad
Stored in directory: c:\users\catzerone\appdata\local\pip\cache\wheels\3b\a2\40\65d923d8bd932c1f2fd6385ca904707e9d495d62cb5478b180
Building wheel for editdistance (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for editdistance (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [89 lines of output]
Compiling src/editdistance/bycython.pyx because it changed.
[1/1] Cythonizing src/editdistance/bycython.pyx
C:\Users\catzerone\AppData\Local\Temp\pip-build-env-gbpqv9t0\normal\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)
running build
running build_py
creating C:\Users\CATZER~1\AppData\Local\Temp\pdm-build-fq5wcgeu\lib.win-amd64-cpython-313\editdistance
copying src\editdistance\__init__.py -> C:\Users\CATZER~1\AppData\Local\Temp\pdm-build-fq5wcgeu\lib.win-amd64-cpython-313\editdistance
running egg_info
creating src\editdistance.egg-info
writing src\editdistance.egg-info\PKG-INFO
writing dependency_links to src\editdistance.egg-info\dependency_links.txt
writing top-level names to src\editdistance.egg-info\top_level.txt
writing manifest file 'src\editdistance.egg-info\SOURCES.txt'
reading manifest file 'src\editdistance.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'src\editdistance.egg-info\SOURCES.txt'
copying src\editdistance\__init__.pxd -> C:\Users\CATZER~1\AppData\Local\Temp\pdm-build-fq5wcgeu\lib.win-amd64-cpython-313\editdistance
copying src\editdistance\_editdistance.cpp -> C:\Users\CATZER~1\AppData\Local\Temp\pdm-build-fq5wcgeu\lib.win-amd64-cpython-313\editdistance
copying src\editdistance\_editdistance.h -> C:\Users\CATZER~1\AppData\Local\Temp\pdm-build-fq5wcgeu\lib.win-amd64-cpython-313\editdistance
copying src\editdistance\bycython.cpp -> C:\Users\CATZER~1\AppData\Local\Temp\pdm-build-fq5wcgeu\lib.win-amd64-cpython-313\editdistance
copying src\editdistance\bycython.pxd -> C:\Users\CATZER~1\AppData\Local\Temp\pdm-build-fq5wcgeu\lib.win-amd64-cpython-313\editdistance
copying src\editdistance\bycython.pyx -> C:\Users\CATZER~1\AppData\Local\Temp\pdm-build-fq5wcgeu\lib.win-amd64-cpython-313\editdistance
copying src\editdistance\def.h -> C:\Users\CATZER~1\AppData\Local\Temp\pdm-build-fq5wcgeu\lib.win-amd64-cpython-313\editdistance
copying src\editdistance\__init__.py -> C:\Users\CATZER~1\AppData\Local\Temp\pdm-build-fq5wcgeu\lib.win-amd64-cpython-313\editdistance
running build_ext
building 'editdistance.bycython' extension
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/
Traceback (most recent call last):
File "C:\Users\catzerone\AppData\Local\Temp\pip-build-env-gbpqv9t0\overlay\Lib\site-packages\pdm\backend\hooks\setuptools.py", line 90, in _build_lib
subprocess.check_call(build_args)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.2544.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 419, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\catzerone\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\\python.exe', 'C:\\Users\\catzerone\\AppData\\Local\\Temp\\pip-install-sq5qmm2n\\editdistance_af8ba497efa44d6bb87f714ec25874b5\\setup.py', 'build', '-b', 'C:\\Users\\CATZER~1\\AppData\\Local\\Temp\\pdm-build-fq5wcgeu']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.2544.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
main()
~~~~^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.2544.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.2544.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 280, in build_wheel
return _build_backend().build_wheel(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
wheel_directory, config_settings, metadata_directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Users\catzerone\AppData\Local\Temp\pip-build-env-gbpqv9t0\overlay\Lib\site-packages\pdm\backend\__init__.py", line 55, in build_wheel
return builder.build(
~~~~~~~~~~~~~^
wheel_directory, metadata_directory=metadata_directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
).name
^
File "C:\Users\catzerone\AppData\Local\Temp\pip-build-env-gbpqv9t0\overlay\Lib\site-packages\pdm\backend\base.py", line 227, in build
files = sorted(self.get_files(context))
File "C:\Users\catzerone\AppData\Local\Temp\pip-build-env-gbpqv9t0\overlay\Lib\site-packages\pdm\backend\wheel.py", line 120, in get_files
yield from super().get_files(context)
~~~~~~~~~~~~~~~~~^^^^^^^^^
File "C:\Users\catzerone\AppData\Local\Temp\pip-build-env-gbpqv9t0\overlay\Lib\site-packages\pdm\backend\base.py", line 200, in get_files
self.call_hook("pdm_build_update_files", context, files)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\catzerone\AppData\Local\Temp\pip-build-env-gbpqv9t0\overlay\Lib\site-packages\pdm\backend\base.py", line 151, in call_hook
getattr(hook, hook_name)(context, *args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\catzerone\AppData\Local\Temp\pip-build-env-gbpqv9t0\overlay\Lib\site-packages\pdm\backend\hooks\setuptools.py", line 82, in pdm_build_update_files
self._build_lib(context)
~~~~~~~~~~~~~~~^^^^^^^^^
File "C:\Users\catzerone\AppData\Local\Temp\pip-build-env-gbpqv9t0\overlay\Lib\site-packages\pdm\backend\hooks\setuptools.py", line 92, in _build_lib
raise BuildError(f"Error occurs when running {build_args}:\n{e}")
pdm.backend.exceptions.BuildError: Error occurs when running ['C:\\Users\\catzerone\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\\python.exe', 'C:\\Users\\catzerone\\AppData\\Local\\Temp\\pip-install-sq5qmm2n\\editdistance_af8ba497efa44d6bb87f714ec25874b5\\setup.py', 'build', '-b', 'C:\\Users\\CATZER~1\\AppData\\Local\\Temp\\pdm-build-fq5wcgeu']:
Command '['C:\\Users\\catzerone\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\\python.exe', 'C:\\Users\\catzerone\\AppData\\Local\\Temp\\pip-install-sq5qmm2n\\editdistance_af8ba497efa44d6bb87f714ec25874b5\\setup.py', 'build', '-b', 'C:\\Users\\CATZER~1\\AppData\\Local\\Temp\\pdm-build-fq5wcgeu']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for editdistance
Building wheel for chess (pyproject.toml) ... done
Created wheel for chess: filename=chess-1.11.2-py3-none-any.whl size=147919 sha256=75815a7a95906dcc0c6944961d94e2fc50cd2d76cb975dcbcd0960c10f3d6d31
Stored in directory: c:\users\catzerone\appdata\local\pip\cache\wheels\74\65\99\8c3a88ba852c1ed8d34daed144b8cb4c654d638677483d19ff
Successfully built chs chess
Failed to build editdistance
[notice] A new release of pip is available: 25.2 -> 25.3
[notice] To update, run: C:\Users\catzerone\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> editdistance