From 43603dfcff035e6983b35871f19ddde3f2e617f7 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Mon, 4 Dec 2017 17:05:08 +0000 Subject: [PATCH] Add find-links, even when not being locked down Using find-links when doing installs can be done regardless of whether we're locking down the index. In order to help transition to using the pypi cache alongside the older repo build mechanism, we need to be able to use a set index with find-links pointing at the old links location. Change-Id: I1e9782eb0fd72690a9644c7a01e8c83a4486872b Implements: blueprint python-build-install-simplification Signed-off-by: Jesse Pretorius --- templates/pip.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/pip.conf.j2 b/templates/pip.conf.j2 index a1ea81d..e538ded 100644 --- a/templates/pip.conf.j2 +++ b/templates/pip.conf.j2 @@ -17,7 +17,7 @@ trusted-host = [install] upgrade = {{ pip_upgrade }} -{% if pip_lock_to_internal_repo and pip_links | length > 0 %} +{% if pip_links | length > 0 %} find-links = {% for pip_link in pip_links %} {{ pip_link.link }}