Commit fac2617b authored by MinRK's avatar MinRK

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.
parent 82b1c99b
......@@ -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,
......
......@@ -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'))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment