From unknown Fri Jun 20 05:35:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30752 <30752@debbugs.gnu.org> To: bug#30752 <30752@debbugs.gnu.org> Subject: Status: [PATCH 1/1] gnu: Add Python 3.7.0b2. Reply-To: bug#30752 <30752@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:35:21 +0000 retitle 30752 [PATCH 1/1] gnu: Add Python 3.7.0b2. reassign 30752 guix-patches submitter 30752 Hartmut Goebel severity 30752 normal tag 30752 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 08 11:49:23 2018 Received: (at submit) by debbugs.gnu.org; 8 Mar 2018 16:49:23 +0000 Received: from localhost ([127.0.0.1]:51418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etyjE-0004KP-KP for submit@debbugs.gnu.org; Thu, 08 Mar 2018 11:49:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etyjA-0004K9-Oz for submit@debbugs.gnu.org; Thu, 08 Mar 2018 11:49:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etyiz-0006xy-6z for submit@debbugs.gnu.org; Thu, 08 Mar 2018 11:49:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42826) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1etyiz-0006xn-3f for submit@debbugs.gnu.org; Thu, 08 Mar 2018 11:49:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etyix-0008II-IJ for guix-patches@gnu.org; Thu, 08 Mar 2018 11:49:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etyis-0006uX-Sq for guix-patches@gnu.org; Thu, 08 Mar 2018 11:48:59 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:47147) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1etyis-0006t2-Ho for guix-patches@gnu.org; Thu, 08 Mar 2018 11:48:54 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zxxKv716lz1qv2w for ; Thu, 8 Mar 2018 17:48:51 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zxxKv6t6Wz1r2Zp for ; Thu, 8 Mar 2018 17:48:51 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id n15m4P-TFK75 for ; Thu, 8 Mar 2018 17:48:50 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-93-104-166-138.dynamic.mnet-online.de [93.104.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Thu, 8 Mar 2018 17:48:50 +0100 (CET) Received: from lenashee.goebel-consult.de (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 6309060584 for ; Thu, 8 Mar 2018 17:48:50 +0100 (CET) From: Hartmut Goebel To: guix-patches@gnu.org Subject: [PATCH 1/1] gnu: Add Python 3.7.0b2. Date: Thu, 8 Mar 2018 17:48:50 +0100 Message-Id: <20180308164850.8056-1-h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.13.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * gnu/packages/python.scm (python-3.7): New variable. * gnu/packages/patches/python-3.7-search-paths.patch: New file * gnu/local.mk (dist_patch_DATA): Add it. --- gnu/local.mk | 1 + gnu/packages/patches/python-3.7-search-paths.patch | 16 ++++++++ gnu/packages/python.scm | 44 ++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 gnu/packages/patches/python-3.7-search-paths.patch diff --git a/gnu/local.mk b/gnu/local.mk index 47eb1d988..fb69097bd 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1021,6 +1021,7 @@ dist_patch_DATA = \ %D%/packages/patches/python-2.7-search-paths.patch \ %D%/packages/patches/python-2.7-site-prefixes.patch \ %D%/packages/patches/python-2.7-source-date-epoch.patch \ + %D%/packages/patches/python-3.7-search-paths.patch \ %D%/packages/patches/python-3-deterministic-build-info.patch \ %D%/packages/patches/python-3-search-paths.patch \ %D%/packages/patches/python-3-fix-tests.patch \ diff --git a/gnu/packages/patches/python-3.7-search-paths.patch b/gnu/packages/patches/python-3.7-search-paths.patch new file mode 100644 index 000000000..2960185fd --- /dev/null +++ b/gnu/packages/patches/python-3.7-search-paths.patch @@ -0,0 +1,16 @@ +Make sure the build system honors C_INCLUDE_PATH and LIBRARY_PATH when +looking for headers and libraries. + +--- setup.py 2018-03-08 09:57:52.993780176 +0100 ++++ setup.py 2018-03-08 09:58:28.448240983 +0100 +@@ -594,8 +594,8 @@ + add_dir_to_list(self.compiler.include_dirs, + sysconfig.get_config_var("INCLUDEDIR")) + +- system_lib_dirs = ['/lib64', '/usr/lib64', '/lib', '/usr/lib'] +- system_include_dirs = ['/usr/include'] ++ system_lib_dirs = os.getenv('LIBRARY_PATH', '').split(os.pathsep) ++ system_include_dirs = os.getenv('C_INCLUDE_PATH', '').split(os.pathsep) + # lib_dirs and inc_dirs are used to search for files; + # if a file is found in one of those directories, it can + # be assumed that no additional -I,-L directives are needed. diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 064d79002..50bb1e398 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -368,6 +368,50 @@ data types.") (version-major+minor version) "/site-packages")))))))) +(define-public python-3.7 + (package (inherit python-3.6) + (version "3.7.0b2") + (source (origin + (method url-fetch) + (uri (string-append "https://www.python.org/ftp/python/" + "3.7.0" "/Python-" version ".tar.xz")) + (patches (search-patches + "python-fix-tests.patch" + "python-3-fix-tests.patch" + "python-3-deterministic-build-info.patch" + "python-3.7-search-paths.patch")) + (patch-flags '("-p0")) + (sha256 + (base32 "10n87x65gsw8lc7iqry2yfpaf4szncr8z40vm5hspkgxzbkjs24j")) + (snippet + '(begin + (for-each + delete-file + '("Lib/ctypes/test/test_structures.py" ; fails on aarch64 + "Lib/ctypes/test/test_win32.py" ; fails on aarch64 + "Lib/test/test_fcntl.py")) ; fails on aarch64 + #t)))) + (arguments + (substitute-keyword-arguments + (package-arguments python) + ((#:tests? _) #f) + ((#:phases phases) + `(modify-phases ,phases + ;; Unset SOURCE_DATE_EPOCH while running the test-suite and set it + ;; again afterwards. + (add-before 'check 'unset-SOURCE_DATE_EPOCH + (lambda _ + (unsetenv "SOURCE_DATE_EPOCH"))) + (add-after 'check 'reset-SOURCE_DATE_EPOCH + (lambda _ + (setenv "SOURCE_DATE_EPOCH" "1"))))))) + (native-search-paths + (list (search-path-specification + (variable "PYTHONPATH") + (files (list (string-append "lib/python" + (version-major+minor version) + "/site-packages")))))))) + ;; Current 3.x version. (define-public python-3 python-3.6) -- 2.13.6 From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 08 12:02:04 2018 Received: (at 30752) by debbugs.gnu.org; 8 Mar 2018 17:02:04 +0000 Received: from localhost ([127.0.0.1]:51431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etyvc-0004gh-Hd for submit@debbugs.gnu.org; Thu, 08 Mar 2018 12:02:04 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:39962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etyva-0004gM-HL for 30752@debbugs.gnu.org; Thu, 08 Mar 2018 12:02:02 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zxxd52s7kz1qymQ for <30752@debbugs.gnu.org>; Thu, 8 Mar 2018 18:02:01 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zxxd52N71z1r2Zp for <30752@debbugs.gnu.org>; Thu, 8 Mar 2018 18:02:01 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id TnWXhZRkwULw for <30752@debbugs.gnu.org>; Thu, 8 Mar 2018 18:02:00 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-93-104-166-138.dynamic.mnet-online.de [93.104.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for <30752@debbugs.gnu.org>; Thu, 8 Mar 2018 18:02:00 +0100 (CET) Received: from [192.168.110.2] (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 6E1D160584 for <30752@debbugs.gnu.org>; Thu, 8 Mar 2018 18:02:00 +0100 (CET) Subject: Re: [PATCH 1/1] gnu: Add Python 3.7.0b2. To: 30752@debbugs.gnu.org References: <20180308164850.8056-1-h.goebel@crazy-compilers.com> From: Hartmut Goebel Organization: crazy-compilers.com Message-ID: <0ba89f2d-101c-1630-16ab-9576286813b0@crazy-compilers.com> Date: Thu, 8 Mar 2018 18:02:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30752 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Please note this is adding BETA 2. For the release the version and the source uri need to be adopted. I need 3.7 for some other project, thus developed this patch. To avoid duplicate work by others, I decided to publish these even if Python 3.7 currently is only beta. -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 29 17:14:14 2018 Received: (at 30752-done) by debbugs.gnu.org; 29 Aug 2018 21:14:15 +0000 Received: from localhost ([127.0.0.1]:37539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fv7n4-0005Pt-NE for submit@debbugs.gnu.org; Wed, 29 Aug 2018 17:14:14 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:39831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fv7n0-0005Pk-N7 for 30752-done@debbugs.gnu.org; Wed, 29 Aug 2018 17:14:13 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8D63721921; Wed, 29 Aug 2018 17:14:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 29 Aug 2018 17:14:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=lQNQi+Q1yS5/eUjG8Pjncmmk8ErupGOutrIcAGzaZ14=; b=CvRFl K4gusMnnwbrsQayQzCHG9pwse5pOI3GTgxKevPAkHefwtj0vNSDroF+QIG2Y5dXM kQ2a6jJIrfpz2QkkWiHPA7cxk0fvkARoccIZXggbQmx8JNlSYxX/DUDrbE9PsGM4 MOIonxZwHymhHuhB7hclmN8qVquz4qwJG3ZwdE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=lQNQi+Q1yS5/eUjG8Pjncmmk8Erup GOutrIcAGzaZ14=; b=pKGRu9CXPOd9J2aQQYK4nmnoXHaw8SChicmwWq/QtKA21 iWSIdGoQt+N0yTMBtKeOiPCOIWeaBeTdwmq883nfD60+5k972PJP6nC9yuUw7TTh BfdHoI15mi0BUVemEfvG5vJbvIGzhA/f7aB4A10ToajE1LPBBfWf0AxSPVP1lpPQ VjjHqfomjVLNMbAopmcPUx7PMdfvhUt7HXthyBrEwlrOERc+aP6/z88KaZjylR11 Bw73cj2atRxWWNIIAMLi/zLxw+IpQ4HCckWM69nctJWJIdEdHMl6rge4KVnfGs9/ YTYgZFFE/gxG49AEAhcoRIeapQtEXpL4FpQKqIY6Q== X-ME-Proxy: X-ME-Sender: Received: from localhost (c-76-124-202-137.hsd1.pa.comcast.net [76.124.202.137]) by mail.messagingengine.com (Postfix) with ESMTPA id 8C1F1E455C; Wed, 29 Aug 2018 17:14:09 -0400 (EDT) Date: Wed, 29 Aug 2018 17:14:08 -0400 From: Leo Famulari To: Hartmut Goebel Subject: Re: [bug#30752] [PATCH 1/1] gnu: Add Python 3.7.0b2. Message-ID: <20180829211408.GA8330@jasmine.lan> References: <20180308164850.8056-1-h.goebel@crazy-compilers.com> <0ba89f2d-101c-1630-16ab-9576286813b0@crazy-compilers.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <0ba89f2d-101c-1630-16ab-9576286813b0@crazy-compilers.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30752-done Cc: 30752-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 08, 2018 at 06:02:00PM +0100, Hartmut Goebel wrote: > Please note this is adding BETA 2. For the release the version and the > source uri need to be adopted. >=20 > I need 3.7 for some other project, thus developed this patch. To avoid > duplicate work by others, I decided to publish these even if Python 3.7 > currently is only beta. Thanks! Core-updates currently has 3.7.0, so I'm closing this bug. --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAluHDKAACgkQJkb6MLrK fwjXaw//avDobsqXHwkfG/lVkhCS7HlUGx3Pddg5wwlTvPSJdhgyrh4BY1TholF1 3VE2ydsWbvGLH5IlrNW8xxRjLzvmyr4y1AdaO/KyruWR99DbMkSg+r+Fa7A7uUai oR2C5uLicDaTUQu/dGLJYSI1sST+JXL82ciC+jA2zJAIRkoFBFjXp/8z+UvUemoG mukN8HYQ1OKs2RnnTy+6GPlGVzoixXlJThJl0Iqc9odHOrahv81XXEMLBJlZyUlz +qal36G8Hy12KbPr2gJa44WPoNsgyn/425DnJtEM0dQjnPyenB6Q4mh9uYEwvePU 5djrs2BiY0WgwJkvdSeC6cMvcwLfBeq2jtkgTSvQkFer4kjaMZGe1hm/65o9WeZq HFFXM2Hw2nxWu9kDb1By3hBdMZ8/S7VcRGcGoaGiLK6nAK9fhMfHL6l1gE7HENpz rPYFOMQDFq2ds2wH6XCy1e1k9YROe4gTzs7LhfnCyYCsqQc0+BioBWfNsLLx/G9U jqGzKqjjiEyOosJe34Z/CnJsrSd1zeB+Vke3iPPxlsT+3fKJekjmMDtsIekbkzt3 yhjy1a/zSzUM9EtXdUg9RSfmNOVV7kG3G720FoTjSUZ0enguI0XXLIrKIRn8w1l7 yADWBqsiPSmln/ZKWkgWz+G2mgR5F6bvUQlY3Bdw40KQUQs6Eh0= =vD1c -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C-- From unknown Fri Jun 20 05:35:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Sep 2018 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator