From 9e2fad6da30ecca78f4b6a95bdd8ada8a8ae9b42 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Thu, 5 Jul 2018 11:35:32 +0300 Subject: [PATCH] Move PYTHON export before 'make install' --- samba.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samba.spec b/samba.spec index 1edffdd..acea185 100644 --- a/samba.spec +++ b/samba.spec @@ -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.