Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyopencl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pyopencl
Commits
8e10b18f
Commit
8e10b18f
authored
3 years ago
by
Alexandru Fikl
Committed by
Andreas Klöckner
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
prefer platformdirs if available
parent
062c6a15
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#242304
failed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyopencl/cache.py
+5
-1
5 additions, 1 deletion
pyopencl/cache.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
6 additions
and
2 deletions
pyopencl/cache.py
+
5
−
1
View file @
8e10b18f
...
@@ -325,7 +325,11 @@ def _create_built_program_from_source_cached(ctx, src, options_bytes,
...
@@ -325,7 +325,11 @@ def _create_built_program_from_source_cached(ctx, src, options_bytes,
from
os.path
import
join
from
os.path
import
join
if
cache_dir
is
None
:
if
cache_dir
is
None
:
import
appdirs
try
:
import
platformdirs
as
appdirs
except
ImportError
:
import
appdirs
cache_dir
=
join
(
appdirs
.
user_cache_dir
(
"
pyopencl
"
,
"
pyopencl
"
),
cache_dir
=
join
(
appdirs
.
user_cache_dir
(
"
pyopencl
"
,
"
pyopencl
"
),
"
pyopencl-compiler-cache-v2-py{}
"
.
format
(
"
pyopencl-compiler-cache-v2-py{}
"
.
format
(
"
.
"
.
join
(
str
(
i
)
for
i
in
sys
.
version_info
)))
"
.
"
.
join
(
str
(
i
)
for
i
in
sys
.
version_info
)))
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
8e10b18f
...
@@ -257,7 +257,7 @@ def main():
...
@@ -257,7 +257,7 @@ def main():
install_requires
=
[
install_requires
=
[
"
numpy
"
,
"
numpy
"
,
"
pytools>=2021.2.7
"
,
"
pytools>=2021.2.7
"
,
"
app
dirs>=
1.4
.0
"
,
"
platform
dirs>=
2.2
.0
"
,
# "Mako>=0.3.6",
# "Mako>=0.3.6",
],
],
extras_require
=
{
extras_require
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment