From 90df161d75fc52759a637ba81ab34309d930d368 Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Tue, 19 Jun 2018 10:20:20 -0400 Subject: [PATCH] Only generate a versioned package string if we have a version When installing with pip from a remote source, we need to ensure that we are passing a package name like "git+https://git/ara@version". Change-Id: Id5b648137918f5e9a5498c10a954f5a5921cf89e --- tasks/install/pip.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install/pip.yml b/tasks/install/pip.yml index baa3cb5..9ecd07a 100644 --- a/tasks/install/pip.yml +++ b/tasks/install/pip.yml @@ -44,7 +44,7 @@ vars: # Manage that the 'version' argument doesn't work when installing from source pkg_name: | - {%- if ara.params.install.pip.method == 'source' -%} + {%- if ara.params.install.pip.method == 'source' and ara.params.install.pip.version -%} {{- ara.params.install.pip.source }}@{{ ara.params.install.pip.version | default('master') -}} {%- else -%} ara