Nic0/tyrs — Issue #95: Unable to install on OSX.
Author: kezabelle
Created: 2011-11-08 21:46:13+00:00
State: open

The setup build/install script seems to be heavily opinionated in ways that make it hard to install tyrs on OSX. Specifically:

* When doing ```pip install tyrs``` the build will fail because the build tries to call out to __intltool-update__, which isn't part of the OSX toolchain - this can be circumvented by using [mxcl/homebrew](https://github.com/mxcl/homebrew) to do ```brew install intltool```.
* Once that is overcome, it seems the setup expects site-packages to be at a certain location:

```
running build_i18n
intltool-update -p -g tyrs
msgfmt po/es.po -o build/mo/es/LC_MESSAGES/tyrs.mo
msgfmt po/fr.po -o build/mo/fr/LC_MESSAGES/tyrs.mo
running install_lib
creating /usr/lib/python2.6/site-packages
error: could not create '/usr/lib/python2.6/site-packages': Permission denied
```

The default version of Python on a mac doesn't have site-packages in that directory, and I suspect those installed by fink/macports/homebrew may have different opinions on where it should be, too.

Running ```python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"``` yields __/Library/Python/2.6/site-packages__ rather than _/usr/lib/python2.6/site-packages_.

Similarly, attempting to install in a virtualenv (```virtualenv {anything} --no-site-packages```) provides the same error, indicating that it may be a problem for more than just the default Python installed on Macs.