pip install fails on MSYS2/MinGW
C version of reader, parser and emitter for ruamel.yaml
Brought to you by:
anthon
Hi,
Here's what I get when I try to install it:
Collecting ruamel.yaml
Using cached ruamel.yaml-0.18.5-py3-none-any.whl (116 kB)
Collecting ruamel.yaml.clib>=0.2.7 (from ruamel.yaml)
Using cached ruamel.yaml.clib-0.2.8.tar.gz (213 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: ruamel.yaml.clib
Building wheel for ruamel.yaml.clib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for ruamel.yaml.clib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.mingw_x86_64-cpython-310
creating build/lib.mingw_x86_64-cpython-310/ruamel
creating build/lib.mingw_x86_64-cpython-310/ruamel/yaml
creating build/lib.mingw_x86_64-cpython-310/ruamel/yaml/clib
copying ./setup.py -> build/lib.mingw_x86_64-cpython-310/ruamel/yaml/clib
copying ./__init__.py -> build/lib.mingw_x86_64-cpython-310/ruamel/yaml/clib
copying ./LICENSE -> build/lib.mingw_x86_64-cpython-310/ruamel/yaml/clib
running build_ext
building '_ruamel_yaml' extension
error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ruamel.yaml.clib
Failed to build ruamel.yaml.clib
ERROR: Could not build wheels for ruamel.yaml.clib, which is required to install pyproject.toml-based projects
I know that there's a specific build for MinGW here, but this doesn't solve my problem - I first encountered this error when I was trying to install another package that uses ruaml.yaml from PyPI.
Thanks
Ticket moved from /p/ruamel-yaml/tickets/502/