summaryrefslogtreecommitdiffstats
path: root/build/msvc/build_python3.bat
blob: 4a570e384e7b17834519f98d69673a93573c1f1a (plain)
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
@echo off

cd /D %~dp0
cd ..\..
set R=%CD%

call "%~dp0build_env.bat"

call "%B_WINPYTHON3%\scripts\env.bat"
call "%B_VC%\vcvarsall.bat" amd64 8.1 -vcvars_ver=14.0

cd /D %R%

msbuild astra_vc14.sln /p:Configuration=Release_CUDA /p:Platform=x64 /t:astra_vc14

cd python

rd /s /q build
rd /s /q "%WINPYDIR%\lib\site-packages\astra"

set CL=/DASTRA_CUDA /DASTRA_PYTHON
set INCLUDE=%R%\include;%R%\lib\include;%CUDA_PATH%\include;%INCLUDE%
copy ..\bin\x64\Release_CUDA\AstraCuda64.lib astra.lib
python builder.py build_ext --compiler=msvc install
copy ..\bin\x64\Release_CUDA\AstraCuda64.dll "%WINPYDIR%\lib\site-packages\astra"

pause