-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
rhel-9.2.0
-
None
-
None
-
None
-
rhel-sst-pt-python-ruby-nodejs
-
ssg_core_services
-
None
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
All
-
None
What were you trying to do that didn't work?
I would run pytest when build rpm package and I got message that file not found .
Please provide the package NVR for which bug is seen:
python-rpm-macros-3.9-52
How reproducible:
Always
Steps to reproduce
add in rpm spec file command %pytest
Expected results
file /usr/bin/pytest not found
How I fixed it
in file macros.python3 I replaced this line:
... %__pytest /usr/bin/pytest%(test %{python3_pkgversion} == 3 || echo -%{python3_version}) ...
by:
%__pytest /usr/bin/pytest-%{python3_version}