PKGBUILDs/core/python/genrebuild

13 lines
602 B
Text
Raw Permalink Normal View History

2019-11-14 13:52:24 +00:00
#!/bin/bash
2020-12-02 19:18:10 +00:00
pyver=$(pacman -S --print-format %v python | grep -oP '^[0-9]+\.[0-9]+')
2021-12-13 00:44:46 +00:00
exclude=('python2' 'python2-.*' 'pypy3\?' 'cython2' 'cuda' 'cuda-tools'
'metasploit' 'dia' 'ghidra' 'kross-interpreters')
2020-12-02 19:18:10 +00:00
{
pacman -Fq /usr/lib/python${pyver}/ | grep -v archlinuxcn | cut -d / -f 2
pacman -Fxq "\.cpython-${pyver/.}.pyc$" | grep -v archlinuxcn | cut -d / -f 2
sogrep all libpython${pyver}.so
2024-04-27 15:55:46 +00:00
ssh build.archlinux.org "parallel \"zstdgrep -q 'Py_Initialize\|PyInit_\|PyModule_Create2' {} && pacman -Qpq {}\" ::: /srv/ftp/pool/packages/*.zst"
2020-12-02 19:18:10 +00:00
} | grep -xvf <(printf "%s\n" "${exclude[@]}") | sort -u