Commit 21b9ae93 authored by Julian Rüth's avatar Julian Rüth

CYTHON_CACHE_DIR also sets the compiler cache

so far only the inline cache looked at that environment variable
parent 5bd3fd90
...@@ -582,7 +582,7 @@ class CompilationOptions(object): ...@@ -582,7 +582,7 @@ class CompilationOptions(object):
if 'formal_grammar' in directives and 'formal_grammar' not in kw: if 'formal_grammar' in directives and 'formal_grammar' not in kw:
options['formal_grammar'] = directives['formal_grammar'] options['formal_grammar'] = directives['formal_grammar']
if options['cache'] is True: 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) self.__dict__.update(options)
......
...@@ -360,7 +360,8 @@ def long_literal(value): ...@@ -360,7 +360,8 @@ def long_literal(value):
@cached_function @cached_function
def get_cython_cache_dir(): def get_cython_cache_dir():
"""get the cython cache dir r"""
Return the base directory containing Cython's caches.
Priority: 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