Re: distutils.util.get_host_platform() and AIX

Michael <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <[email protected]>
On 01/08/2019 11:07, Michael wrote:
> So, to my question: currently, for AIX get_host_platform returns
> something such as: aix-6.1.
>
> Considering above: what would you - as more expericenced with
> multi-oslevel packaging and low levels are accepted by high-levels, but
> not v.v.
> "What should the AIX get_host_platform() string contain?"
>
> At a minimum I forsee:        return "%s-%s.%s-%s" % (osname, version,
> release, platform.architecture()[0])
>
> But this does not address potential issues where the TL level within a
> version.release has changed. (X.Y.TL5 built packages MIGHT work on
> X.YTL4, but there is no reason to expect them to.
>
> So, I would look to something that remains recognizable, but uses
> different 'punctuation'
>
> e.g., oslevel -s returns a string such as: 6100-09-10-1731
>
> Then using the equivalent of:
>
> version, release, service, builddata = '6100-09-10-1731'.split('-')
>
> return "%s-%s.%s.%s-%s" % (osname, version, release, service,
> platform.architecture()[0])

What I forgot to mention - there is likely incompatibilities when
different compilers are used. This is definetly the case when source
files need a C compiler - and I fear that the different run-time
environments of gcc versus xlc (which does not need/link to glibc).

So, how does, e.g., macos account for differences between clang and gcc
compiled executables and modules. Or are both compilers "gnu" oriented?

Michael

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/OZX3XG33TZ5GVBL4VMNPH3YFJZC7B27Z/
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE4MC4YtVFAh73PAYk4vWDeFkjp+AFAl1D4A0ACgkQ4vWDeFkj
p+BNHwgAmW1vZK9AfV8Jf20n63vUBxd66s2J1umadq9y1zETV455XdMP/2A/+0gI
z+iH3mnIClicWUsMDo5bES33xZbQPPh6IoGodtDIub6bSbt5+VS4vN9AmUpCr4z1
d0uW1YXOdM59nk4QkARVMA8TrUrVdv55orRKF1RG7P9sbAWT70TQHIaX3ptqe9fX
QaXjkWMT6ZN2PdqZwRUqFZ0GobhyFG9mhYvCEF9lZQxuTsxspMYJr4y5Kj/JyDuY
udy7g5cl6Zpy0HUn1fxiBjx1nvvjNuH+LaD5oBdhuhghvEzg63HL2xkMD8pw0Vzr
D0ln3xkE8O0Sxpy9pB+pO6VTWJgSwA==
=ABBI
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.