xonsh in venv

This commit is contained in:
Wouter Gordts 2022-09-29 15:29:14 +02:00
parent 26d7c9fc0e
commit 7c2647aa1a
1 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,9 @@ function symlink_config_files () {
}
function install_pip_dependencies () {
mkdir -p ~/virtual_envs
python3 -m venv ~/virtual_envs/base
source ~/virtual_envs/base/bin/activate
for dep in $DEPENDENCIES_PIP; do
pip3 install --upgrade "$dep" > $LOG && echo "installed $dep"
done
@ -138,6 +141,7 @@ function install_pip_dependencies () {
function change_shell () {
local path=$(which xonsh)
echo $path
path=~/virtual_envs/base/bin/xonsh
if ! [[ -z $path ]]; then
if [[ -z "$(grep xonsh /etc/shells)" ]]; then
echo "$path" | sudo tee -a /etc/shells