From patchwork Sat Dec 15 22:23:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 473 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6ED7C1691D; Sat, 15 Dec 2018 22:24:06 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTP id 23F57168A7 for ; Sat, 15 Dec 2018 22:24:06 +0000 (GMT) Received: from localhost ([::1]:40550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYILt-00019e-Ka for patchwork@mira.cbaines.net; Sat, 15 Dec 2018 17:24:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYILr-00019O-7b for guix-patches@gnu.org; Sat, 15 Dec 2018 17:24:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYILq-0004VH-9p for guix-patches@gnu.org; Sat, 15 Dec 2018 17:24:03 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:45479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gYILq-0004V5-4o for guix-patches@gnu.org; Sat, 15 Dec 2018 17:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gYILp-0007tV-T8 for guix-patches@gnu.org; Sat, 15 Dec 2018 17:24:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33762] gnu: python-pyelftools: Fix tests with python 3.7. Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Dec 2018 22:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33762 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 33762@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154491264030335 (code B ref -1); Sat, 15 Dec 2018 22:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Dec 2018 22:24:00 +0000 Received: from localhost ([127.0.0.1]:49737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYILn-0007tD-T1 for submit@debbugs.gnu.org; Sat, 15 Dec 2018 17:24:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYILl-0007sz-Go for submit@debbugs.gnu.org; Sat, 15 Dec 2018 17:23:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYILf-0004Q2-HG for submit@debbugs.gnu.org; Sat, 15 Dec 2018 17:23:52 -0500 Received: from lists.gnu.org ([2001:4830:134:3::11]:53208) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gYILf-0004Pu-CJ for submit@debbugs.gnu.org; Sat, 15 Dec 2018 17:23:51 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYILe-000171-E4 for guix-patches@gnu.org; Sat, 15 Dec 2018 17:23:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYILd-0004Ow-Im for guix-patches@gnu.org; Sat, 15 Dec 2018 17:23:50 -0500 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:46370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYILd-0004OV-Bu for guix-patches@gnu.org; Sat, 15 Dec 2018 17:23:49 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 09AE81AAC3 for ; Sat, 15 Dec 2018 14:23:47 -0800 (PST) From: Vagrant Cascadian Date: Sat, 15 Dec 2018 23:23:41 +0100 Message-ID: <87zht6qviq.fsf@ponder.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python.scm (python-pyelftools) [native-inputs]: Remove python-setuptools. [arguments]: Add set-pythonpath phase. --- gnu/packages/python.scm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 23b980ec3..cb40ce01d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10627,9 +10627,16 @@ useful as a validator for JSON data.") (base32 "090vdksbz341f7ljvr0zswblw4lspa8qaiikzyjkf318arpxmil9")))) (build-system python-build-system) - ;; Test suite requires python-setuptools - (native-inputs - `(("python-setuptools" ,python-setuptools))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'set-pythonpath + (lambda* (#:key inputs #:allow-other-keys) + (setenv "PYTHONPATH" + (string-append + (getcwd) "/test/" + ":" (getenv "PYTHONPATH"))) + #t))))) (home-page "https://github.com/eliben/pyelftools") (synopsis