Switch to Python3

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
This commit is contained in:
Vitaly Kuznetsov 2018-04-16 15:15:29 +02:00
parent 2420c98c23
commit 2e0f70375b

View File

@ -17,15 +17,15 @@ Patch0: %{name}-2.0.8-logrotate-name.patch
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: net-tools
Requires: ntfsprogs
Requires: openssh
Requires: openssh-server
Requires: openssl
Requires: parted
Requires: python2-pyasn1
Requires: python3-pyasn1
BuildRequires: systemd
Requires(post): systemd
@ -42,10 +42,10 @@ images that are built to run in the Microsoft Azure environment.
%patch0 -p1
%build
%{__python2} setup.py build
%{__python3} setup.py build
%install
%{__python2} setup.py install --skip-build --root %{buildroot} --lnx-distro '%{distro}' --init-system '%{initsys}'
%{__python3} setup.py install --skip-build --root %{buildroot} --lnx-distro '%{distro}' --init-system '%{initsys}'
mkdir -p -m 0700 %{buildroot}%{_sharedstatedir}/waagent
mkdir -p %{buildroot}%{_localstatedir}/log