dev/python/install: install from repo
This commit is contained in:
parent
3aac77c2ec
commit
61671993df
|
@ -1,17 +1,5 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
case "$OSTYPE" in
|
if [[ ! -d "$HOME/.pyenv" ]]; then
|
||||||
darwin*)
|
git clone https://github.com/yyuu/pyenv.git $HOME/.pyenv
|
||||||
brew install pyenv
|
fi
|
||||||
;;
|
|
||||||
linux*)
|
|
||||||
if [ ! -d "$HOME/.pyenv" ]; then
|
|
||||||
git clone https://github.com/yyuu/pyenv.git $HOME/.pyenv
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
PWD=$(pwd -P)
|
|
||||||
mkdir -p $HOME/.config
|
|
||||||
|
|
||||||
[ -f "$HOME/.config/flake8" ] || ln -s "$PWD/dev/python/.config/flake8" "$HOME/.config/flake8"
|
|
||||||
|
|
Loading…
Reference in a new issue