ubuntu's platform.dist() always returns debian lenny/sid

Bug #196526 reported by Hein-PietervanBraam
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python
Fix Released
Unknown
python2.3 (Ubuntu)
Low
Unassigned
python2.4 (Ubuntu)
Low
Unassigned
python2.5 (Ubuntu)
Low
Unassigned
python2.6 (Ubuntu)
Low
Unassigned
python3.0 (Ubuntu)
Low
Unassigned

Bug Description

ubuntu's python platform module does not support ubuntu, it currently tries to read /etc/*._release (bit more than that, but doesn't really matter) and finds debian, and returns debian lenny/sid.
I think some extra heuristics have to be added to the platform module to allow ubuntu to be detected, perhaps through lsb_release?
alternatively, an ubuntu_release file should be added and that used.

Revision history for this message
Thomas Butter (tbutter) wrote :

There is a bug report at bugs.python.org and a patch for python 2.5.

http://bugs.python.org/issue1322

Changed in python2.5:
status: New → Confirmed
Changed in python2.5:
importance: Undecided → Low
status: Confirmed → Triaged
Changed in python2.4:
importance: Undecided → Low
status: New → Triaged
Changed in python2.3:
importance: Undecided → Low
status: New → Triaged
Changed in python:
status: Unknown → New
Revision history for this message
Matthias Klose (doko) wrote :

python2.3 is removed in recent Ubuntu releases

Changed in python2.3:
status: Triaged → Won't Fix
Matthias Klose (doko)
Changed in python2.6 (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in python3.0 (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python2.5 - 2.5.4-1ubuntu3

---------------
python2.5 (2.5.4-1ubuntu3) jaunty; urgency=low

  * Apply from the 2.5 release branch:
    - Issue #5389: Avoid potential for undefined variable 'startinpos' in
      PyUnicode_DecodeUTF7().
  * Re-add the locales build-dependency on sparc.
  * Backport fix for issue 4150 from the trunk. LP: #324708.
  * Use the information in /etc/lsb-release for platform.dist(). LP: #196526.

 -- Matthias Klose <email address hidden> Wed, 18 Mar 2009 16:52:47 +0100

Changed in python2.5:
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python2.6 - 2.6.1-1ubuntu3

---------------
python2.6 (2.6.1-1ubuntu3) jaunty; urgency=low

  * Use the information in /etc/lsb-release for platform.dist(). LP: #196526.
  * Fix typo in installation scheme, introduced in previous upload.

 -- Matthias Klose <email address hidden> Wed, 18 Mar 2009 19:44:34 +0100

Changed in python2.6:
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python2.4 - 2.4.6-1ubuntu3

---------------
python2.4 (2.4.6-1ubuntu3) jaunty; urgency=low

  * Use the information in /etc/lsb-release for platform.dist(). LP: #196526.

 -- Matthias Klose <email address hidden> Thu, 19 Mar 2009 10:40:35 +0100

Changed in python2.4:
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python3.0 - 3.0.1-0ubuntu7

---------------
python3.0 (3.0.1-0ubuntu7) jaunty; urgency=low

  * Update to 20090319 from the release30-maint branch.
  * Update installation schemes: LP: #338395.
    - When the --prefix option is used for setup.py install, Use the
      `unix_prefix' scheme.
    - Use the `deb_system' scheme if --install-layout=deb is specified.
    - Use the the `unix_local' scheme if neither --install-layout=deb
      nor --prefix is specified.
    - The options --install-layout=deb and --prefix are exclusive.
  * Use the information in /etc/lsb-release for platform.dist(). LP: #196526.

 -- Matthias Klose <email address hidden> Thu, 19 Mar 2009 10:55:01 +0100

Changed in python3.0:
status: Triaged → Fix Released
Changed in python:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.