Accepting request 527316 from devel:languages:python

- skip creating a python3 symlink when only python2.x is being built

OBS-URL: https://build.opensuse.org/request/show/527316
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2017-09-21 10:28:12 +00:00 committed by Git OBS Bridge
parent 63c64a5255
commit c83e0c9223
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Aug 9 17:07:31 UTC 2017 - dmueller@suse.com
- skip creating a python3 symlink when only python2.x is being built
-------------------------------------------------------------------
Thu Mar 30 09:29:28 UTC 2017 - aloisio@gmx.com

View File

@ -71,7 +71,9 @@ mv %{buildroot}%{_bindir}/pytest{,-%$python_bin_suffix}
%prepare_alternative pytest
ln -s py.test-%python2_bin_suffix %{buildroot}%{_bindir}/py.test2
%if "%python3_bin_suffix" != ""
ln -s py.test-%python3_bin_suffix %{buildroot}%{_bindir}/py.test3
%endif
%post
%{python_install_alternative py.test} \