Skip to content

Commit

Permalink
Merge pull request #39 from pyiron/executorlib
Browse files Browse the repository at this point in the history
Update executorlib to 0.0.3
  • Loading branch information
jan-janssen authored Oct 1, 2024
2 parents 1adb010 + e39c512 commit 0e80b52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .ci_support/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ channels:
dependencies:
- coverage
- conda =24.7.1
- executorlib =0.0.2
- executorlib =0.0.3
10 changes: 5 additions & 5 deletions conda_subprocess/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from executorlib.shared.communication import SocketInterface
from executorlib.shared.executor import get_command_path
from executorlib.shared.interface import SubprocessInterface
from executorlib.shared.spawner import SubprocessSpawner

from conda_subprocess.process import Popen

Expand All @@ -24,17 +24,17 @@ def function_wrapped(*args, **kwargs):
"kwargs": kwargs,
"resource_dict": {"cores": 1},
}
interface = SocketInterface(interface=SubprocessInterface(cores=1))
interface = SocketInterface(spawner=SubprocessSpawner(cores=1))
command_lst = [
"python",
get_command_path(executable="interactive_serial.py"),
]
if not hostname_localhost:
command_lst += ["--host", gethostname()]
command_lst += ["--zmqport", str(interface.bind_to_random_port())]
interface._interface._process = Popen(
args=interface._interface.generate_command(command_lst=command_lst),
cwd=interface._interface._cwd,
interface._spawner._process = Popen(
args=interface._spawner.generate_command(command_lst=command_lst),
cwd=interface._spawner._cwd,
stdin=subprocess.DEVNULL,
prefix_name=prefix_name,
prefix_path=prefix_path,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Repository = "https://github.com/pyiron/conda_subprocess"

[project.optional-dependencies]
executorlib = [
"executorlib==0.0.2",
"executorlib==0.0.3",
]

[tool.setuptools.packages.find]
Expand Down

0 comments on commit 0e80b52

Please sign in to comment.