From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mDQ6NQ8lx14VGQAA0tVLHw (envelope-from ) for ; Fri, 22 May 2020 01:04:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4CM+MQ8lx15UUwAA1q6Kng (envelope-from ) for ; Fri, 22 May 2020 01:04:15 +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 D8E129402D6 for ; Fri, 22 May 2020 01:04:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 4EA1F6DE1372; Thu, 21 May 2020 18:04:08 -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 se_G-KPVQAht; Thu, 21 May 2020 18:04:07 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 0ADDD6DE104A; Thu, 21 May 2020 18:04:07 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 65A226DE10AD for ; Thu, 21 May 2020 18:04:05 -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 r93gn1FbQ5OW for ; Thu, 21 May 2020 18:04:04 -0700 (PDT) Received: from che.mayfirst.org (unknown [162.247.75.117]) by arlo.cworth.org (Postfix) with ESMTPS id 910096DE0F54 for ; Thu, 21 May 2020 18:04:04 -0700 (PDT) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1590109443; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding : from; bh=K/3r3IZvgceupvjqpWuiY7IQ7AE3QROeIStfu3zhyqA=; b=wsn1Ca2h64UIQVcg7+xveo+l2M0dmI5zZni7LS96mIwk1ZZmmUot5uINVrXeG6z7DIdV/ 1K+mC6OyaP0YLklBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1590109443; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding : from; bh=K/3r3IZvgceupvjqpWuiY7IQ7AE3QROeIStfu3zhyqA=; b=vZr71LP+3GfSuW/Y5WOwgUBwgF+mhHXX0k4/Fnx9irJqw2UoQ2Y9eJpa0aCoFSHRIgRhx 5qQ87GfHzvs2EM/Q4HdXsUfa/74ERpqx+Zz4u99GoUR7z9C+ZcPb5vVpqB9C7x15uPZHWrn cPKlnT6BYTDc/0NWxInLpfZGY+ROXmJHOa7TXInf3hqEOBiovATMx2/ySzSJ3fXpzaV+nPm ReF12Oqstv/Pbzd/rjG1oGFXas2laDPPidgdHsPtVFC0KuPEruOQwHQKe2J91oA5JuRdYqI L8eNZz7o5gZefxui2Vfg5renelM6qRsgpPuYZeFuMroCQuvxC8+OdlmJpEBA== Received: from fifthhorseman.net (unknown [IPv6:2001:470:1f07:60d:f2de:f1ff:fec3:d109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id B7870F9A6 for ; Thu, 21 May 2020 21:04:02 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 58C55203EE; Thu, 21 May 2020 21:03:59 -0400 (EDT) From: Daniel Kahn Gillmor To: Notmuch Mail Subject: [PATCH] python-cffi: enable out-of-tree builds Date: Thu, 21 May 2020 21:03:59 -0400 Message-Id: <20200522010359.715688-1-dkg@fifthhorseman.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 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: , 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=fifthhorseman.net header.s=2019 header.b=wsn1Ca2h; dkim=fail (body hash did not verify) header.d=fifthhorseman.net header.s=2019rsa header.b=vZr71LP+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fifthhorseman.net (policy=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: 1.09 X-TUID: OaCOl03y76I7 This is a simple hack to enable out-of-tree builds, a concern raised by Tomi in id:m24kzjib9a.fsf@guru.guru-group.fi This change at least enables "make check" to complete without error, but I'm sure it could be improved. I am not expert enough in setuptools to know how. Signed-off-by: Daniel Kahn Gillmor --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure b/configure index 37368bda..f0472e8e 100755 --- a/configure +++ b/configure @@ -70,6 +70,14 @@ if [ "$srcdir" != "." ]; then mkdir bindings/ruby cp -a "$srcdir"/bindings/ruby/*.[ch] bindings/ruby cp -a "$srcdir"/bindings/ruby/extconf.rb bindings/ruby + + # Use the same hack to replicate python-cffi source for + # out-of-tree builds (again, not ideal). + mkdir bindings/python-cffi + cp -a "$srcdir"/bindings/python-cffi/tests \ + "$srcdir"/bindings/python-cffi/notmuch2 \ + "$srcdir"/bindings/python-cffi/setup.py \ + bindings/python-cffi/ fi # Set several defaults (optionally specified by the user in -- 2.26.2