Option for SQLAlchemy and alembic git source
Change-Id: If7ff0075834a1e9cee01713676166e56b797debd Closes-Bug: #2042941
This commit is contained in:
parent
9a55a925c4
commit
bb0c273697
19
lib/neutron
19
lib/neutron
@ -158,6 +158,14 @@ if [[ "$NEUTRON_DEPLOY_MOD_WSGI" == "True" && -z "$NEUTRON_ENDPOINT_SERVICE_NAME
|
||||
NEUTRON_ENDPOINT_SERVICE_NAME="networking"
|
||||
fi
|
||||
|
||||
# Source install libraries
|
||||
ALEMBIC_REPO=${ALEMBIC_REPO:-https://github.com/sqlalchemy/alembic.git}
|
||||
ALEMBIC_DIR=${ALEMBIC_DIR:-$DEST/alembic}
|
||||
ALEMBIC_BRANCH=${ALEMBIC_BRANCH:-main}
|
||||
SQLALCHEMY_REPO=${SQLALCHEMY_REPO:-https://github.com/sqlalchemy/sqlalchemy.git}
|
||||
SQLALCHEMY_DIR=${SQLALCHEMY_DIR:-$DEST/sqlalchemy}
|
||||
SQLALCHEMY_BRANCH=${SQLALCHEMY_BRANCH:-main}
|
||||
|
||||
# List of config file names in addition to the main plugin config file
|
||||
# To add additional plugin config files, use ``neutron_server_config_add``
|
||||
# utility function. For example:
|
||||
@ -525,6 +533,17 @@ function install_neutron {
|
||||
setup_dev_lib "neutron-lib"
|
||||
fi
|
||||
|
||||
# Install SQLAlchemy and alembic from git when these are required
|
||||
# see https://bugs.launchpad.net/neutron/+bug/2042941
|
||||
if use_library_from_git "sqlalchemy"; then
|
||||
git_clone $SQLALCHEMY_REPO $SQLALCHEMY_DIR $SQLALCHEMY_BRANCH
|
||||
setup_develop $SQLALCHEMY_DIR
|
||||
fi
|
||||
if use_library_from_git "alembic"; then
|
||||
git_clone $ALEMBIC_REPO $ALEMBIC_DIR $ALEMBIC_BRANCH
|
||||
setup_develop $ALEMBIC_DIR
|
||||
fi
|
||||
|
||||
git_clone $NEUTRON_REPO $NEUTRON_DIR $NEUTRON_BRANCH
|
||||
setup_develop $NEUTRON_DIR
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user