Move PYTHON export before 'make install'

This commit is contained in:
Alexander Bokovoy 2018-07-05 11:35:32 +03:00
parent 709aee1166
commit 9e2fad6da3
1 changed files with 2 additions and 1 deletions

View File

@ -882,9 +882,10 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
export PYTHON=%{__python2}
make %{?_smp_mflags} install DESTDIR=%{buildroot}
export PYTHON=%{__python2}
# Workaround: make sure all general Python shebangs are pointing to Python 2
# otherwise it will not work when default python is different from Python 2.
# Samba tools aren't ready for Python 3 yet.