<fix>[conf]: cli and ctl virtualenv install system dependencies
pyroute2 is an essential dependency for both. Since this dependency is closely related to arch, it is currently installed as rpm
Resolves:
@@ -39,7 +39,7 @@ if [ $tool = 'zstack-cli' ]; then
CLI_VIRENV_PATH=/var/lib/zstack/virtualenv/zstackcli
[ ! -z $force ] && rm -rf $CLI_VIRENV_PATH
if [ ! -d "$CLI_VIRENV_PATH" ]; then
- virtualenv $CLI_VIRENV_PATH
+ virtualenv --system-site-packages $CLI_VIRENV_PATH
if [ $? -ne 0 ]; then
rm -rf $CLI_VIRENV_PATH
exit 1
@@ -74,7 +74,7 @@ if [ $tool = 'zstack-cli' ]; then
elif [ $tool = 'zstack-ctl' ]; then
CTL_VIRENV_PATH=/var/lib/zstack/virtualenv/zstackctl
- rm -rf $CTL_VIRENV_PATH && virtualenv $CTL_VIRENV_PATH || exit 1
+ rm -rf $CTL_VIRENV_PATH && virtualenv --system-site-packages $CTL_VIRENV_PATH || exit 1
. $CTL_VIRENV_PATH/bin/activate
cd $cwd
pip install -i $pypi_path --trusted-host localhost --ignore-installed zstackctl-*.tar.gz || exit 1
