This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DLAB-1961 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 126bbdd5d7bab12333514ebf0a58baf8beccea14 Author: leonidfrolov <frolovl...@gmail.com> AuthorDate: Thu Jul 23 17:04:25 2020 +0300 [DLAB-1961]: made dataengine-service to only run pip3 during 'others' packages installation --- .../src/general/scripts/os/install_additional_libs.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/infrastructure-provisioning/src/general/scripts/os/install_additional_libs.py b/infrastructure-provisioning/src/general/scripts/os/install_additional_libs.py index d2ce331..ca81a97 100644 --- a/infrastructure-provisioning/src/general/scripts/os/install_additional_libs.py +++ b/infrastructure-provisioning/src/general/scripts/os/install_additional_libs.py @@ -97,12 +97,16 @@ if __name__ == "__main__": try: print('Installing other packages: {}'.format(pkgs['libraries']['others'])) for pkg in pkgs['libraries']['others']: - status_pip2 = install_pip_pkg([pkg], 'pip2', 'others') - status_pip3 = install_pip_pkg([pkg], 'pip3', 'others') - if status_pip2[0]['status'] == 'installed': - general_status = general_status + status_pip2 - else: + if os.environ['conf_resource'] in ('dataengine-service'):#, 'dataengine'): + status_pip3 = install_pip_pkg([pkg], 'pip3', 'others') general_status = general_status + status_pip3 + else: + status_pip2 = install_pip_pkg([pkg], 'pip2', 'others') + status_pip3 = install_pip_pkg([pkg], 'pip3', 'others') + if status_pip2[0]['status'] == 'installed': + general_status = general_status + status_pip2 + else: + general_status = general_status + status_pip3 except KeyError: pass --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org For additional commands, e-mail: commits-h...@dlab.apache.org