Check for python3-venv module
This commit is contained in:
parent
29408ed21d
commit
4723f77606
1 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,11 @@ else
|
||||||
echo "python3 found: $py3cmd"
|
echo "python3 found: $py3cmd"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! $($py3cmd -c "import venv"); then
|
||||||
|
echo "Python 3 venv module missing. Try installing python3-venv package."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d "$install_path" ]; then
|
if [ ! -d "$install_path" ]; then
|
||||||
python3 -m venv "$install_path" || exit 1
|
python3 -m venv "$install_path" || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue