conda finesse powershell script raises error on deactivate
When changing conda environments from the one with finesse2 raises the following error on powershell
I traced it back to packaging/conda_pkg/finesse_2.3/bld.bat
where the final two lines are
echo $env:KATINI= >> %PREFIX%\etc\conda\deactivate.d\finesse_vars.ps1
echo $env:FINESSE_DIR= >> %PREFIX%\etc\conda\deactivate.d\finesse_vars.ps1
which try to set the environment variables KATINI
and FINESSE_DIR
to blank. This is seems to be illegal in powershell and an empty string or the builtin $null
value should be used.
so those two lines should be something like
echo $env:KATINI=$null >> %PREFIX%\etc\conda\deactivate.d\finesse_vars.ps1
echo $env:FINESSE_DIR=$null >> %PREFIX%\etc\conda\deactivate.d\finesse_vars.ps1