Skip to content

Commit

Permalink
Fix import of loopy.version
Browse files Browse the repository at this point in the history
Mysteriously, this fixes a doc build failure in grudge with a backtrace saying

  File /home/runner/work/grudge/grudge/.conda-root/envs/testing/lib/python3.11/site-packages/loopy/kernel/creation.py, line 2329, in <dictcomp>
    getattr(loopy.version, lvs): lvs
            ^^^^^^^^^^^^^
AttributeError: module 'loopy' has no attribute 'version'
  • Loading branch information
inducer committed Aug 21, 2023
1 parent 250758b commit 3124123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loopy/kernel/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
from pytools import ProcessLogger

from sys import intern
import loopy.version

import re

Expand Down Expand Up @@ -2325,8 +2324,9 @@ def make_function(domains, instructions, kernel_data=None, **kwargs):

from loopy.version import LANGUAGE_VERSION_SYMBOLS

import loopy.version as v
version_to_symbol = {
getattr(loopy.version, lvs): lvs
getattr(v, lvs): lvs
for lvs in LANGUAGE_VERSION_SYMBOLS}

lang_version = kwargs.pop("lang_version", None)
Expand Down

0 comments on commit 3124123

Please sign in to comment.