Commit a59bda8c authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Merge pull request #2236 from saraedum/configurable-cache

CYTHON_CACHE_DIR should also set the compiler cache
parents f002e31c 21b9ae93
......@@ -582,7 +582,7 @@ class CompilationOptions(object):
if 'formal_grammar' in directives and 'formal_grammar' not in kw:
options['formal_grammar'] = directives['formal_grammar']
if options['cache'] is True:
options['cache'] = os.path.expanduser("~/.cycache")
options['cache'] = os.path.join(Utils.get_cython_cache_dir(), 'compiler')
self.__dict__.update(options)
......
......@@ -360,7 +360,8 @@ def long_literal(value):
@cached_function
def get_cython_cache_dir():
"""get the cython cache dir
r"""
Return the base directory containing Cython's caches.
Priority:
......
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