From 9e2fad6da30ecca78f4b6a95bdd8ada8a8ae9b42 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Jul 05 2018 08:35:32 +0000 Subject: Move PYTHON export before 'make install' --- 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.