Skip to content

Commit 7c95570

Browse files
authored
resolve packages py wrapper (#59)
1 parent cfca092 commit 7c95570

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

packages/PyJuliaMPBSolver/PyJuliaMPBSolver/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ def _import_juliacall():
99
import juliacall
1010

1111

12+
def _juliapkg_resolve():
13+
from juliapkg import resolve
14+
15+
resolve()
16+
17+
1218
_import_juliacall()
1319

1420
from juliacall import Main as jl
@@ -21,4 +27,6 @@ def _import_juliacall():
2127
jl.seval("using Pkg: Pkg")
2228
Pkg = jl.Pkg
2329

30+
_juliapkg_resolve()
31+
2432
from .core import JuliaMPBSolver

packages/PyJuliaMPBSolver/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ description = "Python wrapper for JuliaMPBSolver"
1212
requires-python = ">=3.9"
1313
dependencies = [
1414
"numpy>=1.20.0,<2.0.0",
15-
"juliacall>=0.9.0"
15+
"juliacall>=0.9.0",
16+
"juliapkg"
1617
]

0 commit comments

Comments
 (0)