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
|
||||
%autosetup -n appdirs-%{version}
|
||||
sed -i -e '1{\@^#!/usr/bin/env python@d}' appdirs.py
|
||||
rm -vrf appdirs.egg-info
|
||||
|
||||
%build
|
||||
@ -47,8 +48,6 @@ rm -vrf appdirs.egg-info
|
||||
%py3_install
|
||||
%endif
|
||||
|
||||
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs.py
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user