Skip to content

Commit d22b0f6

Browse files
Setup-Python.ps1 - remove extra update
1 parent 4ddcf29 commit d22b0f6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

gitpyup/Setup-Python.ps1

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ if ($CondaVersion | Select-String -Pattern "CommandNotFoundException") {
136136
Write-Log "version: $CondaVersion"
137137
}
138138

139-
# need to update to recent conda version for truststore support
140-
Write-Log "updating conda base env..."
141-
$Proc = Start-Process @Conda -ArgumentList "update -n base -c conda-forge conda -y"
142-
143139
$EnvSetupScript = {
144140
param(
145141
[string]$EnvName,
@@ -152,7 +148,7 @@ $EnvSetupScript = {
152148
Start-Logging
153149

154150
# this prevents a halts due to an interactive conda message about reporting errors
155-
conda config --set report_errors false
151+
conda config --set report_errors false
156152

157153
# set conda to use the system truststore
158154
conda config --set ssl_verify truststore
@@ -163,7 +159,8 @@ $EnvSetupScript = {
163159
$EnvDir = "$env:ProgramData\.conda\envs"
164160
} else {
165161
$EnvDir = "$env:UserProfile\.conda\envs"
166-
}
162+
}
163+
167164
# make sure the envs directory exists
168165
New-Item -Path $EnvDir -ItemType Directory -Force
169166
# Create a .condarc file in the root dir of the MiniForge installation
@@ -177,7 +174,6 @@ envs_dirs:
177174
"
178175
Set-Content -Force -Path $CondarcPath -Value $CondarcContent
179176

180-
181177
# attempt to update conda base environment
182178
Write-Log "updating conda base env..."
183179
$response = conda update -n base -c conda-forge conda -y

0 commit comments

Comments
 (0)