Regenerate generated files with python3
Switch to %make_build when touching this Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1377240
This commit is contained in:
parent
285f5549c6
commit
7e0c125217
@ -203,6 +203,10 @@ BuildRequires: python-setuptools-wheel
|
|||||||
BuildRequires: python-pip-wheel
|
BuildRequires: python-pip-wheel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{without bootstrap}
|
||||||
|
# for make regen-all
|
||||||
|
BuildRequires: python3
|
||||||
|
%endif
|
||||||
|
|
||||||
# =======================
|
# =======================
|
||||||
# Source code and patches
|
# Source code and patches
|
||||||
@ -632,8 +636,14 @@ BuildPython() {
|
|||||||
$ExtraConfigArgs \
|
$ExtraConfigArgs \
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
|
%if %{without bootstrap}
|
||||||
|
# Regenerate generated files (needs python3)
|
||||||
|
%make_build regen-all PYTHON_FOR_REGEN="python3"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Invoke the build
|
# Invoke the build
|
||||||
make EXTRA_CFLAGS="$CFLAGS $MoreCFlags" %{?_smp_mflags}
|
%make_build EXTRA_CFLAGS="$CFLAGS $MoreCFlags"
|
||||||
|
|
||||||
popd
|
popd
|
||||||
echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
|
echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
|
||||||
|
Loading…
Reference in New Issue
Block a user