Skip to content

Commit

Permalink
Add xclip and add rehasing pyenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Trębski committed Jan 8, 2019
1 parent e59f13d commit 6a94430
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion install
Expand Up @@ -117,7 +117,8 @@ install_packages() {
git-extras \
terminator \
autoconf \
automake
automake \
xclip

# packages needed to build python with pyenv
sudo aptitude install -y -V -D -Z \
Expand Down
11 changes: 4 additions & 7 deletions post-install
Expand Up @@ -56,12 +56,14 @@ init_neovim() (
if [ ! -d "${PYENV_ROOT}/versions/neovim2" ]; then
pyenv virtualenv "$(pyenv install-latest -s 2.7 | sed s/Install\\s//g | sed s/\\.\\.\\.//g)" neovim2
"${PYENV_ROOT}"/versions/neovim2/bin/pip install --upgrade -r ./neovim-requirements.txt
pyenv rehash
else
echo "${PYENV_ROOT}/versions/neovim2 venv already exists"
fi
if [ ! -d "${PYENV_ROOT}/versions/neovim3" ]; then
pyenv virtualenv "$(pyenv install-latest -s 3.7 | sed s/Install\\s//g | sed s/\\.\\.\\.//g)" neovim3
"${PYENV_ROOT}"/versions/neovim3/bin/pip install --upgrade -r ./neovim-requirements.txt
pyenv rehash
else
echo "${PYENV_ROOT}/versions/neovim3 venv already exists"
fi
Expand All @@ -76,13 +78,8 @@ init_neovim() (
)

init_python_system() (
if [ ! -f "${PWD}/dependencies/pyenv/version" ]; then
local latest_3
latest_3=$(pyenv install-latest -s 3.7 | sed s/Install\\s//g | sed s/\\.\\.\\.//g)

echo "Initializing system wide python ${latest_3}"
echo "${latest_3}" > "${PWD}/dependencies/pyenv/version"
fi
rm -rf "${PWD}/dependencies/pyenv/version"
echo "system" > "${PWD}/dependencies/pyenv/version"
)

post_init_python_system () (
Expand Down

0 comments on commit 6a94430

Please sign in to comment.