Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13673

Re: platform.machine() on salsa i386 build?

Path csiph.com!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!3.eu.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Thomas Goirand <zigo@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: platform.machine() on salsa i386 build?
Date Sun, 31 Oct 2021 02:20:02 +0200
Message-ID <De6JQ-Jb-5@gated-at.bofh.it> (permalink)
References <DdVY6-22h-9@gated-at.bofh.it> <De1Au-5Jz-1@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Oct 31 00:14:12 2021
Old-Return-Path <zigo@debian.org>
X-Amavis-Spam-Status No, score=-7.001 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, NICE_REPLY_A=-0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -3.5
Organization Debian
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Language en-US
Content-Transfer-Encoding 7bit
X-Mailing-List <debian-python@lists.debian.org> archive/latest/19473
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/8ca58151-cfa4-3ea6-0446-f7a0f703e51c@debian.org
Approved robomod@news.nic.it
Lines 18
Sender robomod@news.nic.it
X-Original-Date Sun, 31 Oct 2021 02:13:53 +0200
X-Original-Message-ID <8ca58151-cfa4-3ea6-0446-f7a0f703e51c@debian.org>
X-Original-References <87fssi3drb.fsf@poch> <YX2SVu7hfsbFPalA@belkar.wrar.name>
Xref csiph.com linux.debian.maint.python:13673

Show key headers only | View raw


On 10/30/21 8:43 PM, Andrey Rahmatullin wrote:
> On Sat, Oct 30, 2021 at 02:20:40PM +0200, Ole Streicher wrote:
>> I have a package (pyraf) where I need to switch off some tests for i386
>> (but not for other 32-bit platforms). I do this by
>>
>> import platform
>> is_i386 = platform.machine() in ('i386', 'i486', 'i586', 'i686')
> Yup, this is incorrect. This is the same as `uname -m` and so returns the
> kernel architecture.
> If you want to do this purely at the upstream side without checking
> DEB_HOST_ARCH, AFAIK there is no 100% reliable way to do this.

I would also advise to use DEB_HOST_ARCH... Maybe with some fallbacks if
you wish to upstream it?

Cheers,

Thomas Goirand (zigo)

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

platform.machine() on salsa i386 build? Ole Streicher <olebole@debian.org> - 2021-10-30 14:50 +0200
  Re: platform.machine() on salsa i386 build? Andrey Rahmatullin <wrar@debian.org> - 2021-10-30 20:50 +0200
    Re: platform.machine() on salsa i386 build? Thomas Goirand <zigo@debian.org> - 2021-10-31 02:20 +0200
  Re: platform.machine() on salsa i386 build? Nilesh Patra <nilesh@nileshpatra.info> - 2021-10-30 21:30 +0200
    Re: platform.machine() on salsa i386 build? Ole Streicher <olebole@debian.org> - 2021-10-30 23:40 +0200
  Re: platform.machine() on salsa i386 build? Stefano Rivera <stefanor@debian.org> - 2021-10-30 21:50 +0200

csiph-web