From: Dmitry Shachnev Date: Sun, 14 Nov 2021 18:08:50 +0000 (+0300) Subject: Find the build directory matching the current interpreter X-Git-Tag: archive/raspbian/5.15.2-2.3+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a82bd0306a49074c57909eb0977e8eb7de5b40d6;p=pyside2.git Find the build directory matching the current interpreter This is needed to allow us to run tests with all supported Python versions. Without this patch, the latest build directory will be always picked, no matter what the current interpreter is. Gbp-Pq: Name test-with-current-interpreter.patch --- diff --git a/testing/buildlog.py b/testing/buildlog.py index 216282b..5d3aa1f 100644 --- a/testing/buildlog.py +++ b/testing/buildlog.py @@ -94,6 +94,11 @@ class BuildLog(object): """.format(fpath))) sys.exit(1) + # We need to find the build directory for the current interpreter + py_version = "{}.{}".format(sys.version_info[0], sys.version_info[1]) + if py_version not in build_classifiers: + continue + if not os.path.exists(build_dir): rel_dir, low_part = os.path.split(build_dir) rel_dir, two_part = os.path.split(rel_dir)