On 31. 05. 20 13:04, Zbigniew Jędrzejewski-Szmek wrote:
On Sun, May 31, 2020 at 10:49:28AM -0000, Leigh Scott wrote:
> Even if the package builds it doesn't mean it's functional.
>
> $ cinnamon-settings
> Traceback (most recent call last):
> File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line
16, in <module>
> from setproctitle import setproctitle
> ImportError:
/usr/lib64/python3.9/site-packages/setproctitle.cpython-39-x86_64-linux-gnu.so: undefined
symbol: Py_GetArgcArgv
Idea for a global gating test for packages:
for rpm in $rpms; do
python3 -c "$(rpm -qP $rpm | sed -n -r 's/python3dist\((.*)\).*/import
\1/p')"
done
Unfortunately, this has a wrong assumption: python3dist(xxx) doesn't mean there
is an xxx module to import. See for example:
python3-beautifulsoup4 provides python3.9dist(beautifulsoup4) but is imported as
bs4. (I have plenty more examples like this... including python-fedora.)
A better thing might be to query for .py files, .so files and directories with
such in %{python_sitelib}/%{python_sitearch}.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok