Fix python path due to global virtual environment

Change-Id: Ibcd48c41f00cdac30654d5f90a9ee4b4c829ae85
This commit is contained in:
Hongbin Lu 2023-09-17 22:05:39 +00:00
parent 1c53427ea2
commit 693ffb903b

View File

@ -74,7 +74,7 @@ function configure_kuryr {
# main loop
if is_service_enabled kuryr-libnetwork; then
DISTRO_DISTUTILS_DATA_PATH=$(python3 -c "import distutils.dist;import distutils.command.install;inst = distutils.command.install.install(distutils.dist.Distribution());inst.finalize_options();print(inst.install_data)")
DISTRO_DISTUTILS_DATA_PATH=$($PYTHON -c "import distutils.dist;import distutils.command.install;inst = distutils.command.install.install(distutils.dist.Distribution());inst.finalize_options();print(inst.install_data)")
if [[ "$1" == "stack" && "$2" == "install" ]]; then
# Install kuryr-lib from git so we make sure we're testing
# the latest code.