If this:
pacman -Rdd python2-pycparser
yay python2-pycparser
does not work for you, make sure that you don't have old versions of pycparser somewhere on your system, e.g.:
/usr/lib/python2.7/site-packages/
$HOME/.local/lib/python2.7/site-packages/
For the sanity of us all, this package should probably build (or run tests) with an adjusted python library path, prioritizing it's own code over existing alternatives.
Pinned Comments
bionade24 commented on 2022-01-08 20:34 (UTC) (edited on 2022-01-08 20:40 (UTC) by bionade24)
If building the package fails for you, either build in a clean chroot or disable the tests, but at your own risk that the functionality will be faulty.
This package builds fine in a clean chroot: https://abs-cd.oscloud.info/cd_manager/python2-pycparser
This package is also available in my unofficial user repo: https://wiki.archlinux.org/title/Unofficial_user_repositories#oscloud