forked from conda/constructor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_install.bat
More file actions
25 lines (19 loc) · 927 Bytes
/
Copy pathtest_install.bat
File metadata and controls
25 lines (19 loc) · 927 Bytes
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
echo Added by test-install script > "%PREFIX%\test_install_sentinel.txt"
:: base env has python 3.10
if not exist "%PREFIX%\conda-meta\history" exit 1
"%PREFIX%\python.exe" -c "from sys import version_info; assert version_info[:2] == (3, 10)" || goto :error
:: extra env named 'py311' has python 3.11
if not exist "%PREFIX%\envs\py311\conda-meta\history" exit 1
"%PREFIX%\envs\py311\python.exe" -c "from sys import version_info; assert version_info[:2] == (3, 11)" || goto :error
:: extra env named 'dav1d' only contains dav1d, no python
if not exist "%PREFIX%\envs\dav1d\conda-meta\history" exit 1
if exist "%PREFIX%\envs\dav1d\python.exe" exit 1
"%PREFIX%\envs\dav1d\Library\bin\dav1d.exe" --version || goto :error
if not exist "%INSTALLER_PATH%" (
echo ERROR: "INSTALLER_PATH=%INSTALLER_PATH%" points to a file that does not exist!
exit 1
)
goto :EOF
:error
echo Failed with error #%errorlevel%.
exit %errorlevel%