|
|
|
@ -84,7 +84,7 @@ rm -rf %{buildroot}/%{python3_sitelib}/tests
|
|
|
|
|
rm -rf %{buildroot}/%{python3_sitelib}/__main__.py
|
|
|
|
|
rm -rf %{buildroot}/%{python3_sitelib}/__pycache__/__main__*.py*
|
|
|
|
|
|
|
|
|
|
sed -i 's,#!/usr/bin/env python,#!/usr/bin/python3,' %{buildroot}%{_sbindir}/waagent
|
|
|
|
|
sed -i 's,#!/usr/bin/env python,#!/usr/bin/python,' %{buildroot}%{_sbindir}/waagent
|
|
|
|
|
%if 0%{?with_legacy}
|
|
|
|
|
sed -i 's,#!/usr/bin/env python,#!/usr/bin/python2,' %{buildroot}%{_sbindir}/waagent2.0
|
|
|
|
|
%else
|
|
|
|
|