From 9d625d903d0e3c38fcfe9a88f262db9d6e756e3d Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Tue, 20 Oct 2015 20:07:21 -0400 Subject: [PATCH] Install openstack-health in editable mode Due to the magic of non-determinism that is python packaging for whatever reason the wsgi_script entrypoint is not being generated when installing openstack-health in non-editable mode. So while we wait for the local witch doctor to remove the curse from the system this switches to using editable installs to move forward. As part of this change the exec for running pip to install openstack-health is also improved. Change-Id: If5e166d6cba0553f160eabde491d0230e4834f01 --- manifests/api.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/api.pp b/manifests/api.pp index c75644a..38e3b21 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -40,8 +40,10 @@ class openstack_health::api( } exec { 'package-application': - command => "${virtualenv_dir}/bin/pip install ${source_dir}", - require => Python::Requirements["${source_dir}/requirements.txt"], + command => "${virtualenv_dir}/bin/pip install -e ${source_dir}", + require => Python::Requirements["${source_dir}/requirements.txt"], + refreshonly => true, + subscribe => Vcsrepo[$source_dir], } file { '/etc/openstack-health.conf':