[issue1412] make install on Mac OS X installs into an invalid site-packages

Brodie Rao mercurial-bugs at selenic.com
Wed Dec 3 12:48:23 CST 2008


New submission from Brodie Rao <dackze at gmail.com>:

Right now, running "make install" on OS X 10.5 with Apple's distribution of
Python correctly installs scripts and external data into /usr/local, but
incorrectly installs the Mercurial Python package into
/usr/local/lib/python2.5/site-packages, instead of
/Library/Python/2.5/site-packages, presenting the user with an ImportErorr when
they run hg. This also probably affects 10.4 and Python 2.3, and the python.org
distribution.

A solution would have to involve either not passing --prefix to setup.py, or
passing the correct --install-lib. Perhaps the Makefile could invoke python -c
[get default install lib], check to see if it doesn't start with /usr, and if it
doesn't, pass it with --install-lib to setup.py.

----------
messages: 8054
nosy: brodie
priority: bug
status: unread
title: make install on Mac OS X installs into an invalid site-packages
topic: macos, surprise

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1412>
____________________________________________________



More information about the Mercurial-devel mailing list