forked from catboost/catboost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_all_win64.bat
More file actions
105 lines (78 loc) · 4.11 KB
/
build_all_win64.bat
File metadata and controls
105 lines (78 loc) · 4.11 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
@echo on
set WIN_COMMON_FLAGS=-k -DOS_SDK=local -DCUDA_ROOT="%CUDA_PATH%" -DUSE_ARCADIA_CUDA_HOST_COMPILER=no --host-platform-flag USE_ARCADIA_CUDA_HOST_COMPILER=no
call "%VS_VARS_PATH%\vcvars64.bat" -vcvars_ver=14.28
if %errorlevel% neq 0 exit /b %errorlevel%
c:\Python36\python.exe ya make -r -DNO_DEBUGINFO %WIN_COMMON_FLAGS% %YA_MAKE_EXTRA_ARGS% -DHAVE_CUDA=yes -o . catboost\app
if %errorlevel% neq 0 exit /b %errorlevel%
c:\Python36\python.exe ya make -r -DNO_DEBUGINFO %WIN_COMMON_FLAGS% %YA_MAKE_EXTRA_ARGS% -DHAVE_CUDA=yes -o . catboost\libs\model_interface\
if %errorlevel% neq 0 exit /b %errorlevel%
cd catboost\python-package
if %errorlevel% neq 0 exit /b %errorlevel%
set ORIG_PATH=%PATH%
set PyV=36
echo c:\Python%PyV%\python.exe
set PATH=c:\Python%PyV%\Scripts;%ORIG_PATH%
c:\Python%PyV%\python.exe mk_wheel.py %WIN_COMMON_FLAGS% %YA_MAKE_EXTRA_ARGS% -DPYTHON_INCLUDE="/I c:/Python%PyV%/include/" -DPYTHON_LIBRARIES="c:/Python%PyV%/libs/python%PyV%.lib"
if %errorlevel% neq 0 exit /b %errorlevel%
set PyV=37
echo c:\Python%PyV%\python.exe
set PATH=c:\Python%PyV%\Scripts;%ORIG_PATH%
c:\Python%PyV%\python.exe mk_wheel.py %WIN_COMMON_FLAGS% %YA_MAKE_EXTRA_ARGS% -DPYTHON_INCLUDE="/I c:/Python%PyV%/include/" -DPYTHON_LIBRARIES="c:/Python%PyV%/libs/python%PyV%.lib"
if %errorlevel% neq 0 exit /b %errorlevel%
set PyV=38
echo c:\Python%PyV%\python.exe
set PATH=c:\Python%PyV%\Scripts;%ORIG_PATH%
c:\Python%PyV%\python.exe mk_wheel.py %WIN_COMMON_FLAGS% %YA_MAKE_EXTRA_ARGS% -DPYTHON_INCLUDE="/I c:/Python%PyV%/include/" -DPYTHON_LIBRARIES="c:/Python%PyV%/libs/python%PyV%.lib"
if %errorlevel% neq 0 exit /b %errorlevel%
set PyV=39
echo c:\Python%PyV%\python.exe
set PATH=c:\Python%PyV%\Scripts;%ORIG_PATH%
c:\Python%PyV%\python.exe mk_wheel.py %WIN_COMMON_FLAGS% %YA_MAKE_EXTRA_ARGS% -DPYTHON_INCLUDE="/I c:/Python%PyV%/include/" -DPYTHON_LIBRARIES="c:/Python%PyV%/libs/python%PyV%.lib"
if %errorlevel% neq 0 exit /b %errorlevel%
set PyV=310
echo c:\Python%PyV%\python.exe
set PATH=c:\Python%PyV%\Scripts;%ORIG_PATH%
c:\Python%PyV%\python.exe mk_wheel.py %WIN_COMMON_FLAGS% %YA_MAKE_EXTRA_ARGS% -DPYTHON_INCLUDE="/I c:/Python%PyV%/include/" -DPYTHON_LIBRARIES="c:/Python%PyV%/libs/python%PyV%.lib"
if %errorlevel% neq 0 exit /b %errorlevel%
echo Building R-package
cd ..\..
call ya.bat make -r -DNO_DEBUGINFO -T %WIN_COMMON_FLAGS% %YA_MAKE_EXTRA_ARGS% -o . .\catboost\R-package\src\
if %errorlevel% neq 0 exit /b %errorlevel%
cd catboost\R-package
if %errorlevel% neq 0 exit /b %errorlevel%
mkdir catboost
copy DESCRIPTION catboost
if %errorlevel% neq 0 exit /b %errorlevel%
copy NAMESPACE catboost
if %errorlevel% neq 0 exit /b %errorlevel%
copy README.md catboost
if %errorlevel% neq 0 exit /b %errorlevel%
xcopy R catboost\R /S /E /I
if %errorlevel% neq 0 exit /b %errorlevel%
xcopy inst catboost\inst /S /E /I
if %errorlevel% neq 0 exit /b %errorlevel%
xcopy man catboost\man /S /E /I
if %errorlevel% neq 0 exit /b %errorlevel%
xcopy tests catboost\tests /S /E /I
if %errorlevel% neq 0 exit /b %errorlevel%
mkdir catboost\inst\libs
if %errorlevel% neq 0 exit /b %errorlevel%
mkdir catboost\inst\libs\x64
if %errorlevel% neq 0 exit /b %errorlevel%
copy src\libcatboostr.dll catboost\inst\libs\x64
if %errorlevel% neq 0 exit /b %errorlevel%
7z -ttar a dummy catboost -so | 7z -si -tgzip a catboost-R-Windows.tgz
if %errorlevel% neq 0 exit /b %errorlevel%
cd ..\..
echo Building JVM prediction native shared library
cd catboost\jvm-packages\catboost4j-prediction
if %errorlevel% neq 0 exit /b %errorlevel%
c:\Python36\python.exe ..\tools\build_native_for_maven.py . catboost4j-prediction --build release --no-src-links^
-DOS_SDK=local -DHAVE_CUDA=no -DUSE_SYSTEM_JDK=%JAVA_HOME% -DJAVA_HOME=%JAVA_HOME% %YA_MAKE_EXTRA_ARGS%
if %errorlevel% neq 0 exit /b %errorlevel%
cd ..\..\..
echo Building Spark native shared library
cd catboost\spark\catboost4j-spark\core
c:\Python36\python.exe ..\..\..\jvm-packages\tools\build_native_for_maven.py . catboost4j-spark-impl --build release --no-src-links^
-DOS_SDK=local -DHAVE_CUDA=no -DUSE_LOCAL_SWIG=yes -DUSE_SYSTEM_JDK=%JAVA_HOME% -DJAVA_HOME=%JAVA_HOME% %YA_MAKE_EXTRA_ARGS%
if %errorlevel% neq 0 exit /b %errorlevel%