Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
21b9ae93
Commit
21b9ae93
authored
May 04, 2018
by
Julian Rüth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CYTHON_CACHE_DIR also sets the compiler cache
so far only the inline cache looked at that environment variable
parent
5bd3fd90
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+1
-1
Cython/Utils.py
Cython/Utils.py
+2
-1
No files found.
Cython/Compiler/Main.py
View file @
21b9ae93
...
@@ -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
)
...
...
Cython/Utils.py
View file @
21b9ae93
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment