Re: RFS: python-cartopy/0.14.2-2
- To: Jerome Kieffer <Jerome.Kieffer@esrf.fr>, James Clarke <jrtc27@debian.org>
- Cc: debian-science@lists.debian.org
- Subject: Re: RFS: python-cartopy/0.14.2-2
- From: Ghislain Vaillant <ghisvail@gmail.com>
- Date: Thu, 02 Feb 2017 20:07:16 +0000
- Message-id: <[🔎] 1486066036.23674.31.camel@gmail.com>
- In-reply-to: <1484836103.18572.66.camel@gmail.com>
- References: <e01e537b-4a5b-8ed7-644f-7007ba1d9686@gmail.com> <1484680952.18572.12.camel@gmail.com> <20170117194412.GA17698@Jamess-MacBook.local> <CAFzxpWrYE8OjtB+13A7oLAe_vbV-B44WQEGktyGBth3MBQfMow@mail.gmail.com> <CAFzxpWpA8UsQiruV0_Mtzx8N6dBnVCbyeP35RMQ2RXkzcn7xQQ@mail.gmail.com> <CAFzxpWrsV2NvDpiB5eCz1X-Ka2yddHwV_QoaBVYHoHex+2+0Jg@mail.gmail.com> <20170117203943.GA21968@Jamess-MacBook.local> <1484696177.18572.26.camel@gmail.com> <1484826618.18572.54.camel@gmail.com> <20170119142920.45afda94@lintaillefer.esrf.fr> <A11C73DB-3605-413C-B8D1-EC6B4EF123E3@debian.org> <20170119151724.4611ad0a@lintaillefer.esrf.fr> <1484836103.18572.66.camel@gmail.com>
On Thu, 2017-01-19 at 14:28 +0000, Ghislain Vaillant wrote:
> On Thu, 2017-01-19 at 15:17 +0100, Jerome Kieffer wrote:
> > On Thu, 19 Jan 2017 14:13:24 +0000
> > James Clarke <jrtc27@debian.org> wrote:
> >
> > > On 19 Jan 2017, at 13:29, Jerome Kieffer <Jerome.Kieffer@esrf.fr> wrote:
> > > >
> > > > On Thu, 19 Jan 2017 11:50:18 +0000
> > > > Ghislain Vaillant <ghisvail@gmail.com> wrote:
> > > >
> > > >
> > > > > > > Then there's the additional complication that x32 is a 32-bit version of
> > > > > > > amd64, so it shouldn't fail the test. Therefore, I would propose
> > > > > > > something like the following Debian-specific hack:
> > > > > > >
> > > > > > > host_cpu = subprocess.check_output(['dpkg-architecture', '-qDEB_HOST_ARCH_CPU'])
> > > > > > > if host_cpu != 'i386':
> > > > > > > # Do the assert
> > > >
> > > > Have you tried platfrom.machine ? it return either "i386" or "i686"
> > > >
> > > > It is cleaner but I don't know how it behaves with an "x32" kernel.
> > >
> > > That doesn't help with i386 (or x32) chroots on an amd64 kernel.
> > >
> > > root@debian:/# uname -a
> > > Linux debian 4.9.0-1-amd64 #1 SMP Debian 4.9.2-2 (2017-01-12) x86_64 GNU/Linux
> > > root@debian:/# dpkg-architecture -qDEB_HOST_ARCH_CPU
> > > i386
> > > root@debian:/# python3 -c "import platform; print(platform.machine())"
> > > x86_64
> >
> > If one wants to know if you are running a python in 32 or 64 bits:
> >
> > python -c "print(tuple.__itemsize__*8)"
> >
> > This is independent on the operating system.
> > Cheers,
>
> We are interested in a *subset* of all 32-bit architectures (i386
> family).
I pushed and tagged a revised version, and successfully tested it on
dom for i386 [2].
[1] https://anonscm.debian.org/git/debian-science/packages/python-cartopy.git
[2] http://debomatic-i386.debian.net/distribution#unstable/python-cartopy/0.14.2+dfsg1-2/buildlog
Could any of you look at it and upload, please?
Thanks,
Ghis
Reply to: