Path: csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Ole Streicher Newsgroups: linux.debian.maint.python Subject: Re: platform.machine() on salsa i386 build? Date: Sat, 30 Oct 2021 23:40:02 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Sat Oct 30 21:30:09 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.352 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.249, KHOP_HELO_FCRDNS=0.399, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Lines: 28 X-Mailing-List: archive/latest/19472 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/87k0hufc96.fsf@poch Approved: robomod@news.nic.it Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 30 Oct 2021 23:12:21 +0200 X-Original-Message-ID: <87k0hufc96.fsf@poch> X-Original-References: <87fssi3drb.fsf@poch> <70c679a8-434a-44a0-18be-f440b4daf949@nileshpatra.info> Xref: csiph.com linux.debian.maint.python:13672 Hi Nilesh, Andrey, Nilesh Patra writes: > On 10/30/21 5:50 PM, Ole Streicher wrote: >> Hi, >> https://salsa.debian.org/debian-astro-team/pyraf/-/jobs/2130878#L2062 >> How can one find out the correct machine here? > > I just committed something to salsa -- sort of a hack, but it works > (i386 pipeline passes). I do this > for one of my other package as well. Please consider taking a look. Thank you, but I think I will not use it: This requires dpkg-dev (which is the package with dpkg-architecture) being installed, which I would not like to depend on just to have the possibility to test. I will rather follow Stefanos hint to use sys.implementation._multiarch, which is however hackish as well, since variables starting with "_" should not considered as part of the API, and this may break without warning. Optimal would be a way to detect whether the internal floating point processing happens with 80 bit FPU registers (i386) or 64 bit FPU registers (other systems), since this is the relevant difference here. Best regards Ole