Skip to content

Commit

Permalink
Recognize new name of Graal-based Python as jitted (#139)
Browse files Browse the repository at this point in the history
`sys.implementation.name` was changed in recent Graal nightlies.
  • Loading branch information
timfel committed Aug 25, 2022
1 parent 5f7fe38 commit 0ef21a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyperf/_utils.py
Expand Up @@ -205,7 +205,7 @@ def python_has_jit():
implementation_name = python_implementation()
if implementation_name == 'pypy':
return sys.pypy_translation_info["translation.jit"]
elif implementation_name == 'graalpython':
elif implementation_name in ['graalpython', 'graalpy']:
return True
elif hasattr(sys, "pyston_version_info") or "pyston_lite" in sys.modules:
return True
Expand Down

0 comments on commit 0ef21a1

Please sign in to comment.