From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8E5DF138334 for ; Thu, 3 Jan 2019 21:39:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F2A4E0A7D; Thu, 3 Jan 2019 21:39:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 43A97E069C for ; Thu, 3 Jan 2019 21:39:47 +0000 (UTC) Received: from symphony.aura-online.co.uk (154.189.187.81.in-addr.arpa [81.187.189.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: chewi) by smtp.gentoo.org (Postfix) with ESMTPSA id 4DA7D335D0F for ; Thu, 3 Jan 2019 21:39:46 +0000 (UTC) From: James Le Cuirot To: gentoo-dev Subject: [gentoo-dev] [PATCH] Eclass changes for cross-compiling Python modules Date: Thu, 3 Jan 2019 21:39:12 +0000 Message-Id: <20190103213924.22835-1-chewi@gentoo.org> X-Mailer: git-send-email 2.19.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 6fc7e4a9-d5e2-42be-8b46-42bf47b35a3e X-Archives-Hash: 1247c3e74c8f4faab7d02b5141fed1a9 Here's a series of eclass changes I've been working on since August to allow Python modules to be cross-compiled. We previously believed this to be practically impossible without significant changes upstream and in the wider Python ecosystem so getting here feels like quite an achievement. While the approach is a little unconventional, it doesn't feel overly hacky and the results are quite consistently good. These changes should also benefit prefix and I did a full prefix bootstrap for the first time this week just to make sure I didn't break it. A handful of other Python packages that don't quite follow the usual mantra have needed fixing up. I haven't included those changes here but you can view them on this GitHub pull request. https://github.com/gentoo/gentoo/pull/9822 Once this is in place, I can finish my long-awaited revamp of my cross-boss project that will allow you to cross-compile @system from scratch with very little effort.