From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wPUzFtOS1F6QNQAA0tVLHw (envelope-from ) for ; Mon, 01 Jun 2020 05:32:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KHUtEtOS1F4/eAAAB5/wlQ (envelope-from ) for ; Mon, 01 Jun 2020 05:32:03 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EED0B940415 for ; Mon, 1 Jun 2020 05:32:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id D851D6DE0F4C; Sun, 31 May 2020 22:31:57 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OfCKewfO5xr0; Sun, 31 May 2020 22:31:57 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 042C26DE0F34; Sun, 31 May 2020 22:31:56 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 24F7E6DE0F34 for ; Sun, 31 May 2020 22:31:54 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vlJuamoQZzEt for ; Sun, 31 May 2020 22:31:53 -0700 (PDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by arlo.cworth.org (Postfix) with ESMTPS id AE4316DE0F22 for ; Sun, 31 May 2020 22:31:51 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 51DD61B0003B; Mon, 1 Jun 2020 08:31:46 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1590989506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=IV5BspUmPbOUlpfK2b7rd8bou4643WQYsKPaKt6ZziI=; b=QuLkIh25CvqY0iGNTTrHsld+lHX/l9h4J5SZiCvq5Di44z6FmGfbq1Zts1F9DGAkfwwj+1 dd0s0v0DcawpoDSx2BPiC+kCGrCTM+SzwMSjeTOubxnuyNKBCWu4TkhfWOAcI+Eai9XsIz Oe27jBxv0jmWMpYszhd8OeJj+XERToFFJboPJfaLJitEtmjTPukk+ldYmic6FtOiuuVDoH AyAJW9xWhwS15gR08rstZ2VF+KugSUvw+TW/LyBfLtDVABoeh24BIpfYjqHM7ij7Qqn6+i OFmwnzXbazpct/tO+0TW4NntnOSrOefBUoj3rKUdBJGSDiWoQF3wBc5lx0WMxg== From: Tomi Ollila To: notmuch@notmuchmail.org Subject: [PATCH] configure: check existence of python3 setuptools and dev package Date: Mon, 1 Jun 2020 08:31:42 +0300 Message-Id: <20200601053142.22578-1-tomi.ollila@iki.fi> X-Mailer: git-send-email 2.13.3 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1590989506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=IV5BspUmPbOUlpfK2b7rd8bou4643WQYsKPaKt6ZziI=; b=MAUKbXnmfIYQWmpD7y5E5gQSb6YDJii2EGj05UmomZ8KeVL880IAI4oMqplTKHDqTiqX8l 9R+xqXX9DSUuPi+0Avxqowdw7TgQgcOLdTt0oVasOFg6T7HSqO9+Au0LZQSehEYHNUu92K cv6zoBJJ1ZBRfr45yl5bITfZrd64gk62pGuGhC0UlVvxxUrQcN5NwiaIdbaAW8kPIAm4rW QC+g6rmcp+adZmVI1k9dwpvSqgYVx9sMyj5HMN57+vjA9kO3n8Q+uPq35BJm3WirJtuHQa 3Qzc+hiFUfCF0rf+7aFTrB+ROErqxWXsi1ewzXK01uNsjCm0CuuTs0hbcdiH/g== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1590989506; a=rsa-sha256; cv=none; b=XshairwVB6w1zE6pGGXvltIIrLr7bzYAIrKN9WpW8iNVlW/YUJ6yLlVxBqpTMkDZ8fVZaU BIU2RzDKa8RiaPpXYxhpTNwLGT5iOT5ncBxvT1PM6MrOWHRKJS3umGjLGaY857AMQVzlDE tIOWsMAzTM+wx1acCy2u0yX+1WC+nePgneyWl+wE0BWHSjlIxcAMrb5fZDR5e4c9cuH+Fd hqKVx5rfaJiflJBP7NuQS5FajEwDpH2mmU1W3VxtC9ekEh1OVm2DUwhNwF1vNDKXB6UROk GhUFANkCij2LeQSLu3Fe5mlqfFST1utdOjiRLCfNF42vW406OIez59tKRx3KbQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tomi.ollila@iki.fi MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=lahtoruutu header.b=QuLkIh25; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 2.99 X-TUID: wILF9HStFGIA The notmuch2 CFFI-based Python interface is not buildable unless python3 dev package and python3 setuptools are installed. Check that these exist in configure (and disable notmuch2 bindings build if not) so that build of these bindings don't fail when make(1) is executed. --- configure | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 32a836bb..e4c738e5 100755 --- a/configure +++ b/configure @@ -711,12 +711,14 @@ if [ $have_python -eq 0 ]; then errors=$((errors + 1)) fi -have_python3=0 +have_python3_dev=0 if [ $have_python -eq 1 ]; then - printf "Checking for python3..." - if "$python" -c 'import sys; assert sys.version_info >= (3,0)' > /dev/null 2>&1; then + printf "Checking for python3 dev..." + if "$python" -c 'import os, sys, sysconfig; +assert sys.version_info >= (3,0) +assert os.path.isfile(sysconfig.get_config_h_filename())' >/dev/null 2>&1; then printf "Yes.\n" - have_python3=1 + have_python3_dev=1 else printf "No.\n" fi @@ -724,9 +726,9 @@ fi have_python3_cffi=0 have_python3_pytest=0 -if [ $have_python3 -eq 1 ]; then - printf "Checking for python3 cffi... " - if "$python" -c 'import cffi' >/dev/null 2>&1; then +if [ $have_python3_dev -eq 1 ]; then + printf "Checking for python3 cffi and setuptools... " + if "$python" -c 'import cffi; import setuptools' >/dev/null 2>&1; then printf "Yes.\n" have_python3_cffi=1 else -- 2.25.1