install: adjust emane repo path to use an absolute path with installing from poetry
This commit is contained in:
parent
646c6b8f01
commit
8234a5ed7e
1 changed files with 3 additions and 2 deletions
5
tasks.py
5
tasks.py
|
@ -341,7 +341,6 @@ def install_emane(c, verbose=False):
|
||||||
p = Progress(verbose)
|
p = Progress(verbose)
|
||||||
hide = not verbose
|
hide = not verbose
|
||||||
os_info = get_os()
|
os_info = get_os()
|
||||||
emane_dir = "../emane"
|
|
||||||
with p.start("installing system dependencies"):
|
with p.start("installing system dependencies"):
|
||||||
if os_info.like == OsLike.DEBIAN:
|
if os_info.like == OsLike.DEBIAN:
|
||||||
c.run(
|
c.run(
|
||||||
|
@ -359,6 +358,7 @@ def install_emane(c, verbose=False):
|
||||||
"protobuf-devel python3-setuptools",
|
"protobuf-devel python3-setuptools",
|
||||||
hide=hide,
|
hide=hide,
|
||||||
)
|
)
|
||||||
|
emane_dir = Path("../emane")
|
||||||
emane_url = "https://github.com/adjacentlink/emane.git"
|
emane_url = "https://github.com/adjacentlink/emane.git"
|
||||||
with p.start("cloning emane"):
|
with p.start("cloning emane"):
|
||||||
c.run(f"git clone {emane_url} {emane_dir}", hide=hide)
|
c.run(f"git clone {emane_url} {emane_dir}", hide=hide)
|
||||||
|
@ -371,9 +371,10 @@ def install_emane(c, verbose=False):
|
||||||
with p.start("installing emane"):
|
with p.start("installing emane"):
|
||||||
with c.cd(emane_dir):
|
with c.cd(emane_dir):
|
||||||
c.run("sudo make install", hide=hide)
|
c.run("sudo make install", hide=hide)
|
||||||
|
emane_python_dir = emane_dir.joinpath("src/python")
|
||||||
with p.start("installing python binding for core"):
|
with p.start("installing python binding for core"):
|
||||||
with c.cd(DAEMON_DIR):
|
with c.cd(DAEMON_DIR):
|
||||||
c.run(f"poetry run pip install {emane_dir}/src/python", hide=hide)
|
c.run(f"poetry run pip install {emane_python_dir.absolute()}", hide=hide)
|
||||||
|
|
||||||
|
|
||||||
@task(
|
@task(
|
||||||
|
|
Loading…
Reference in a new issue