PythonMacroError change tripping up fedora-review on Python packages?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When reviewing python-TestSlide
(https://bugzilla.redhat.com/show_bug.cgi?id=1891963#),
fedora-review failed with:

error: attempt to use unversioned python, define %__python to
/usr/bin/python2 or /usr/bin/python3 explicitly

This seems related to the change introduced in F33:
https://fedoraproject.org/wiki/Changes/PythonMacroError

but we're a bit puzzled as to how it happens since we can't find any
macro usage that expands to %__python.

Out of curiosity I checked out python-six (fedpkg clone python-six &&
cd python-six && fedpkg srpm) and ran fedora-review on it, and it
failed with the same error; likewise the spec seems valid to me.

Any idea what could be the problem here? Thanks in advance!

❯ fedora-review --rpm-spec --name ./python-six-1.15.0-2.fc34.src.rpm
INFO: Processing local files: ./python-six-1.15.0-2.fc34.src.rpm
INFO: Getting .spec and .srpm Urls from : Local files in
/home/michel/src/fedora/other-pkgs/python-six
INFO:   --> SRPM url: file:///home/michel/src/fedora/other-pkgs/python-
six/python-six-1.15.0-2.fc34.src.rpm
INFO: Using review directory: /home/michel/src/fedora/other-
pkgs/python-six/python-six
INFO: Downloading (Source0):
https://files.pythonhosted.org/packages/source/s/six/six-1.15.0.tar.gz
INFO: Running checks and generating report
INFO: Results and/or logs in: /home/michel/src/fedora/other-
pkgs/python-six/python-six/results
INFO: Reading configuration from /etc/mock/site-defaults.cfg
INFO: Reading configuration from /etc/mock/fedora-rawhide-x86_64.cfg
INFO: Build completed
INFO: Installing built package(s)
INFO: Active plugins: Shell-api, Python, Generic
error: attempt to use unversioned python, define %__python to
/usr/bin/python2 or /usr/bin/python3 explicitly
ERROR: Exception down the road... (logs in /home/michel/.cache/fedora-
review.log)

-- 
Michel Alexandre Salim
profile: https://keyoxide.org/michel@xxxxxxxxxxxxxxx
chat via email: https://delta.chat/
GPG key: 5DCE 2E7E 9C3B 1CFF D335 C1D7 8B22 9D2F 7CCC 04F2

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux