Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
moshez committed Jan 15, 2024
1 parent 5f280de commit f32dff3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/nexor/env.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import pathlib
import shutil
import sys

from commander_data import COMMAND
from commander_data.common import BASE_PYTHON
Expand All @@ -23,9 +22,11 @@ def inner_parse():

return dict(inner_parse())

def python_module(env_path):

def python_module(env_path): # pragma: no cover
return COMMAND(os.fspath(env_path / "bin" / "python"))(m=None)


def should_destroy(args, env_path, packages_to_install): # pragma: no cover
if args.force_recreate:
return True
Expand Down Expand Up @@ -65,6 +66,7 @@ def env(args): # pragma: no cover
)
args.run(
python_module(env_path).pip.install(
r=os.fspath(requirements), e=args.env["PWD"],
r=os.fspath(requirements),
e=args.env["PWD"],
)
)
1 change: 0 additions & 1 deletion src/nexor/lock.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pathlib
import sys

from commander_data.common import LOCAL_PYTHON as PYTHON
from gather.commands import add_argument
Expand Down

0 comments on commit f32dff3

Please sign in to comment.