1 Star 0 Fork 0

nhj/simhash-py

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
provision.sh 1016 Bytes
一键复制 编辑 原始数据 按行查看 历史
#! /usr/bin/env bash
set -e
sudo apt-get update
sudo apt-get install -y tar curl git
# Libraries required to build a complete python with pyenv:
# https://github.com/yyuu/pyenv/wiki
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev
# Install pyenv
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo '
# Pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
' >> ~/.bash_profile
source ~/.bash_profile
hash
pushd /vagrant
# Submodules
git submodule update --init --recursive
# Install our python version
pyenv install
pyenv rehash
# Install a virtualenv
pip install virtualenv
if [ ! -d venv ]; then
virtualenv venv
fi
source venv/bin/activate
# Lastly, our dependencies
pip install -r requirements.txt
popd
echo 'cd /vagrant/' >> ~/.bash_profile
echo '
. /vagrant/venv/bin/activate
' >> ~/.bash_profile
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nhjydywd/simhash-py.git
git@gitee.com:nhjydywd/simhash-py.git
nhjydywd
simhash-py
simhash-py
master

搜索帮助