This is an automated email from the ASF dual-hosted git repository. mykolabodnar pushed a commit to branch DLAB-515 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-515 by this push: new 3600b1a [DLAB-515] - Python version 3.5 changed for 3.6 for library packages 3600b1a is described below commit 3600b1a2812aa96cfc8715e1167693c77ccddfe7 Author: bodnarmykola <bodnarmyk...@gmail.com> AuthorDate: Tue Jun 16 10:25:22 2020 +0300 [DLAB-515] - Python version 3.5 changed for 3.6 for library packages --- infrastructure-provisioning/src/general/lib/os/fab.py | 2 +- .../src/general/scripts/os/get_list_available_pkgs.py | 2 +- .../src/general/scripts/os/zeppelin_dataengine_create_configs.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py index e827135..4ac5806 100644 --- a/infrastructure-provisioning/src/general/lib/os/fab.py +++ b/infrastructure-provisioning/src/general/lib/os/fab.py @@ -57,7 +57,7 @@ def install_pip_pkg(requisites, pip_version, lib_group): error_parser = "Could not|No matching|ImportError:|failed|EnvironmentError:" try: if pip_version == 'pip3' and not exists('/bin/pip3'): - sudo('ln -s /bin/pip3.5 /bin/pip3') + sudo('ln -s /bin/pip3.6 /bin/pip3') sudo('{} install -U pip=={} setuptools'.format(pip_version, os.environ['conf_pip_version'])) sudo('{} install -U pip=={} --no-cache-dir'.format(pip_version, os.environ['conf_pip_version'])) sudo('{} install --upgrade pip=={}'.format(pip_version, os.environ['conf_pip_version'])) diff --git a/infrastructure-provisioning/src/general/scripts/os/get_list_available_pkgs.py b/infrastructure-provisioning/src/general/scripts/os/get_list_available_pkgs.py index 48d22a1..3d2b4b6 100644 --- a/infrastructure-provisioning/src/general/scripts/os/get_list_available_pkgs.py +++ b/infrastructure-provisioning/src/general/scripts/os/get_list_available_pkgs.py @@ -84,7 +84,7 @@ if __name__ == "__main__": if os.environ['application'] in ('jupyter', 'jupyterlab', 'zeppelin', 'deeplearning', 'tensor', 'tensor-rstudio', 'rstudio'): all_pkgs['pip2'] = get_available_pip_pkgs("2.7") - all_pkgs['pip3'] = get_available_pip_pkgs("3.5") + all_pkgs['pip3'] = get_available_pip_pkgs("3.6") all_pkgs['others'] = get_uncategorised_pip_pkgs(all_pkgs['pip2'], all_pkgs['pip3']) if (os.environ['application'] in ('jupyter', 'jupyterlab', 'zeppelin') diff --git a/infrastructure-provisioning/src/general/scripts/os/zeppelin_dataengine_create_configs.py b/infrastructure-provisioning/src/general/scripts/os/zeppelin_dataengine_create_configs.py index 7e7cfc2..78b591d 100644 --- a/infrastructure-provisioning/src/general/scripts/os/zeppelin_dataengine_create_configs.py +++ b/infrastructure-provisioning/src/general/scripts/os/zeppelin_dataengine_create_configs.py @@ -96,7 +96,7 @@ def configure_zeppelin_dataengine_interpreter(cluster_name, cluster_dir, os_user if os.path.exists(livy_path + 'conf/spark-blacklist.conf'): local('sudo sed -i "s/^/#/g" ' + livy_path + 'conf/spark-blacklist.conf') local(''' sudo echo "export SPARK_HOME=''' + cluster_dir + '''spark/" >> ''' + livy_path + '''conf/livy-env.sh''') - local(''' sudo echo "export PYSPARK3_PYTHON=python3.5" >> ''' + + local(''' sudo echo "export PYSPARK3_PYTHON=python3.6" >> ''' + livy_path + '''conf/livy-env.sh''') template_file = "/tmp/{}/dataengine_interpreter.json".format(args.cluster_name) fr = open(template_file, 'r+') @@ -127,7 +127,7 @@ def configure_zeppelin_dataengine_interpreter(cluster_name, cluster_dir, os_user local('sudo systemctl start livy-server-' + str(livy_port)) else: template_file = "/tmp/{}/dataengine_interpreter.json".format(args.cluster_name) - p_versions = ["2", "3.5"] + p_versions = ["2", "3.6"] for p_version in p_versions: fr = open(template_file, 'r+') text = fr.read() --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org For additional commands, e-mail: commits-h...@dlab.apache.org