Upload WindowsWhlBuilder.bat
Browse files- WindowsWhlBuilder.bat +56 -0
WindowsWhlBuilder.bat
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@ECHO off
|
| 2 |
+
|
| 3 |
+
if [%1] == [test] shift & goto :test
|
| 4 |
+
if [%1] == [build] shift & goto :build
|
| 5 |
+
if [%1] == [clean] shift & goto :clean
|
| 6 |
+
|
| 7 |
+
:parseArgs
|
| 8 |
+
if [%1] == [WORKERS] set NATTEN_N_WORKERS=%2 & shift & shift & goto :parseargs
|
| 9 |
+
if [%1] == [CUDA_ARCH] set NATTEN_CUDA_ARCH=%2 & shift & shift & goto :parseargs
|
| 10 |
+
if [%1] == [FORCE_CUDA] set NATTEN_WITH_CUDA=%2 & shift & shift & goto :parseargs
|
| 11 |
+
if [%1] == [VERBOSE] set NATTEN_VERBOSE=%2 & shift & shift & goto :parseargs
|
| 12 |
+
goto :buildContinue
|
| 13 |
+
:end
|
| 14 |
+
|
| 15 |
+
:test
|
| 16 |
+
echo "Testing NATTEN"
|
| 17 |
+
pip install -r requirements-dev.txt
|
| 18 |
+
pytest -v -x ./tests
|
| 19 |
+
goto :eof
|
| 20 |
+
:end
|
| 21 |
+
|
| 22 |
+
:build
|
| 23 |
+
goto :buildStart
|
| 24 |
+
:end
|
| 25 |
+
|
| 26 |
+
:buildStart
|
| 27 |
+
goto :parseargs
|
| 28 |
+
:end
|
| 29 |
+
|
| 30 |
+
:buildFinalize
|
| 31 |
+
set NATTEN_N_WORKERS=
|
| 32 |
+
set NATTEN_CUDA_ARCH=
|
| 33 |
+
set NATTEN_VERBOSE=
|
| 34 |
+
set NATTEN_IS_BUILDING_DIST=
|
| 35 |
+
set NATTEN_WITH_CUDA=
|
| 36 |
+
goto :eof
|
| 37 |
+
:end
|
| 38 |
+
|
| 39 |
+
:buildContinue
|
| 40 |
+
echo NATTEN_N_WORKERS: %NATTEN_N_WORKERS%
|
| 41 |
+
echo NATTEN_CUDA_ARCH: %NATTEN_CUDA_ARCH%
|
| 42 |
+
echo NATTEN_WITH_CUDA: %NATTEN_WITH_CUDA%
|
| 43 |
+
echo NATTEN_VERBOSE: %NATTEN_VERBOSE%
|
| 44 |
+
set NATTEN_IS_BUILDING_DIST=1
|
| 45 |
+
rem set CUDA_ARCH=8.6
|
| 46 |
+
pip install -r requirements.txt
|
| 47 |
+
python setup.py bdist_wheel
|
| 48 |
+
goto :buildFinalize
|
| 49 |
+
:end
|
| 50 |
+
|
| 51 |
+
:clean
|
| 52 |
+
echo Cleaning up
|
| 53 |
+
echo "Removing %CD%\build"
|
| 54 |
+
del %CD%\build
|
| 55 |
+
goto :eof
|
| 56 |
+
:end
|