packit: fixing the Fedora build failures

The %{?our_sitelib} seems weird right after the if-else tree, I'm a bit
afraid of the order of macro evaluation.  NB the 'print "foo"' used in
the corresponding detection command is needed only useful in very old
distributions.

Closes: #437
This commit is contained in:
Pavel Raiskup 2023-01-18 09:13:22 +01:00 committed by Jakub Kadlčík
parent 5d3df407f9
commit 377527f316

View file

@ -11,9 +11,9 @@
%global our_sitelib %{python2_sitelib}
%else
%global ourpythonbin %{__python}
%global our_sitelib %(%{ourpythonbin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
%endif
%endif
%{!?our_sitelib: %define our_sitelib %(%{ourpythonbin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: tito
Version: 0.6.22