Skip to content

Commit

Permalink
Fix circular import (#2179)
Browse files Browse the repository at this point in the history
* Fix circular import

* Set Version: 1.0.359

---------

Co-authored-by: devops <[email protected]>
  • Loading branch information
tothtamas28 and devops authored Nov 16, 2023
1 parent 0f62d62 commit 4733156
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kevm-pyk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "kevm-pyk"
version = "1.0.358"
version = "1.0.359"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion kevm-pyk/src/kevm_pyk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
from typing import Final


VERSION: Final = '1.0.358'
VERSION: Final = '1.0.359'
1 change: 1 addition & 0 deletions kevm-pyk/src/kevm_pyk/kdist/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def build(self, output_dir: Path, deps: dict[str, Path], args: dict[str, Any]) -
enable_llvm_debug=enable_llvm_debug,
verbose=verbose,
ccopts=ccopts,
plugin_dir=deps['evm-semantics.plugin'],
debug_build=debug_build,
**self._kompile_args,
)
Expand Down
9 changes: 7 additions & 2 deletions kevm-pyk/src/kevm_pyk/kompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from pyk.ktool.kompile import HaskellKompile, KompileArgs, LLVMKompile, LLVMKompileType, MaudeKompile
from pyk.utils import run_process

from . import config, kdist
from . import config

if TYPE_CHECKING:
from collections.abc import Iterable
Expand Down Expand Up @@ -57,11 +57,16 @@ def kevm_kompile(
llvm_kompile_type: LLVMKompileType | None = None,
enable_llvm_debug: bool = False,
llvm_library: Path | None = None,
plugin_dir: Path | None = None,
debug_build: bool = False,
debug: bool = False,
verbose: bool = False,
) -> Path:
plugin_dir = kdist.get('evm-semantics.plugin')
if plugin_dir is None:
from . import kdist

plugin_dir = kdist.get('evm-semantics.plugin')

ccopts = list(ccopts) + _lib_ccopts(plugin_dir, debug_build=debug_build)
return run_kompile(
target,
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.358
1.0.359

0 comments on commit 4733156

Please sign in to comment.