Marc-Andre Lemburg added the comment:
See issue1322
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9514
___
Jason Robinson added the comment:
platform.linux_distribution is being deprecated in 3.5 and removed in 3.6 as
stated in comment http://bugs.python.org/issue1322#msg207427 in issue #1322
I'm guessing this issue should be closed when that patch is merged in?
--
nosy: +ezio.melotti,
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
stage: - needs patch
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9514
___
Matthias Klose added the comment:
http://www.freedesktop.org/software/systemd/man/os-release.html
is the next step, with the advantage of the definition of the file format for
/etc/os-release.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Debian and Ubuntu use this patch:
http://patch-tracker.debian.org/patch/series/view/python3.2/3.2.3~rc1-1/platform-lsbrelease.diff
--
versions: +Python 3.3 -Python 3.1
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Please could you attach a Mandriva lsb-release file?
$ cat /etc/lsb-release
LSB_VERSION=lsb-4.0-amd64:lsb-4.0-noarch
DISTRIB_ID=MandrivaLinux
DISTRIB_RELEASE=2010.1
DISTRIB_CODENAME=Henry_Farman
DISTRIB_DESCRIPTION=Mandriva Linux 2010.1
$ cat
Marc-Andre Lemburg m...@egenix.com added the comment:
I think we'll start to use the lsb_release command if available and as
suggested in issue1322.
Note that if you test the API, make sure that you use a Python build from
sources available on python.org - the Debian and Ubuntu packagers tend
Matthias Klose d...@debian.org added the comment:
IMO using lsb_release is not an option, because it can take some time to
complete. So maybe it's better for the Ubuntu change to guard the check with
the existance of /etc/debian_version.
Please could you attach a Mandriva lsb-release file?
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9514
___
___
Python-bugs-list mailing
New submission from Antoine Pitrou pit...@free.fr:
At least on one of the buildbots:
Re-running test 'test_ssl' in verbose mode
test_ssl: testing with 'OpenSSL 0.9.8o 01 Jun 2010' (0, 9, 8, 15, 15)
under Linux ('debian', 'squeeze/sid', '')
at the bottom of
Simon Cross hodges...@gmail.com added the comment:
I can confirm that I see the ('debian', 'squeeze/sid', '') on py3k and trunk
but that the Python 2.6 under Ubuntu reports ('Ubuntu', '10.04', 'lucid').
--
___
Python tracker rep...@bugs.python.org
Simon Cross hodges...@gmail.com added the comment:
I think the problem might be that linux_distribution() reads
/etc/debian_version first. The contents of the relevant files in /etc look like:
$ cat /etc/debian_version
squeeze/sid
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
Simon Cross hodges...@gmail.com added the comment:
Patch attached to check /etc/lsb-release before checking other files. Taken
from Ubuntu Python 2.6 copy of platform.py. Applies against trunk (r83728) with
a small offset against py3k (r83728).
--
keywords: +patch
Added file:
Antoine Pitrou pit...@free.fr added the comment:
FWIW, the output is a bit different here before the patch:
$ ./python -c import platform; print(platform.linux_distribution())
('Mandriva Linux', '2010.1', 'Official')
and after the patch:
$ ./python -c import platform;
Simon Cross hodges...@gmail.com added the comment:
I think the intended means of accessing this information is via the lsb_release
command
(http://refspecs.freestandards.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/lsbrelease.html).
That said, I don't know if the file format will change
Raghuram Devarakonda draghu...@gmail.com added the comment:
Please check issue1322 for past discussion on similar topic (usability of
lsb_release in platform.py).
--
nosy: +draghuram
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +dmalcolm
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9514
___
___
Python-bugs-list mailing
17 matches
Mail list logo