Prevent byte-compilation errors on Python 2.

This commit is contained in:
Thomas Moschny 2017-11-16 02:00:02 +01:00
parent 1ad67ab31d
commit 28114ac504

View File

@ -139,11 +139,9 @@ pushd python2
# remove hidden file
rm -rf docs/_build/html/.buildinfo
%if ! %{with async}
# these files are valid only on Python 3.6+
rm %{buildroot}%{python2_sitelib}/jinja2/asyncsupport.py
rm %{buildroot}%{python2_sitelib}/jinja2/asyncfilters.py
%endif # ! with async
popd
%endif # with python2