Skip to content

Commit 0ed37c2

Browse files
committed
conda installer: put conda-forge channel on top
Otherwise, orange tries to downgrade to the (outdated) version from defaults.
1 parent c0aeb7b commit 0ed37c2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/windows/condainstall.bat

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ if not exist "%PREFIX%\python.exe" (
2323
"%CONDA%" install --yes --copy --quiet --prefix "%PREFIX%" "%CD%\%%f" ^
2424
|| exit /b !ERRORLEVEL!
2525
)
26+
)
2627

27-
rem # `conda create` does not add a conda.bat script when used
28-
rem # with a local package, we need to create it manually.
29-
echo @echo off > "%PREFIX%\Scripts\conda.bat"
30-
echo call "%CONDA%" %%* >> "%PREFIX%\Scripts\conda.bat"
28+
rem # `conda create` does not add a conda.bat script when used
29+
rem # with a local package, we need to create it manually.
30+
echo @echo off > "%PREFIX%\Scripts\conda.bat"
31+
echo call "%CONDA%" %%* >> "%PREFIX%\Scripts\conda.bat"
3132

32-
rem # Create .condarc file that includes conda-forge channel
33-
rem # We need it so add-ons can be installed from conda-forge
34-
echo Appending conda-forge channel
35-
echo channels: > "%PREFIX%\.condarc"
36-
echo - defaults >> "%PREFIX%\.condarc"
37-
echo - conda-forge >> "%PREFIX%\.condarc"
38-
)
33+
rem # Create .condarc file that includes conda-forge channel
34+
rem # We need it so add-ons can be installed from conda-forge
35+
echo Appending conda-forge channel
36+
echo channels: > "%PREFIX%\.condarc"
37+
echo - conda-forge >> "%PREFIX%\.condarc"
38+
echo - defaults >> "%PREFIX%\.condarc"
3939

4040
for %%f in ( *.tar.bz2 ) do (
4141
echo Installing: %%f

0 commit comments

Comments
 (0)