cython/cython — pull request #128 by minrk (2012-05-31 04:41:08+00:00)
Title: add CYTHON_CACHE_DIR env

resolution for the Cython cache dir:

1. CYTHON_CACHE_DIR env if defined
2. platform cache dir
- (OS X): ~/Library/Caches/Cython if ~/Library/Caches exists
- (posix not OS X): XDG_CACHE_HOME/cython if XDG_CACHE_HOME defined
3. ~/.cython/inline

Possible alterations:

* This only uses XDG_CACHE_HOME if it is defined, rather than using its default interpretation of '~/.cache', which is an easy change.
* I'd be happy to add a Windows-appropriate cache dir if anyone knows of one and/or cares.
* skip the platform cache dirs, and just do CYTHON_CACHE_DIR or ~/.cython/inline

per [ML discussion](https://groups.google.com/forum/?fromgroups#!topic/cython-users/FonB2n_2l8c)