Skip to content

pip should use the distro module: platform.linux_distribution() has been deprecated in Python 3.5 #3823

@vstinner

Description

@vstinner
  • Pip version: development version
  • Python version: 3.5
  • Operating System: Fedora 24

Description:

"pip install PrettyTable" logs a PendingDeprecationWarning because platform.linux_distribution() has been deprecated in Python 3.5:

.../pip/download.py:93: PendingDeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  zip(["name", "version", "id"], platform.linux_distribution()),

I suggest to replace the function with the distro module:

FYI platform.linux_distribution() and platform.dist() have been deprecated by https://bugs.python.org/issue1322

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationtype: enhancementImprovements to functionality

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions