Patch Detail
Show a patch.
GET /api/patches/15908/?format=api
{ "id": 15908, "url": "https://patchwork.libcamera.org/api/patches/15908/?format=api", "web_url": "https://patchwork.libcamera.org/patch/15908/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20220516141022.96327-3-tomi.valkeinen@ideasonboard.com>", "date": "2022-05-16T14:10:10", "name": "[libcamera-devel,02/14] py: meson: add pystubs build target", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "0ef41157c2b0965f35669772c1f9a2950415c7fc", "submitter": { "id": 109, "url": "https://patchwork.libcamera.org/api/people/109/?format=api", "name": "Tomi Valkeinen", "email": "tomi.valkeinen@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/15908/mbox/", "series": [ { "id": 3113, "url": "https://patchwork.libcamera.org/api/series/3113/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3113", "date": "2022-05-16T14:10:08", "name": "Misc Python bindings patches", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3113/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/15908/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/15908/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 3165EC326C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 16 May 2022 14:10:54 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D6F3D65664;\n\tMon, 16 May 2022 16:10:50 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BC78965654\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 16 May 2022 16:10:48 +0200 (CEST)", "from deskari.lan (91-156-85-209.elisa-laajakaista.fi\n\t[91.156.85.209])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 30A9E563;\n\tMon, 16 May 2022 16:10:48 +0200 (CEST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1652710250;\n\tbh=MbwnSfF0sSwNjlsdM6Fc3w1mndHsQnPSB9jGgx82smk=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=zPRrUsFmYQMfQPotliXjiQZipGPYC1ZPjxrWQ5fr/4GcPF/oF7UPvki3WjoWOFN51\n\trWyyuKJdCpCOij5sxLouhdGk8+bZBiPt6CtBc5q20UAnViAGsoGPeztKday5F4cKp/\n\tDayqQsTlWXGUkZ8GRDBWdARxQVW02ddVlpPIujgiUblBiEVBSNjdt+DxqVbzRxPItH\n\t1R7V/rq5PLex9yf52JMBxpV9qluNIgOFooMzp79BXgAYuD7hWjhhTuGOIaPxWGs87A\n\t4oVwSlYTp0x0dmaWBhZlQEK56SRm9lVw5RnwchJ0yHc+OBWB6vU95kx2Zhsh8FP/t/\n\t9/Ngjp1Q4H3Qg==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1652710248;\n\tbh=MbwnSfF0sSwNjlsdM6Fc3w1mndHsQnPSB9jGgx82smk=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=N2kJTiOMHkDPohc/0y461NZScHdfeSNKIjhCsVx+8+JArJxAC8Yr/cwfI7hrSb46m\n\tMV9eWHbUWuZAcFvAhWn/2K7yyH6ZsPvMYxCfPxsIG09+xt9zu3c6zOk26AuJcx9qUP\n\trHwq9Vgb3bR+FoONSuvNgM+Yx2GGLz/jCGOPfXh4=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"N2kJTiOM\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org,\n\tDavid Plowman <david.plowman@raspberrypi.com>,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tJacopo Mondi <jacopo@jmondi.org>", "Date": "Mon, 16 May 2022 17:10:10 +0300", "Message-Id": "<20220516141022.96327-3-tomi.valkeinen@ideasonboard.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20220516141022.96327-1-tomi.valkeinen@ideasonboard.com>", "References": "<20220516141022.96327-1-tomi.valkeinen@ideasonboard.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH 02/14] py: meson: add pystubs build target", "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>", "From": "Tomi Valkeinen via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Add a 'pystubs' build target for building the python stubs.\n\nFor now this needs to be ran manually. I didn't figure out how to\ngenerate the stubs after the libcamera bindings are built.\n\nSigned-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>\n---\n src/py/libcamera/meson.build | 14 +++++++++++++-\n 1 file changed, 13 insertions(+), 1 deletion(-)", "diff": "diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build\nindex 38f619d0..fbd33139 100644\n--- a/src/py/libcamera/meson.build\n+++ b/src/py/libcamera/meson.build\n@@ -60,6 +60,18 @@ run_command('ln', '-fsT', '../../../../src/py/libcamera/__init__.py',\n \n install_data(['__init__.py'], install_dir : destdir)\n \n-# \\todo Generate stubs when building. See https://peps.python.org/pep-0484/#stub-files\n+# \\todo Generate stubs when building, and install them.\n+# See https://peps.python.org/pep-0484/#stub-files\n # Note: Depends on pybind11-stubgen. To generate pylibcamera stubs:\n # $ PYTHONPATH=build/src/py pybind11-stubgen --no-setup-py -o build/src/py libcamera\n+# The target below can be ran manually, but how to create a meson target that\n+# is run if pycamera is built?\n+\n+stubgen = find_program('pybind11-stubgen', required : false)\n+\n+if stubgen.found()\n+ run_target('pystubs',\n+ depends: pycamera,\n+ env: {'PYTHONPATH': meson.project_build_root() / 'src/py'},\n+ command : [stubgen, '--no-setup-py', '-o', meson.project_build_root() / 'src/py', 'libcamera'])\n+endif\n", "prefixes": [ "libcamera-devel", "02/14" ] }