From patchwork Mon Jan 16 15:16:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 644765 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAFA3C677F1 for ; Mon, 16 Jan 2023 15:21:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231691AbjAPPVi (ORCPT ); Mon, 16 Jan 2023 10:21:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbjAPPVL (ORCPT ); Mon, 16 Jan 2023 10:21:11 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DCB52659C for ; Mon, 16 Jan 2023 07:16:51 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id bi26-20020a05600c3d9a00b003d3404a89faso3967177wmb.1 for ; Mon, 16 Jan 2023 07:16:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+mL4L0xcPESJQvTN8KhYxnxWI1AKSYGpakjuOvVjoIk=; b=rsa7CsZjLedut9Va58uW8UrPQh9wpUkTkecL5nAJUKRAiJVttVOttaFWAgjwzj+KJw oJygsK8zVgKLYasydQWrCZwAyRDchV5LleBo4oEB+BqIgs6VAbpPdMuHrTjhNl6miFzJ iWmYj86BdJSdfbrehLarQYfIZ3/daOnOgJ9LzcYGfGIY/6AWwuDDmY57f4Wl/Spld7j2 xvMOb9iIL6CIorm1uV4/O8uLJ03oC8Vn2XwkCi1sg3ezm/1Kz4rgb62oUPsNnsm4bCjj X8s8ll0JGRSc9Wz2tgQ1XLKtcN/lvA8dc9Y4N7rp2r0Vw61icF5AbZPgOrc4cGP65bXp l9mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+mL4L0xcPESJQvTN8KhYxnxWI1AKSYGpakjuOvVjoIk=; b=nDWcUZLh/npNurzFtflSLxquB/VAO3Nypnt8PumieNJm/+PtFDTBe09+E35wVmiT9B 1926LI9wwWIA6VijfKp1wqP4TSGNkI2QdlrxKrfnetsmDQvytA1us0fOqN6OkPXdMO3A vOg0w8KiEdlhWJM5sZ+g3T2eeLV4vSyTgaS7vodTYBvUHfxL32PIZ3/lStA9h2wRiv3r Xp+zhhxyi8HAVxqKWe8MjVKzkfGIx8URNuzMUQb8xONN5AULKFml5OS8uPoz8aqe777y va94MsneFKhE7+fpyiU4n99xTvHCT8jBSavmbWVl4oDAmrRLu44opE5w+8tjh8DKGS7a iMYA== X-Gm-Message-State: AFqh2kogNHJkAC7mCNZUZKSHGCOccmRi7hSrJk2l2XH9FRHlCcKMLBFZ 5S07/pm0JG7aN4XnZrJHEbS2xA== X-Google-Smtp-Source: AMrXdXutKxv3sP1vKe1XEOm+HykS0wYNf5yGxNMHRvYG/1UtP1X3HFpCoUgcxvPlgQ4QCQcAuDH7yw== X-Received: by 2002:a7b:c003:0:b0:3d2:bca5:10a2 with SMTP id c3-20020a7bc003000000b003d2bca510a2mr67191900wmb.22.1673882209818; Mon, 16 Jan 2023 07:16:49 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2f9d:c271:2ba9:4f2a]) by smtp.gmail.com with ESMTPSA id f6-20020a05600c4e8600b003db03725e86sm636892wmq.8.2023.01.16.07.16.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 07:16:49 -0800 (PST) From: Bartosz Golaszewski To: Kent Gibson , Linus Walleij , Andy Shevchenko , Viresh Kumar Cc: linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: [libgpiod][PATCH 1/2] build: drop unused python-related bits from configure.ac Date: Mon, 16 Jan 2023 16:16:45 +0100 Message-Id: <20230116151646.338282-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Bartosz Golaszewski We no longer use autotools to build python bindings. We should still check the interpreter but let's not set any automake variables. Signed-off-by: Bartosz Golaszewski --- configure.ac | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/configure.ac b/configure.ac index 599c598..d305506 100644 --- a/configure.ac +++ b/configure.ac @@ -40,11 +40,6 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) m4_pattern_forbid([^AX_], [Unexpanded AX_ macro found. Please install GNU autoconf-archive.]) -AC_ARG_VAR([PYTHON_CPPFLAGS], - [Compiler flags to find Python headers [default: auto-detect]]) -AC_ARG_VAR([PYTHON_LIBS], - [Libraries to link into Python extensions [default: auto-detect]]) - AC_CONFIG_SRCDIR([lib]) AC_CONFIG_HEADERS([config.h]) @@ -229,16 +224,6 @@ then then AC_MSG_ERROR([python3-config not found - needed for python bindings]) fi - - if test -z "$PYTHON_CPPFLAGS" - then - AC_SUBST(PYTHON_CPPFLAGS, [`$PYTHON-config --includes`]) - fi - - if test -z "$PYTHON_LIBS" - then - AC_SUBST(PYTHON_LIBS, [`$PYTHON-config --libs`]) - fi fi AC_ARG_ENABLE([bindings-rust], From patchwork Mon Jan 16 15:16:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 643262 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B813C46467 for ; Mon, 16 Jan 2023 15:21:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbjAPPVg (ORCPT ); Mon, 16 Jan 2023 10:21:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231844AbjAPPVL (ORCPT ); Mon, 16 Jan 2023 10:21:11 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4044E1CF57 for ; Mon, 16 Jan 2023 07:16:52 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id k22-20020a05600c1c9600b003d1ee3a6289so22384552wms.2 for ; Mon, 16 Jan 2023 07:16:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iiDSfvvVnpnlPivdw8/50/rt1TZas44bwqpU4QDG+KM=; b=MXFMmsp6IH4Ui26w9QQlkuO+QQZFU1BhPmTplhIIf6Ez7G3vMUelROvs78F96C37rz 068+fRc7bRA8Ww2tCBtn1+jtNOaG4P1Zx/9Nav74bCJJmnGpyHal0ZMz2L44UIXWbuiG rCUPt2D5nvyDkiVi8SmPZWCRqTl++kWpozJ8V/RsSTs/3tdwIA1iUu11FqMsl6qdPxrC Wa55XIi/rjbSUr6v8Bd3EhYwBwctFHeCPm+FRGQQrX9C/zX/Cf92ABdb7dNDEHiTAQbW 4c9ba9HaPrL/8fLX8egJ5exoJzGZZDEDc64jIExmpsXTQa+DX4oozhrp04SU39wu48zC NYXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iiDSfvvVnpnlPivdw8/50/rt1TZas44bwqpU4QDG+KM=; b=A7ATuKSvn1dAzYlK8xw9mV6ZUI0Oy+gnbebKszDioTSiL8cHF79ihq+vuHxBZ9SD58 ChObtmoaN+o9eWu2r/xBy4eBlvVG8xKNudgxu8m1DC89KRjBvjqW9vqw6Sp+MQUFoE0Q PwwRA+2fvtF7Bd/MjfAtHaGO7F3s+mDQTNi9TRco2dIyezbl8neb9xdU0sTB9qoDq4dr TnmUgk+w077832z+Vm2dQS1SH9z3z/hI4zc94vVz1YytKA5EImRLwXkVEbOXw1Xns4kE mlAcIY0YFgL/ZG+Y7LVjQtBJCpYi7wD+NIlK2yMrtxz4nohCTqDmFcQ+ysXyXfqGD97X NMEQ== X-Gm-Message-State: AFqh2kr3p1T4que1EAR2CYiXokZTvXQ9XjDrUz7RvQWnaynAhnJaPbht zMWA3wMeRycDylgZRLINsp/9IQ== X-Google-Smtp-Source: AMrXdXvCoZduBzcjYnGugfB09zZs95/zp8X+9+1AiXkQd5s1cyB5+HB4ADHJR4DiI5gv0a7EC9k2aQ== X-Received: by 2002:a05:600c:354c:b0:3da:fc7b:1f7b with SMTP id i12-20020a05600c354c00b003dafc7b1f7bmr3158225wmq.33.1673882210814; Mon, 16 Jan 2023 07:16:50 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2f9d:c271:2ba9:4f2a]) by smtp.gmail.com with ESMTPSA id f6-20020a05600c4e8600b003db03725e86sm636892wmq.8.2023.01.16.07.16.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 07:16:50 -0800 (PST) From: Bartosz Golaszewski To: Kent Gibson , Linus Walleij , Andy Shevchenko , Viresh Kumar Cc: linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: [libgpiod][PATCH 2/2] build: update the required python version Date: Mon, 16 Jan 2023 16:16:46 +0100 Message-Id: <20230116151646.338282-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230116151646.338282-1-brgl@bgdev.pl> References: <20230116151646.338282-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Bartosz Golaszewski We don't guarantee libgpiod python bindings to work with anything older than python 3.9. Let's fix the required version in configure.ac. Signed-off-by: Bartosz Golaszewski --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d305506..7b8c65a 100644 --- a/configure.ac +++ b/configure.ac @@ -216,7 +216,7 @@ AM_CONDITIONAL([WITH_BINDINGS_PYTHON], [test "x$with_bindings_python" = xtrue]) if test "x$with_bindings_python" = xtrue then - AM_PATH_PYTHON([3.0], [], + AM_PATH_PYTHON([3.9], [], [AC_MSG_ERROR([python3 not found - needed for python bindings])]) AC_CHECK_PROG([has_python_config], [python3-config], [true], [false])