forked from LAAC-LSCP/ChildProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
28 lines (23 loc) · 782 Bytes
/
Copy pathinstall.ps1
File metadata and controls
28 lines (23 loc) · 782 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
26
27
$RELEASE_URL = "https://raw.githubusercontent.com/LAAC-LSCP/ChildProject/docs/rework_installation/env_windows.yml"
curl.exe -o $env:TEMP\env.yml $RELEASE_URL
if (Get-Command micromamba) {
$ENV_MANAGER = "micromamba"
} elseif (Get-Command conda) {
$ENV_MANAGER = "conda"
} else {
echo "not found"
exit 1
}
$success = "Installation Completed for environment childproject, activate it with: \n$ENV_MANAGER activate childproject"
# $install = Invoke-Expression ("($ENV_MANAGER env create -f $env:TEMP\env.yml) -and (echo $SUCCESS)")
micromamba env create -f $env:TEMP\env.yml
if($?)
{
"Installing git-annex"
Invoke-Expression ("$ENV_MANAGER activate childproject")
uv tool install git-annex
}
else
{
"Something went wrong in the environment creation"
}