aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Jonglez <baptiste.jonglez@inria.fr>2022-09-29 10:39:45 +0200
committerBaptiste Jonglez <baptiste.jonglez@inria.fr>2022-09-29 10:39:45 +0200
commitd1c659924a24b6a6c21012d19bf1195cc8241961 (patch)
treebb6493c602bf53899bae9da84cb3d8328e017a41
parent12a50ef2db2f2a4f43a98154b2736c58c824b9af (diff)
downloadmknet-d1c659924a24b6a6c21012d19bf1195cc8241961.tar.gz
mknet-d1c659924a24b6a6c21012d19bf1195cc8241961.zip
prepare: fix venv sourcing when /bin/sh is Dash (e.g. on Debian)
-rwxr-xr-xprepare.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/prepare.py b/prepare.py
index e7021ea..bcb3353 100755
--- a/prepare.py
+++ b/prepare.py
@@ -23,7 +23,7 @@ os.chdir(me)
print("--- install python dependencies ---")
venv.create(".venv", with_pip=True)
shared.exec("""
-source .venv/bin/activate
+. .venv/bin/activate
which python3
python3 -m pip install .
python3 -m pip install -r scenarios/requirements.txt
@@ -36,6 +36,6 @@ flavor.download()
print(f"""done! now, run:
> sudo -i
> cd {os.getcwd()}
-> source ./.venv/bin/activate
+> . ./.venv/bin/activate
> ./mknet scenario ./topo/with-vdsl.yml ./scenarios/garage-s3lat garage-v0.8
""")