Tomáš Chvátal 2018-09-17 13:03:22 +00:00 committed by Git OBS Bridge
parent 2c4ee61954
commit 746fb60f0c

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -92,12 +92,14 @@ work on Jython or on Python 3.0 through 3.2.
%python_build %python_build
%install %install
%if !%{with test}
%python_install %python_install
%{python_expand \ %{python_expand \
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/ $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/hypothesis/
%fdupes %{buildroot}%{$python_sitelib} %fdupes %{buildroot}%{$python_sitelib}
} }
%endif
%check %check
%if %{with test} && ! %{with python2} %if %{with test} && ! %{with python2}