-
-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,48 @@ | ||
@echo off | ||
setlocal enabledelayedexpansion | ||
|
||
:: Set to current ViZDoom version | ||
set VIZDOOM_VERSION=1.1.14 | ||
|
||
:: Build wheels for all Python versions | ||
for %%P in (37 38 39 310) do ( | ||
set PYTHON_VERSION=%%P | ||
set PYTHON_VERSION_DOT=!PYTHON_VERSION:~0,1!.!PYTHON_VERSION:~1! | ||
echo Testing wheels for Python !PYTHON_VERSION_DOT! ... | ||
|
||
|
||
:: Modify these lines to point to your Python location (C:\PythonX is usually a default) | ||
set PYTHON_LOCATION=C:\Python!PYTHON_VERSION! | ||
set PYTHON_EXECUTABLE=!PYTHON_LOCATION!\python.exe | ||
|
||
!PYTHON_EXECUTABLE! -m pip uninstall -y vizdoom | ||
|
||
!PYTHON_EXECUTABLE! -m pip install --upgrade pip | ||
!PYTHON_EXECUTABLE! -m pip install scipy opencv-python pytest gym==0.23.0 pygame==2.1.0 | ||
!PYTHON_EXECUTABLE! -m pip install scipy opencv-python pytest | ||
|
||
set WHEEL_FILE=dist\vizdoom-!VIZDOOM_VERSION!-cp!PYTHON_VERSION!-cp!PYTHON_VERSION!-win_amd64.whl | ||
if exist !WHEEL_FILE! ( | ||
!PYTHON_EXECUTABLE! -m pip install !WHEEL_FILE![gym] | ||
) | ||
|
||
!PYTHON_EXECUTABLE! -m pip install dist\vizdoom-1.1.12-cp!PYTHON_VERSION!-cp!PYTHON_VERSION!-win_amd64.whl | ||
!PYTHON_EXECUTABLE! -m pip install dist\vizdoom-1.1.12-cp!PYTHON_VERSION!-cp!PYTHON_VERSION!m-win_amd64.whl | ||
:: This can be removed after end of support for Python 3.7 | ||
set WHEEL_M_FILE=dist\vizdoom-!VIZDOOM_VERSION!-cp!PYTHON_VERSION!-cp!PYTHON_VERSION!m-win_amd64.whl | ||
if exist !WHEEL_M_FILE! ( | ||
!PYTHON_EXECUTABLE! -m pip install !WHEEL_M_FILE![gym] | ||
) | ||
|
||
:: Test wheel from test PyPI index | ||
rem !PYTHON_EXECUTABLE! -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ vizdoom | ||
|
||
:: Run some examples | ||
rem !PYTHON_EXECUTABLE! examples\python\basic.py | ||
rem !PYTHON_EXECUTABLE! examples\python\buffers.py | ||
rem !PYTHON_EXECUTABLE! examples\python\audio_buffer.py | ||
!PYTHON_EXECUTABLE! examples\python\basic.py | ||
!PYTHON_EXECUTABLE! examples\python\buffers.py | ||
!PYTHON_EXECUTABLE! examples\python\audio_buffer.py | ||
|
||
:: Run tests | ||
!PYTHON_EXECUTABLE! -m pytest tests\test_enums.py | ||
!PYTHON_EXECUTABLE! -m pytest tests\test_get_state.py | ||
!PYTHON_EXECUTABLE! -m pytest tests\test_make_action.py | ||
!PYTHON_EXECUTABLE! -m pytest tests\test_gym_wrapper.py | ||
!PYTHON_EXECUTABLE! -m pytest tests\test_labels_buffer.py | ||
!PYTHON_EXECUTABLE! -m pytest tests\test_make_action.py | ||
|
||
!PYTHON_EXECUTABLE! -m pip uninstall -y vizdoom | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters