Author vstinner
Recipients christian.heimes, cstratak, doko, matrixise, pmpp, r.david.murray, vstinner
Date 2020-11-24.13:52:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606225959.42.0.0374466740502.issue28468@roundup.psfhosted.org>
In-reply-to
Content
pmp-p:
> android and aosp, termux are also linux distributions without /etc/os-release

I replied ealier. It's fine that platform.freedesktop_os_release() (I prefer a name with two underscores :-)) raises an error on embedded Linux distributions. Usually, when you work on embedded devices, you fully control your toolkit and what is shipped on it.

For Android, there is already https://docs.python.org/dev/library/sys.html#sys.getandroidapilevel function.

Open question: is Android a Linux distribution? ;-)


> the only thing reliable there is probably sysconfig.get_config_vars('MULTIARCH') when properly used.

It looks unrelated. It doesn't provide the Linux distribution name or version.
History
Date User Action Args
2020-11-24 13:52:39vstinnersetrecipients: + vstinner, doko, christian.heimes, r.david.murray, pmpp, matrixise, cstratak
2020-11-24 13:52:39vstinnersetmessageid: <1606225959.42.0.0374466740502.issue28468@roundup.psfhosted.org>
2020-11-24 13:52:39vstinnerlinkissue28468 messages
2020-11-24 13:52:39vstinnercreate