Re: [Cython] [PATCH 1/2] Move ~/.pyxbld to $XDG_CACHE_HOME/pyxbld

2015-04-29 Thread Emmanuel Gil Peyrot
Actually, I think it’d be better to move the pyxbld directory directly under the cython cache directory, as it is part of cython itself. Here is an attached patch updated with this behaviour. -- Emmanuel Gil Peyrot [PATCH 1/2] Move ~/.pyxbld to $XDG_CACHE_HOME/cython/pyxbld --- pyximport/pyxim

[Cython] [PATCH 2/2] Make the Cython cache directory fallback to ~/.cache/cython if $XDG_CACHE_HOME isn’t set

2015-04-29 Thread Emmanuel Gil Peyrot
--- Cython/Utils.py | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Cython/Utils.py b/Cython/Utils.py index 22f6db7..563989f 100644 --- a/Cython/Utils.py +++ b/Cython/Utils.py @@ -327,7 +327,8 @@ def get_cython_cache_dir(): 1. CYTHON_CACHE_DIR 2. (OS X): ~/Libr

[Cython] [PATCH 1/2] Move ~/.pyxbld to $XDG_CACHE_HOME/pyxbld

2015-04-29 Thread Emmanuel Gil Peyrot
--- pyximport/pyximport.py | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pyximport/pyximport.py b/pyximport/pyximport.py index 4fd7fe9..710c5eb 100644 --- a/pyximport/pyximport.py +++ b/pyximport/pyximport.py @@ -466,9 +466,10 @@ def install(pyximport=True, pyimp