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.

Author jorendorff
Recipients jorendorff
Date 2008-04-15.20:34:34
SpamBayes Score 0.05353761
Marked as misclassified No
Message-id <1208291676.15.0.165300999847.issue2641@psf.upfronthosting.co.za>
In-reply-to
Content
On my Mac, /usr/local/bin/python2.5 is a symlink to
"../../../Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5".

When I install Mercurial from source, the "mercurial" package is
installed at "/usr/local/lib/python2.5/site-packages/mercurial", so the
installation is broken.  Since "site-packages" appears nowhere in the
Mercurial source tree, I think it's setuptools (not Mercurial) that is
getting this wrong.

Mercurial's setup.py can be seen here:

(as of this writing)
http://hg.intevation.org/mercurial/crew/file/628da4a91628/setup.py

(the latest)
http://hg.intevation.org/mercurial/crew/file/tip/setup.py

I'm not sure what the Right Thing would be, but if it's agreed that the
current behavior is a hack, then `(p for p in sys.path if
p.endswith('site-packages')).next()`, falling back to the current
behavior, seems like a better hack.

Happy to patch, if someone can advise me; MvL?
History
Date User Action Args
2008-04-15 20:34:36jorendorffsetspambayes_score: 0.0535376 -> 0.05353761
recipients: + jorendorff
2008-04-15 20:34:36jorendorffsetspambayes_score: 0.0535376 -> 0.0535376
messageid: <1208291676.15.0.165300999847.issue2641@psf.upfronthosting.co.za>
2008-04-15 20:34:35jorendorfflinkissue2641 messages
2008-04-15 20:34:34jorendorffcreate