if has guix; then
  GUIX_PROFILE="${PWD}/.guix-root"
  rm -f "$GUIX_PROFILE"
  use guix git-cal python-wrapper python-virtualenv python-flit python-keyring
else
  venv_dir="${PWD}/.venv"
  export FLIT_INSTALL_PYTHON="${venv_dir}/bin/python"

  if [ ! -e "$FLIT_INSTALL_PYTHON" ] ; then
    rm -rvf "$venv_dir"
  fi
  if [ ! -d "$venv_dir" ] ; then
    virtualenv -p `which python3` "$venv_dir"
    flit install
  fi
fi

# Add development scripts to PATH
PATH_add "$(pwd)/scripts"

if has git-cal; then
  clear
  git-cal --author="$(git config user.name)"
fi

cat << EOF

The 'scripts' directory has been added to your PATH: you can now invoke scripts without typing the relative path.

EOF