1 Star 0 Fork 0

litigerking/LeaderF

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install.bat 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
@echo off
if /i "%1" equ "--reverse" (
cd autoload\leaderf\fuzzyMatch_C
rd /s /q build
cd ..\python
del *.pyd
echo ======================================
echo C extension uninstalled sucessfully!
echo ======================================
goto end
)
echo Begin to compile C extension of Python2 ...
cd autoload\leaderf\fuzzyMatch_C
py -2 setup.py build
if %errorlevel% neq 0 goto second
pushd build\lib*2.?
xcopy /y *.pyd ..\..\..\python\
if %errorlevel% equ 0 (
echo=
echo ===============================================
echo C extension of Python2 installed sucessfully!
echo ===============================================
)
popd
:second
echo=
echo Begin to compile C extension of Python3 ...
py -3 setup.py build
if %errorlevel% neq 0 goto end
pushd build\lib*3.?
xcopy /y *.pyd ..\..\..\python\
if %errorlevel% equ 0 (
echo=
echo ===============================================
echo C extension of Python3 installed sucessfully!
echo ===============================================
)
popd
:end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/litigerking/LeaderF.git
[email protected]:litigerking/LeaderF.git
litigerking
LeaderF
LeaderF
master

搜索帮助