From 344491ba8e3ca10c223e6daf5a601d5fc95cdf71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Mon, 11 Oct 2021 10:07:24 +0200 Subject: [PATCH] Tweak the Chocolatey package installation file --- .../windows-chocolatey/tools/chocolateyinstall.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/packaging/windows-chocolatey/tools/chocolateyinstall.ps1 b/docs/packaging/windows-chocolatey/tools/chocolateyinstall.ps1 index 36f3b195..e27045f3 100644 --- a/docs/packaging/windows-chocolatey/tools/chocolateyinstall.ps1 +++ b/docs/packaging/windows-chocolatey/tools/chocolateyinstall.ps1 @@ -1,6 +1,2 @@ $ErrorActionPreference = 'Stop'; -$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" -$nuspecPath = "$(Join-Path (Split-Path -parent $toolsDir) ($env:ChocolateyPackageName + ".nuspec"))" -[XML]$nuspec = Get-Content $nuspecPath -$pipVersion = $nuspec.package.metadata.version -py -m pip install "$($env:ChocolateyPackageName)==$($pipVersion)" --disable-pip-version-check +py -m pip install $env:ChocolateyPackageName==$env:ChocolateyPackageVersion --disable-pip-version-check