This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2014年01月31日 11:02 by fmoreau, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (7) | |||
|---|---|---|---|
| msg209764 - (view) | Author: Francis Moreau (fmoreau) | Date: 2014年01月31日 11:02 | |
On Archlinux:
$ python2.7 -c 'import platform; print(platform.linux_distribution())'
('', '', '')
This is because Archlinux is not part of the '_supported_dists' list.
Could Archlinux be added to this list ?
Thanks.
|
|||
| msg237626 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2015年03月09日 09:53 | |
Can Archlinux be added to _supported_dists as requested in msg209764, I've no understanding of the criteria involved here? |
|||
| msg241212 - (view) | Author: (ha034) | Date: 2015年04月16日 11:49 | |
Hey guys,
Just add:
if os.path.exists('/etc/arch-release'):
distname = 'arch'
in "_dist_try_harder"
then replace the old list with this one:
_supported_dists = (
'SuSE', 'debian', 'fedora', 'redhat', 'centos',
'mandrake', 'mandriva', 'rocks', 'slackware', 'yellowdog', 'gentoo',
'UnitedLinux', 'turbolinux', 'arch')
And that's it, it works.
|
|||
| msg241280 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2015年04月16日 21:59 | |
Since the direction we are heading seems to toward deprecating linux_distribution (see http://bugs.python.org/issue1322#msg207427), I think this issue should be closed. |
|||
| msg244927 - (view) | Author: Nathan Ringo (Nathan Ringo) * | Date: 2015年06月06日 20:24 | |
The problem is, existing software (Ansible) relies on linux_distribution() |
|||
| msg317687 - (view) | Author: Petr Viktorin (petr.viktorin) * (Python committer) | Date: 2018年05月25日 17:17 | |
linux_distribution is removed in Python 3.7. Closing. |
|||
| msg317689 - (view) | Author: Petr Viktorin (petr.viktorin) * (Python committer) | Date: 2018年05月25日 17:20 | |
Er, sorry, I meant in 3.8. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:57 | admin | set | github: 64653 |
| 2018年05月25日 17:20:40 | petr.viktorin | set | messages: + msg317689 |
| 2018年05月25日 17:17:01 | petr.viktorin | set | status: open -> closed nosy: + petr.viktorin messages: + msg317687 resolution: out of date stage: resolved |
| 2016年01月04日 20:36:37 | eric.smith | link | issue26008 superseder |
| 2015年06月06日 20:24:17 | Nathan Ringo | set | messages: + msg244927 |
| 2015年06月06日 20:15:16 | berker.peksag | set | nosy:
+ Nathan Ringo |
| 2015年06月06日 20:14:47 | berker.peksag | link | issue24399 superseder |
| 2015年04月16日 21:59:41 | r.david.murray | set | nosy:
+ r.david.murray messages: + msg241280 |
| 2015年04月16日 11:49:42 | ha034 | set | nosy:
+ ha034 messages: + msg241212 |
| 2015年03月09日 09:53:59 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg237626 |
| 2014年01月31日 11:03:13 | fmoreau | set | type: behavior |
| 2014年01月31日 11:02:45 | fmoreau | create | |