Skip to content

Commit 45ebaac

Browse files
committed
Accept conda TOS before env remove in Windows installer
Move TOS acceptance ahead of `conda env remove` so the install script no longer prompts interactively, and add the msys2 channel which is also prompted on Windows.
1 parent 1cd370b commit 45ebaac

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

install_shapeworks.bat

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ set CONDAENV=shapeworks
33
IF NOT "%1"=="" SET CONDAENV=%1
44
echo "creating new conda environment for ShapeWorks called %CONDAENV%..."
55

6+
REM Accept Anaconda TOS for required channels (must happen before any conda command that touches default channels)
7+
call conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
8+
call conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
9+
call conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/msys2
10+
611
REM remove any existing environment with this name
712
call conda env remove -n %CONDAENV%
813

914
REM update anaconda
1015
call conda config --add channels anaconda
1116
call conda config --add channels conda-forge
1217

13-
REM Accept Anaconda TOS for required channels
14-
call conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
15-
call conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
16-
1718
REM install shapeworks deps
1819
call conda create --yes --name %CONDAENV% python=3.12.3 pip=24.3.1 openblas=0.3.30 || goto :error
1920
call conda activate %CONDAENV%

0 commit comments

Comments
 (0)