remove comment

This commit is contained in:
Aleksandr Proklov 2021-09-18 22:04:27 +09:00
parent 9be5d2eec3
commit 81df9c40e5

View file

@ -86,18 +86,19 @@ rm -rf %{py2dir}
mkdir %{py2dir}
tar -xvf %{SOURCE0} -C %{py2dir}
find %{py2dir} -name '*.py' | xargs sed -i '1s|^#!python|#!python2|'
%endif # with_python2
%endif
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
%build
%setup_compile_flags
CFLAGS="%{optflags}" %{__python3} setup.py build
%if %{with python2}
cd %{py2dir}/%{tarname}-%{version}
CFLAGS="%{optflags}" %{__python2} setup.py build
cd -
%endif # with_python2
%endif
%install
# Must do the python2 install first because the scripts in /usr/bin are
@ -119,9 +120,10 @@ rm -rf %{buildroot}/%{python3_sitearch}/__pycache__/
%if %{with check}
%check
python runtests.py
%if %{with python2}
cd %{py2dir}/%{tarname}-%{version}
python2 setup.py test
cd -
%endif # with_python2
%endif
%endif