libsbml fails to build with Python 3.10.0a2. /usr/lib/rpm/redhat/brp-python-bytecompile: line 82: /usr/bin/python3.1: No such file or directory $ rg -F "sys.version" build-docs/config/python.m4 109: if test `"$PYTHON" -c ["import sys; print(sys.version[:3]) >= \"$1\" and \"OK\" or \"OLD\""]` = "OK" 123: PYTHON_VERSION=`"$PYTHON" -c "import sys; print(sys.version[:3])"` 200: tmp_v=`"$PYTHON" -c "import sys; print(sys.version[:1])"` build-docs/configure 5215: PYTHON_VERSION=`"$PYTHON" -c "import sys; print(sys.version[:3])"` 5356: tmp_v=`"$PYTHON" -c "import sys; print(sys.version[:1])"` config/python.m4 109: if test `"$PYTHON" -c ["import sys; print(sys.version[:3]) >= \"$1\" and \"OK\" or \"OLD\""]` = "OK" 123: PYTHON_VERSION=`"$PYTHON" -c "import sys; print(sys.version[:3])"` 200: tmp_v=`"$PYTHON" -c "import sys; print(sys.version[:1])"` configure 5215: PYTHON_VERSION=`"$PYTHON" -c "import sys; print(sys.version[:3])"` 5356: tmp_v=`"$PYTHON" -c "import sys; print(sys.version[:1])"` $ python3.10 -c "import sys; print(sys.version[:3])" 3.1 For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01757131-libsbml/ For all our attempts to build libsbml with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/libsbml/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/ Let us know here if you have any questions. Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
Latest rebuild of libsbml have not a build log (https://download.copr.fedorainfracloud.org/results/@python/python3.10/fedora-rawhide-x86_64/01768253-libsbml/builder-live.log.gz) Please, rebuild again the build release 5.18.0-19
It was a problem in copr. The latest build now has the log. checking for python3.10-config... /usr/bin/python3.10-config checking /usr/bin/python3.10-config --ldflags... done checking /usr/bin/python3.10-config --libs... done ... Bytecompiling .py files below /builddir/build/BUILDROOT/libsbml-5.18.0-19.fc34.x86_64/usr/lib/debug/usr/lib64/python3.1 using /usr/bin/python3.1 /usr/lib/rpm/redhat/brp-python-bytecompile: line 45: /usr/bin/python3.1: No such file or directory /usr/lib/rpm/redhat/brp-python-bytecompile: line 50: [: : integer expression expected /usr/lib/rpm/redhat/brp-python-bytecompile: line 65: [: : integer expression expected /usr/lib/rpm/redhat/brp-python-bytecompile: line 82: /usr/bin/python3.1: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.3ikqIu (%install)
Probably my patch is wrong. Miro, please, can you correct it? https://src.fedoraproject.org/rpms/libsbml/blob/c3a30fb4de321f8c37be41332090e9426b001e97/f/libsbml-porting_to_python310.patch
Built as https://copr.fedorainfracloud.org/coprs/g/python/python3.10/build/1771636/.
Thank you Zbigniew.