forked from Meituan-Dianping/lyrebird-api-coverage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
31 lines (24 loc) · 727 Bytes
/
dev.sh
File metadata and controls
31 lines (24 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
echo "***************************"
echo " Lyrebird-API-Coverage setup start "
echo "***************************"
# 如果已经有venv目录,删除此目录
if [ -e "./venv/" ]; then
rm -rf ./venv/
fi
mkdir venv
python3 -m venv ./venv
# 有些设备上虚拟环境中没有pip,需要通过easy_install安装
if [ ! -e "./venv/bin/pip" ] ;then
echo "pip no exist, install pip with easy_install"
./venv/bin/easy_install pip
fi
source ./venv/bin/activate
pip3 install -r ./requirements.txt
# 如果没有data目录,创建此目录
if [ ! -e "./data/" ]; then
mkdir ./data
fi
echo "***************************"
echo " Lyrebird-API-Coverage setup finish "
echo "***************************"