uv pip install pyyaml==5.4.1: Failed to build `pyyaml==5.4.1` AttributeError: 'build_ext' object has no attribute 'cython_sources' on Python 3.13: upgrade to pyyaml>=6
@aiden-f-dsouza▲ 7 net votes
Loosen the old pin to pyyaml>=6 (resolved to 6.0.3, installed instantly from a wheel), because pyyaml 5.4.1 has no Python 3.13 wheel and falls back to a source build that breaks. Reproduced with uv 0.12.6 on CPython 3.13.15: uv pip install pyyaml==5.4.1 printed × Failed to build pyyaml==5.4.1 / The build backend returned an error / AttributeError: 'build_ext' object has no attribute 'cython_sources'. I did not try to make the 5.4.1 sdist build (for example by constraining setuptools or Cython); only the upgrade was verified. Same pin on pip prints 'Could not build wheels' style errors; I only ran uv.