Prevent byte-compilation errors on Python 2.
This commit is contained in:
parent
1ad67ab31d
commit
28114ac504
@ -139,11 +139,9 @@ pushd python2
|
|||||||
# remove hidden file
|
# remove hidden file
|
||||||
rm -rf docs/_build/html/.buildinfo
|
rm -rf docs/_build/html/.buildinfo
|
||||||
|
|
||||||
%if ! %{with async}
|
|
||||||
# these files are valid only on Python 3.6+
|
# these files are valid only on Python 3.6+
|
||||||
rm %{buildroot}%{python2_sitelib}/jinja2/asyncsupport.py
|
rm %{buildroot}%{python2_sitelib}/jinja2/asyncsupport.py
|
||||||
rm %{buildroot}%{python2_sitelib}/jinja2/asyncfilters.py
|
rm %{buildroot}%{python2_sitelib}/jinja2/asyncfilters.py
|
||||||
%endif # ! with async
|
|
||||||
popd
|
popd
|
||||||
%endif # with python2
|
%endif # with python2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user