forked from Yggdroot/LeaderF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.bat
41 lines (39 loc) · 1.04 KB
/
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
33
34
35
36
37
38
39
40
41
@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