Skip to content

Commit 344491b

Browse files
committed
Tweak the Chocolatey package installation file
1 parent 9f6fa09 commit 344491b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
$ErrorActionPreference = 'Stop';
2-
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
3-
$nuspecPath = "$(Join-Path (Split-Path -parent $toolsDir) ($env:ChocolateyPackageName + ".nuspec"))"
4-
[XML]$nuspec = Get-Content $nuspecPath
5-
$pipVersion = $nuspec.package.metadata.version
6-
py -m pip install "$($env:ChocolateyPackageName)==$($pipVersion)" --disable-pip-version-check
2+
py -m pip install $env:ChocolateyPackageName==$env:ChocolateyPackageVersion --disable-pip-version-check

0 commit comments

Comments
 (0)