Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions playbooks/roles/edxapp/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
EDXAPP_PYTHON_VERSION: "python3.11"

# Enable installing Python 3.11 on out-of-support Ubuntu. These packages are built
# using the deadsnakes py3.11 repo and runbook and then uploaded to S3.
# using the deadsnakes py3.11 repo and runbook.
use_vendored_py311: true
# S3 bucket name -- set in edx-internal and edge-internal
VENDORED_PYTHON_BUCKET: "SET ME"
# Folder path in S3 bucket, containing deb files
vendored_py311_folder: "python-debs/deadsnakes-3.11.13-15-g8adac492d4-1+focal1-build-20251003"
# Build string that's present in the deb file names.
# Base URL for deb packages.
#
# For repeatability, this is locked to a specific commit on the `vendored`
# branch.
vendored_py311_url_base: "https://raw.githubusercontent.com/edx/configuration/343b014de1577e02160a0dddce92da4078ae7a37/vendored/py3.11-focal"
# Build string that's present in the deb file names. (Just used to make the
# names below easier to read.)
vendored_py311_build: "3.11.13-15-g8adac492d4-1+focal1"
# These must be kept topologically sorted, dependant packages last, as they
# will be installed one at a time.
Expand Down
7 changes: 3 additions & 4 deletions playbooks/roles/edxapp/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,10 @@

- name: "Download vendored Python 3.11 packages"
when: use_vendored_py311
aws_s3:
mode: get
bucket: "{{ VENDORED_PYTHON_BUCKET }}"
object: "{{ vendored_py311_folder }}/{{ item }}"
get_url:
url: "{{ vendored_py311_url_base }}/{{ item|urlencode }}"
dest: "/tmp/vendored_python_{{ vendored_py311_build }}/{{ item }}"
timeout: 60
with_items: "{{ vendored_py311_pkgs }}"
tags:
- install
Expand Down