From fac2617b041ab951b8c1c62bd96ef78c58c182db Mon Sep 17 00:00:00 2001 From: MinRK Date: Thu, 31 May 2012 10:49:25 -0700 Subject: store inline cython in cache/inline allows orthogonal data to be put in the cache dir. default inline location unchanged (~.cython/inline), but get_cython_dir() is .cython, not .cython/inline. --- Cython/Build/Inline.py | 2 +- Cython/Utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cython/Build/Inline.py b/Cython/Build/Inline.py index ef9cf5c4f..a256d147e 100644 --- a/Cython/Build/Inline.py +++ b/Cython/Build/Inline.py @@ -96,7 +96,7 @@ def safe_type(arg, context=None): def cython_inline(code, get_type=unsafe_type, - lib_dir=get_cython_cache_dir(), + lib_dir=os.path.join(get_cython_cache_dir(), 'inline'), cython_include_dirs=['.'], force=False, quiet=False, diff --git a/Cython/Utils.py b/Cython/Utils.py index 3d8ed8eec..dec584c35 100644 --- a/Cython/Utils.py +++ b/Cython/Utils.py @@ -374,7 +374,7 @@ def get_cython_cache_dir(): 1. CYTHON_CACHE_DIR 2. (OS X): ~/Library/Caches/Cython (posix not OS X): XDG_CACHE_HOME/cython if XDG_CACHE_HOME defined - 3. ~/.cython/inline + 3. ~/.cython """ if 'CYTHON_CACHE_DIR' in os.environ: @@ -392,4 +392,4 @@ def get_cython_cache_dir(): return os.path.join(parent, 'cython') # last fallback: ~/.cython/inline - return os.path.expanduser(os.path.join('~', '.cython', 'inline')) + return os.path.expanduser(os.path.join('~', '.cython')) -- cgit v1.2.1