• Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • rhel-9.2.0
    • python-rpm-macros
    • None
    • None
    • None
    • rhel-sst-pt-python-ruby-nodejs
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • 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}
      

              python-maint python-maint
              onuch-v Vadim Onuchin (Inactive)
              python-maint python-maint
              bot rhel-cs-apps-subsystem-qe bot rhel-cs-apps-subsystem-qe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: