mirror of
https://abf.rosa.ru/djam/python-cython.git
synced 2025-02-23 13:52:47 +00:00
remove comment
This commit is contained in:
parent
9be5d2eec3
commit
81df9c40e5
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue