2 Star 0 Fork 0

chenxuan/LeaderF

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install.sh 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
Yggdroot 提交于 2022-07-07 10:42 . fix issue #904 #921
#!/usr/bin/env bash
if [ "$1" = "--reverse" ]
then
cd autoload/leaderf/fuzzyMatch_C
rm -rf build
rm -f ../python/*.so ../python/*.dll
echo ========================================
echo ^_^ C extension uninstalled sucessfully!
echo ========================================
exit 0
fi
no_python=true
cd autoload/leaderf/fuzzyMatch_C
if command -v python2 > /dev/null 2>&1; then
no_python=false
echo "Begin to compile C extension of Python2 ..."
python2 setup.py build --build-lib ../python
if [ $? -eq 0 ]
then
echo
echo =================================================
echo ^_^ C extension of Python2 installed sucessfully!
echo =================================================
fi
fi
if command -v python3 > /dev/null 2>&1; then
$no_python || echo
no_python=false
echo "Begin to compile C extension of Python3 ..."
python3 setup.py build --build-lib ../python
if [ $? -eq 0 ]
then
echo
echo =================================================
echo ^_^ C extension of Python3 installed sucessfully!
echo =================================================
fi
fi
if $no_python; then
echo "Can't compile C extension, please install Python2 or Python3" >&2
exit 1
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrorvim/LeaderF.git
git@gitee.com:mirrorvim/LeaderF.git
mirrorvim
LeaderF
LeaderF
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385