Skip to content

Commit 7545a99

Browse files
authored
Merge pull request #5 from singleplatform-eng/SPROD-1968_inplace_python_upgrade
Sprod 1968 inplace python upgrade
2 parents 08c4162 + 4940a75 commit 7545a99

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

defaults/main.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ python_package_name: python
1818

1919
# Build defaults
2020
python_build_from_source: false
21-
python_configure_prefix: '/usr/local'
21+
python_configure_prefix: '/usr'
2222
python_version: ''
2323

2424
# Internals
2525
python_major_version: "{{python_version[0]}}"
2626
python_path: "{{python_configure_prefix}}/bin/python{{python_major_version}}"
27-
python_pip_path: "/usr/local/bin/pip{{python_major_version}}"
27+
python_pip_prefix: '/usr/local'
28+
python_pip_path: "{{python_pip_prefix}}/bin/pip{{python_major_version}}"
2829
python_tar_dir: "Python-{{python_version}}"
2930
python_tar_url: "https://www.python.org/ftp/python/{{python_version}}/{{python_tar_dir}}.tgz"
3031
python_dependencies:

tasks/install_package.yml

-10
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,3 @@
2323
- name: Set python_major_version
2424
set_fact:
2525
python_major_version: "{{python_version_output.stdout}}"
26-
27-
- name: Get python location
28-
command: "which python{{python_major_version}}"
29-
check_mode: no
30-
register: python_location_output
31-
changed_when: False #This just polls the system for information and doesn't change system information
32-
33-
- name: Set python_path
34-
set_fact:
35-
python_path: "{{python_location_output.stdout}}"

0 commit comments

Comments
 (0)