only run pathfix.py on python 3 builds

This commit is contained in:
Dylan Stephano-Shachter 2018-08-23 16:55:21 -04:00
parent 171f707588
commit c74409477d

View File

@ -141,6 +141,7 @@ Development files for the Python bindings for the LDB library
%if 0%{?with_python3}
PY3_CONFIG_FLAGS=--extra-python=%{__python3}
pathfix.py -n -p -i %{__python2} buildtools/bin/waf
%else
PY3_CONFIG_FLAGS=""
%endif
@ -148,8 +149,6 @@ PY3_CONFIG_FLAGS=""
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1217376
export python_LDFLAGS=""
pathfix.py -n -p -i %{__python2} buildtools/bin/waf
%configure --disable-rpath \
--disable-rpath-install \
--bundled-libraries=NONE \