watcher-dashboard/devstack
Sean Mooney 1d2856a416 [devstack] use $PYTHON when configuring horizon
Devstack gained the ablity to install all services in
a shared venv and became the default way to install
on all debian derived distor as part of
If9bc7ba45522189d03f19b86cb681bb150ee2f25

Today the plugin uses the system python3 executable
to invoke the manage.py untility to collect the static
resouces and compress them.

This change updates the devtack plugin to support
installation in the global venv.

When horizon is installed in a global venv the manage command
cannot import django or other depencies if invoked by
system python directly.

When installed in a global virutal environment,
devstack exports PYTHON to use the virtual env executeable.
```export PYTHON="$DEVSTACK_VENV/bin/python3"```
when a gobal venv is not enabled it export PYTHON
to use the correct system python
```export PYTHON=$(which python${PYTHON3_VERSION} 2>/dev/null)```

As such we can always rely on $PYTHON to contain the correct
execuable.

Closes-Bug: #2085487
Change-Id: I161db1e824ee2fafd305313a729795ed2ade634a
2024-10-24 03:19:56 +01:00
..
local.conf.example Replace git.openstack.org URLs with opendev.org URLs 2019-04-28 17:14:49 +08:00
plugin.sh [devstack] use $PYTHON when configuring horizon 2024-10-24 03:19:56 +01:00
settings enable watcher-dashboard service in devstack 2017-09-06 18:10:47 -07:00