Hardcodes libdir (including "python2.6") in hg script

Bug #745250 reported by Daniel Hahler
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mercurial (Debian)
Fix Released
Unknown
mercurial (Ubuntu)
Fix Released
Medium
Stefano Rivera

Bug Description

Binary package hint: mercurial

I've run into an issue where /usr/lib/python2.6/dist-packages/io.py has been used by hg, because the /usr/bin/hg contains:
    libdir = '../lib/python2.6/dist-packages/'

This is a feature of mercurial's setup.py that doesn't combine well with multiple supported python versions. When python-stats is installed (it provides a module called io) this breaks mercurial.

Daniel Hahler (blueyed)
Changed in mercurial (Ubuntu):
importance: Undecided → High
Revision history for this message
Daniel Hahler (blueyed) wrote :

For reference, here's the issue I've ran into: http://paste.ubuntu.com/587028/

description: updated
Changed in mercurial (Ubuntu):
assignee: nobody → Stefano Rivera (stefanor)
Changed in mercurial (Ubuntu):
importance: High → Medium
status: New → Confirmed
summary: - Rebuild for/with Python 2.7
+ Hardcodes libdir (including "python2.6") in hg script
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mercurial - 1.7.5-1ubuntu1

---------------
mercurial (1.7.5-1ubuntu1) natty; urgency=low

  * deb_specific__disable_libdir_replacement.patch [from 1.8.1-3]:
    Disable @LIBDIR@ replacement in the hg script, by setup.py (LP: #745250)
 -- Stefano Rivera <email address hidden> Thu, 31 Mar 2011 00:40:39 +0200

Changed in mercurial (Ubuntu):
status: Confirmed → Fix Released
Changed in mercurial (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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