-
Notifications
You must be signed in to change notification settings - Fork 139
/
windows_release.bat
46 lines (38 loc) · 2.24 KB
/
windows_release.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
42
43
44
45
46
call C:\Users\Administrator\miniconda3\Scripts\activate.bat C:\Users\Administrator\miniconda3
del /s /q dist
del /s /q build
call conda remove -y --name redner-py36 --all
call conda remove -y --name redner-gpu-py36 --all
call conda remove -y --name redner-py37 --all
call conda remove -y --name redner-gpu-py37 --all
call conda remove -y --name redner-py38 --all
call conda remove -y --name redner-gpu-py38 --all
call conda create -y -n redner-py36 python=3.6
call conda run -n redner-py36 conda install -y pytorch pybind11 -c pytorch
call conda run -n redner-py36 conda env config vars set REDNER_CUDA=0
call conda run -n redner-py36 pip wheel -w dist --verbose .
call conda create -y -n redner-gpu-py36 python=3.6
call conda run -n redner-gpu-py36 conda install -y pytorch pybind11 -c pytorch
call conda run -n redner-gpu-py36 conda env config vars set REDNER_CUDA=1
call conda run -n redner-gpu-py36 conda env config vars set PROJECT_NAME=redner-gpu
call conda run -n redner-gpu-py36 pip wheel -w dist --verbose .
call conda create -y -n redner-py37 python=3.7
call conda run -n redner-py37 conda install -y pytorch pybind11 -c pytorch
call conda run -n redner-py37 conda env config vars set REDNER_CUDA=0
call conda run -n redner-py37 pip wheel -w dist --verbose .
call conda create -y -n redner-gpu-py37 python=3.7
call conda run -n redner-gpu-py37 conda install -y pytorch pybind11 -c pytorch
call conda run -n redner-gpu-py37 conda env config vars set REDNER_CUDA=1
call conda run -n redner-gpu-py37 conda env config vars set PROJECT_NAME=redner-gpu
call conda run -n redner-gpu-py37 pip wheel -w dist --verbose .
call conda create -y -n redner-py38 python=3.8
call conda run -n redner-py38 conda install -y pytorch pybind11 -c pytorch
call conda run -n redner-py38 conda env config vars set REDNER_CUDA=0
call conda run -n redner-py38 pip wheel -w dist --verbose .
call conda create -y -n redner-gpu-py38 python=3.8
call conda run -n redner-gpu-py38 conda install -y pytorch pybind11 -c pytorch
call conda run -n redner-gpu-py38 conda env config vars set REDNER_CUDA=1
call conda run -n redner-gpu-py38 conda env config vars set PROJECT_NAME=redner-gpu
call conda run -n redner-gpu-py38 pip wheel -w dist --verbose .
call pip install twine
call twine upload dist/redner*.whl