On Mon, May 20, 2019 at 8:10 AM Peter Pentchev roam@ringlet.net wrote:
On Mon, May 20, 2019 at 07:58:09AM -0500, Richard Shaw wrote:
I cobbled this together for the spec file but it may need work:
%define py_suffix %(%{__python3} -c 'import sysconfig; sysconfig.get_config_var("SOABI")')
Erm, I think you'd get better results with a "print" thrown in there; the interactive REPL interpreter shows you the value, but if you run this through python3 -c, it will not actually output it to the standard output unless you tell it to. Maybe try:
... -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))'
Ok, I added that and it appears to be working (running a scratch build now) but I do seem to inconsistently get a fg: no job control error but it doesn't seem to hurt anything.
Thanks, Richard