From 97788cea12dab9c5f953dcf9a9c1c17042cb7bba Mon Sep 17 00:00:00 2001 From: Alessandro Pilotti Date: Tue, 23 May 2017 14:01:54 +0300 Subject: [PATCH] Add upper-constraints to build script --- BuildAutomation/BuildCloudbaseInitSetup.ps1 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/BuildAutomation/BuildCloudbaseInitSetup.ps1 b/BuildAutomation/BuildCloudbaseInitSetup.ps1 index cbe71d89..9d4be89b 100644 --- a/BuildAutomation/BuildCloudbaseInitSetup.ps1 +++ b/BuildAutomation/BuildCloudbaseInitSetup.ps1 @@ -76,10 +76,17 @@ try Remove-Item -Recurse -Force $python_build_path } - ExecRetry { PipInstall "pbr>=1.5.0" } - ExecRetry { PipInstall "pip>=7.0.0" -update $true } + ExecRetry { PipInstall "pip" -update $true } + ExecRetry { PipInstall "wheel" -update $true } + # 0.10.5 does not have wheels for Python 3.4 ExecRetry { PipInstall "netifaces==0.10.4" } + ExecRetry { PullInstall "requirements" "https://github.com/openstack/requirements" } + $upper_constraints_file = $(Resolve-Path ".\requirements\upper-constraints.txt").Path + # We comment out the following libs from the constraints file, ensuring + # that we're going to stick with the requested versions. + $(gc $upper_constraints_file) -replace '^(netifaces)', '# $1' | sc $upper_constraints_file + if ($release) { ExecRetry { PipInstall "cloudbase-init==$release" }