Move shebang removal to %prep
This commit is contained in:
parent
cc2ee313f8
commit
30ffc93b05
@ -31,6 +31,7 @@ directories, e.g. a "user data dir".
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n appdirs-%{version}
|
%autosetup -n appdirs-%{version}
|
||||||
|
sed -i -e '1{\@^#!/usr/bin/env python@d}' appdirs.py
|
||||||
rm -vrf appdirs.egg-info
|
rm -vrf appdirs.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -47,8 +48,6 @@ rm -vrf appdirs.egg-info
|
|||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs.py
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user