Created attachment 1562607 [details] Copr build log python-nixio fails to build with python 3.8 because of empty result of wildcard: html/_downloads/*.py in spec https://src.fedoraproject.org/rpms/python-nixio/blob/master/f/python-nixio.spec#_66 : # Remove shebang from documentation examples for f in html/_downloads/*.py; do sed '1{\@^#!/usr/bin/env python@d}' $f > $f.new && touch -r $f $f.new && mv $f.new $f done %install
I was recently hit by this in python-pelican. It is most likely a Sphinx 2 problem rather than Python 3.8 itself: https://src.fedoraproject.org/rpms/python-pelican/c/7e16845f2f4b1083c7cd17d2cbcde293d048b8e6?branch=master This happens on regular rawhide with Python 3.7 as well: ... The HTML pages are in html. + rm -fr html/.buildinfo html/.doctrees + for f in html/_downloads/*.py + sed '1{\@^#!/usr/bin/env python@d}' 'html/_downloads/*.py' sed: can't read html/_downloads/*.py: No such file or directory + exit 2 error: Bad exit status from /var/tmp/rpm-tmp.K8gAnx (%build)
--- a/python-nixio.spec +++ b/python-nixio.spec @@ -63,7 +63,7 @@ PYTHONPATH=. sphinx-build-3 docs/source html rm -fr html/.{buildinfo,doctrees} # Remove shebang from documentation examples -for f in html/_downloads/*.py; do +for f in html/_downloads/*/*.py; do sed '1{\@^#!/usr/bin/env python@d}' $f > $f.new && touch -r $f $f.new && mv $f.new $f This fixes the problem. Will check if the package builds on Python 3.8 with the fix applied.
It does. I'm not pushing the fix yet, as I don't know if you prefer to maintain "single spec" and I don't think it works with previous Fedoras as is.
Thanks Miro! I'll include the fix---gotta check how we do the specs for this one XD
FranciscoD, what's the status here?
Still pending, I'm afraid. Sorry. I'll do it over the weekend at most.
Fixed, built: https://koji.fedoraproject.org/koji/taskinfo?taskID=36173216