From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sPF9IbLdJV8kFgAA0tVLHw (envelope-from ) for ; Sat, 01 Aug 2020 21:25:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oIBOHbLdJV8VbQAAbx9fmQ (envelope-from ) for ; Sat, 01 Aug 2020 21:25:06 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2F39E94053B for ; Sat, 1 Aug 2020 21:25:06 +0000 (UTC) Received: from localhost ([::1]:55188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1z05-0005so-2k for larch@yhetil.org; Sat, 01 Aug 2020 17:25:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1mo3-00040t-5W for guix-devel@gnu.org; Sat, 01 Aug 2020 04:23:51 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:36486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1k1mo0-0005p3-D9; Sat, 01 Aug 2020 04:23:50 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4BJccG6nvVzQlL9; Sat, 1 Aug 2020 10:23:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1596270221; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f0449uwquOq0axTypvYvBs2VFnc1c4FhJV1NJ5x6IVA=; b=Voxta65vv6/k5St57EPGGh/PLFcjex1Mx35dGvKmJADq0kiEm2XqqfsDIMo/nyze6IZ+lh GCLk9iT5Qx8+HiAZ4yKFWRNzsOrjp5udtNDoFtknmhp+pHgMAOaaKPmMujplTOlqjm/neo vKLDc5ea4Zo2Rn7IQO6VaCK4+nxZYD1ufPCU0+oS+X9mI0hf7xNGc8gAIoz5TjqmMMczwh x9/QjoU06OQaUso5BUIXJZjo4MRKrS8wyOT0JPzETm0ZcWASBXTPSuDvYy03yeneR91eDf dEx43Hf4MPI7am0DPLrPekcHHGsIpMkZ4P5WC7wg8jdZ8MNFnmfH0PR3nhS/lA== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id iLHvMK5osPRm; Sat, 1 Aug 2020 10:23:39 +0200 (CEST) Date: Sat, 1 Aug 2020 10:23:36 +0200 From: Lars-Dominik Braun To: zimoun Subject: Re: [Python] pypy3 integration Message-ID: <20200801082336.GA1347@noor.fritz.box> References: <20200719082714.GB1359@noor.fritz.box> <20200720194254.tiolat2ohihsbgu5@gravity> <20200722064657.GA1350@noor.fritz.box> <878sf5z11c.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-MBO-SPAM-Probability: 0 X-Rspamd-Score: -2.03 / 15.00 / 15.00 X-Rspamd-Queue-Id: EAA9E178E X-Rspamd-UID: c28934 Received-SPF: pass client-ip=80.241.56.171; envelope-from=lars@6xq.net; helo=mout-p-201.mailbox.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/01 04:23:43 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 01 Aug 2020 17:24:55 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jakub =?utf-8?B?S8SFZHppb8WCa2E=?= , Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=6xq.net header.s=MBO0001 header.b=Voxta65v; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: 84p/An2XcZ/1 Hi, > > Also, what about .pyc files? Does pypy create compatible .pyc files? > Well, the .pyc generated by CPython should be compatible with the ones > generated by Pypy, both VM targeting say Python 3.6. > But there is no necessary compatibility between .pyc of Python 3.6 and > Python 3.8, at least for CPython as Lars wrote. both C extensions and .pyc files are guarded by encoding implementation and Python version in the file name. If we look at python-numpy for example, we can see files like decorators.cpython-38.pyc and common.cpython-38-x86_64-linux-gnu.so. If I build numpy with pypy the identifier (cpython-38) changes to pypy36 and pypy36-pp73 respectively. Thus pypy won’t load CPython’s files. > > Perhaps we could have a package transformation option to turn a > > ‘python-build-system’ package into a pypy package? > ...Yes it could be nice to be able to change the "package builder" of > the build-system. (Obviously, without any guarantee that the build > would be correct for all combinatorial :-)) > The issue is the same for emacs vs emacs-next, GCC versions (without > saying gcc vs clang ;-)), OCaml 4.07 vs OCaml 4.09 etc.. > We already discussed this kind of issue when discussing "package parameters". I think that would be really helpful. What’s the status of this work? Is there a PoC I can extend to cover CPython vs. PyPy? Cheers, Lars