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
Kirill Smelkov
cython
Commits
b24ea416
Commit
b24ea416
authored
Dec 11, 2013
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use default location ~/.cycache when cython cache is set to True.
parent
8931a015
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+1
-1
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+5
-0
No files found.
Cython/Build/Dependencies.py
View file @
b24ea416
...
...
@@ -670,7 +670,7 @@ def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, fo
if
'include_path'
not
in
options
:
options
[
'include_path'
]
=
[
'.'
]
if
'common_utility_include_dir'
in
options
:
if
'cache'
in
options
:
if
options
.
get
(
'cache'
)
:
raise
NotImplementedError
,
"common_utility_include_dir does not yet work with caching"
if
not
os
.
path
.
exists
(
options
[
'common_utility_include_dir'
]):
os
.
makedirs
(
options
[
'common_utility_include_dir'
])
...
...
Cython/Compiler/Main.py
View file @
b24ea416
...
...
@@ -481,6 +481,11 @@ class CompilationOptions(object):
options
[
'compiler_directives'
]
=
directives
if
'language_level'
in
directives
and
'language_level'
not
in
kw
:
options
[
'language_level'
]
=
int
(
directives
[
'language_level'
])
if
'cache'
in
options
:
if
options
[
'cache'
]
is
True
:
options
[
'cache'
]
=
os
.
path
.
expanduser
(
"~/.cycache"
)
elif
options
[
'cache'
]
in
(
False
,
None
):
del
options
[
'cache'
]
self
.
__dict__
.
update
(
options
)
...
...
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