Installing Mercurial on Mac OS X 10.6 Snow Leopard
我从来文方处安装了Mercurial 1.3.1。
cd ~/src
curl -O https://www.mercurial-scm.org/release/mercurial-1.3.1.tar.gz
tar -xzvf mercurial-1.3.1.tar.gz
cd mercurial-1.3.1
make all
sudo make install
这在<代码>/usr/ local/lib/python2.6/site- Packages/上安装了Mecurial的现场包装档案。 我知道,将Mercurial从Mac Disk图像中安装,将把档案安装在/Library/Python/2.6/site- Packages/
上,该编码是麦克斯X射线安装现场包装目录。
我已安装了Adal 2.6.2+作为框架,其现场包装目录如下:
图书馆/Framework/Python.framework/Versions/2.6/lib/python2.6/site- Package
我不得不通过这一方式发出:
PYTHONPATH=/usr/ local/lib/python2.6/site- Packages:“${PYTHONPATH}”
为了让雇佣军工作。
Questions
- How can I install Mercurial from source with the site-packages in a different directory?
- Is there an advantage or disadvantage to having the site-packages in the current location? Would it be better in one of the Python site-package directories that already exist?
- Do I need to be concerned about virtualenv working correctly since I have modified PYTHONPATH (or any other conflicts for that matter)?