openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
132 stars 184 forks source link

can not generate build requires for python-* pkg #993

Open yAn1hCDc opened 6 months ago

yAn1hCDc commented 6 months ago

I am building the python-jupyter-client package from Fedora. Some build requires for this package are generated dynamically like this: %generate_buildrequires %pyproject_buildrequires -w %{?with_tests:-x test} %{?with_doc:-x docs} And i got error message: error: Failed build dependencies: python3dist(pip) >= 19 is needed by python-jupyter-client-7.4.9 python3dist(toml) is needed by python-jupyter-client-7.4.9 I found that obs-build has code to solve this problem, but it is not called, probably because the value of RPMLIST is not empty. if test "$BUILD_SUCCEEDED" = genbuildreqs -a "$DO_INIT" = true -a -z "$RPMLIST" -a -z "$RUNNING_IN_VM" -a -n "${GEN_BUILDREQS_PACKS[*]}" ; then So I want to know how to get to this branch. The obs-build version I used was 20240321.