#395 F33: %{python_sitelib} can't be expanded anymore causing a test failure
Closed: fixed by churchyard. Opened by eclipseo.

fedora-review.log reports the following error:

  File "/usr/lib/python3.9/site-packages/FedoraReview/plugins/python.py", line 107, in run_on_applicable
    rpm.expandMacro(r"^%{python_sitelib}\/\*$")
_rpm.error: error expanding macro

rpm can't eval %{python_sitelib} anymore:

rpm --eval "%{python_sitelib}"                                                                         20:28:43
error: attempt to use unversioned python, define %__python to /usr/bin/python2 or /usr/bin/python3 explicitly

@churchyard How should we deal with this?

https://pagure.io/FedoraReview/pull-request/396

we can also define %__python just to check this.

we can also define %__python just to check this.

Not sure if this is needed, any person using unversioned directories won't be able to build it with rpm in F33. In F32, that would be minor inconvenience, easily sorted at the review.

Metadata Update from @churchyard:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata
Related Pull Requests