[Bug 1825456] Review Request: libvirt-test-API - Python based regression tests for libvirt API

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

 



https://bugzilla.redhat.com/show_bug.cgi?id=1825456

Miro Hrončok <mhroncok@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mhroncok@xxxxxxxxxx



--- Comment #5 from Miro Hrončok <mhroncok@xxxxxxxxxx> ---
%check
%if %{with_python3}
%{__python3} setup.py test
%else
%{__python2} setup.py test
%endif

%build
%if %{with_python3}
%py3_build
%else
%py2_build
%endif

%install
%if %{with_python3}
%py3_install
%else
%py2_install
%endif

...

%files
%if %{with_python2}
%{python2_sitelib}/libvirt_test_api*
%{python2_sitelib}/libvirttestapi*
%endif
%if %{with_python3}
%{python3_sitelib}/libvirt_test_api*
%{python3_sitelib}/libvirttestapi*
%endif





What about:



%if %{with_python3}
%global __python %{__python3}
%else
%global __python %{__python2}
%endif

...

%check
%{__python} setup.py test

%build
%py_build

%install
%py_install

...

%files
%{python_sitelib}/libvirt_test_api*
%{python_sitelib}/libvirttestapi*


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-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/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux