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

2021-10-30 Thread Thomas Goirand
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

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

2021-10-30 Thread Ole Streicher
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

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

2021-10-30 Thread Stefano Rivera
Hi Ole (2021.10.30_12:20:40_+) > How can one find out the correct machine here? sys.implementation._multiarch will return the Debian multiarch tuple that python was built for. SR -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272

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

2021-10-30 Thread Nilesh Patra
Hi Ole, 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

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

2021-10-30 Thread Andrey Rahmatullin
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

platform.machine() on salsa i386 build?

2021-10-30 Thread Ole Streicher
Hi, 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') [...] @pytest.mark.skipif(is_i386, reason='diff is not identical on i386') def