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
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
|
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.
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.
http://bugs.python.org/issue11678