{"id":24155,"url":"https://patchwork.libcamera.org/api/patches/24155/?format=json","web_url":"https://patchwork.libcamera.org/patch/24155/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20250818121103.20073-1-laurent.pinchart@ideasonboard.com>","date":"2025-08-18T12:11:02","name":"[1/2] Documentation: Use python3 directly to check for doxylink version","commit_ref":"ac09782a17603c828e202edf04b60548e2ab0371","pull_url":null,"state":"accepted","archived":false,"hash":"b456d768db3e49c2b5f2a21463ffe68474145ea8","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/24155/mbox/","series":[{"id":5391,"url":"https://patchwork.libcamera.org/api/series/5391/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5391","date":"2025-08-18T12:11:02","name":"[1/2] Documentation: Use python3 directly to check for doxylink version","version":1,"mbox":"https://patchwork.libcamera.org/series/5391/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/24155/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/24155/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id E8DC2BDCC1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 18 Aug 2025 12:11:29 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id DE6156925F;\n\tMon, 18 Aug 2025 14:11:28 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2342D69257\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 18 Aug 2025 14:11:27 +0200 (CEST)","from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi\n\t[81.175.209.231])\n\tby perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id CED1D1249\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 18 Aug 2025 14:10:29 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"M+zxoGqK\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1755519030;\n\tbh=ICIutt3lmEx2ZZ89/ElbzUoR6w+9qQEHPKREIWrBx1Q=;\n\th=From:To:Subject:Date:From;\n\tb=M+zxoGqKi6aMDSqVbZCt2Q0pTWOGgd3IAYJc6W6RlxtCaxXVHH8o1QFwA57xQ+LHD\n\tyVLb65bZv4srGp5xYf/Me3DyE56y+eMLtFYx1LT/SzNds9AXokPcVWJ23oXKqkXbHU\n\tCyX+yEymHwxLq/d8vUANYFvUExXVwHu6TrzdKP3g=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Subject":"[PATCH 1/2] Documentation: Use python3 directly to check for\n\tdoxylink version","Date":"Mon, 18 Aug 2025 15:11:02 +0300","Message-ID":"<20250818121103.20073-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.49.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"When checking the version of the sphinxcontrib.doxylink module, the\nPython interpreter used by Sphinx must be used, as that's where the\nmodule will be imported from. Using the meson python_installation object\nfor this purpose is incorrect, as it's meant to access the Python\ninstallation of the host machine, not the native Python interpreter on\nthe host machine. Fix this by using python3 directly.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n Documentation/meson.build | 5 +----\n 1 file changed, 1 insertion(+), 4 deletions(-)\n\n\nbase-commit: af43c2f945c42cc7d111de63abed9ca3df830ca4\n--\nRegards,\n\nLaurent Pinchart","diff":"diff --git a/Documentation/meson.build b/Documentation/meson.build\nindex b898ba3a0b7e..163875014eec 100644\n--- a/Documentation/meson.build\n+++ b/Documentation/meson.build\n@@ -124,12 +124,9 @@ if sphinx.found()\n     # Many distributions do not provide a recent-enough version of the doxylink\n     # module. This results in a build error with a cryptic message. Check the\n     # version manually and print clear error messages.\n-    py_mod = import('python')\n-    py3 = py_mod.find_installation('python3')\n-\n     mod = 'sphinxcontrib.doxylink'\n     min_version = '>=1.6.1'\n-    version = run_command(py3, '-c',\n+    version = run_command('python3', '-c',\n                           'import @0@ ; print(@0@.__version__)'.format(mod),\n                           check : false).stdout().strip()\n\n","prefixes":["1/2"]}