Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#40928 - [python2] Python2 does not expose distribution name

Attached to Project: Arch Linux
Opened by Lubosz Sarnecki (lubosz) - Saturday, 21 June 2014, 18:41 GMT
Last edited by Felix Yan (felixonmars) - Sunday, 12 October 2014, 04:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Angel Velasquez (angvp)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Python2 does not expose distribution name. Python3 works though.
The distribution release name could also be changed to "rolling", as in "lsb_release -a".

Additional info:
* package version: 2.7.7-1
* https://docs.python.org/2/library/platform.html#platform.linux_distribution

Steps to reproduce:

$ python3
Python 3.4.1 (default, May 19 2014, 17:23:49)
[GCC 4.9.0 20140507 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.linux_distribution()
('arch', '', '')
>>>

$ python2
Python 2.7.7 (default, Jun 3 2014, 01:46:20)
[GCC 4.9.0 20140521 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.linux_distribution()
('', '', '')
>>>
This task depends upon

Closed by  Felix Yan (felixonmars)
Sunday, 12 October 2014, 04:18 GMT
Reason for closing:  Upstream
Additional comments about closing:  Please report to upstream if you think this need to be fixed for Python 2.x too.
Comment by Felix Yan (felixonmars) - Sunday, 22 June 2014, 03:26 GMT
It's an upstream issue, and they only fixed it for python 3.3+
http://bugs.python.org/issue11678

Loading...