Re: [Python-Dev] Is distutils.util.get_platform() the "current" or the "target" platform

2019-02-20 Thread Paul Monson via Python-Dev
ruary 19, 2019 12:06 PM To: Steve Dower ; python-dev@python.org Subject: Re: [Python-Dev] Is distutils.util.get_platform() the "current" or the "target" platform > [Any reason for dropping python-dev?] Sorry. just clicked the wrong button. > And the answer is a resound

Re: [Python-Dev] Is distutils.util.get_platform() the "current" or the "target" platform

2019-02-19 Thread Xavier de Gaye
[Any reason for dropping python-dev?] Sorry. just clicked the wrong button. And the answer is a resounding "yes, it returns the target platform"? It seems you're saying this, but the wording of your email sounds just enough of a question that I'm not sure whether you are definitively answeri

Re: [Python-Dev] Is distutils.util.get_platform() the "current" or the "target" platform

2019-02-16 Thread Steve Dower
On 16Feb.2019 0831, Nick Coghlan wrote: > On Sat, 16 Feb 2019 at 08:06, Steve Dower wrote: >> I'm inclined to say that nobody but us uses this API :) Does that make >> it seem more okay to "clarify" that it's returning target platform? > > I've always treated the situation as "Cross-compilation d

Re: [Python-Dev] Is distutils.util.get_platform() the "current" or the "target" platform

2019-02-16 Thread Nick Coghlan
On Sat, 16 Feb 2019 at 08:06, Steve Dower wrote: > I'm inclined to say that nobody but us uses this API :) Does that make > it seem more okay to "clarify" that it's returning target platform? I've always treated the situation as "Cross-compilation doesn't work, build on the target platform, using

Re: [Python-Dev] Is distutils.util.get_platform() the "current" or the "target" platform

2019-02-15 Thread Gregory P. Smith
On Fri, Feb 15, 2019 at 2:02 PM Steve Dower wrote: > On 14Feb2019 1147, Gregory P. Smith wrote: > > To alleviate confusion long term I'd love it if we could deprecate the > > unqualified get_platform() API and point people towards always being > > explicit about get_target_platform() vs get_curre

Re: [Python-Dev] Is distutils.util.get_platform() the "current" or the "target" platform

2019-02-15 Thread Steve Dower
On 14Feb2019 1147, Gregory P. Smith wrote: To alleviate confusion long term I'd love it if we could deprecate the unqualified get_platform() API and point people towards always being explicit about get_target_platform() vs get_current_platform(). This is an option too, though it doesn't reduce

Re: [Python-Dev] Is distutils.util.get_platform() the "current" or the "target" platform

2019-02-14 Thread Gregory P. Smith
On Thu, Feb 14, 2019 at 11:38 AM Steve Dower wrote: > As part of adding ARM32 support for Windows, we need to enable > cross-compilation in distutils. This is easy enough, though it requires > somehow getting the target platform as well as the current platform. > > Right now, the change at https:

[Python-Dev] Is distutils.util.get_platform() the "current" or the "target" platform

2019-02-14 Thread Steve Dower
As part of adding ARM32 support for Windows, we need to enable cross-compilation in distutils. This is easy enough, though it requires somehow getting the target platform as well as the current platform. Right now, the change at https://github.com/python/cpython/pull/11774 adds a get_target_pl