-
-
Notifications
You must be signed in to change notification settings - Fork 179
/
install.bat
32 lines (30 loc) · 926 Bytes
/
install.bat
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
32
@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 --build-lib ..\python
if %errorlevel% equ 0 (
echo=
echo ===============================================
echo C extension of Python2 installed sucessfully!
echo ===============================================
)
echo=
echo Begin to compile C extension of Python3 ...
py -3 setup.py build --build-lib ..\python
if %errorlevel% equ 0 (
echo=
echo ===============================================
echo C extension of Python3 installed sucessfully!
echo ===============================================
)
:end