Commit dc11000f authored by Simon Redman's avatar Simon Redman

Correct command for generating python environment for ospf sniffer

parent 7e20f4a2
......@@ -35,11 +35,13 @@ DEFAULT_REPO_URL="https://gitlab.flux.utah.edu/safeedge/ospfv3_monitor.git"
def _generate_repo_clone_command(repo: str, branch: str, path: str) -> str:
return "git clone -b {branch} --single-branch -- {repo} {path};" \
"pushd {path};" \
"virtualenv -p /usr/bin/python2 env && env/bin/activate;" \
"pip install -r requirements.txt;" \
"popd;".format(repo=repo, branch=branch, path=path)
return "git clone -b {branch} --single-branch -- {repo} {path}; " \
"pushd {path}; " \
"virtualenv -p /usr/bin/python2 env; " \
"source env/bin/activate; " \
"pip install -r requirements.txt; " \
"deactivate; " \
"popd; ".format(repo=repo, branch=branch, path=path)
def _generate_repo_update_command(path: str) -> str:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment