Skip to content

Conversation

encukou
Copy link
Member

@encukou encukou commented Jun 12, 2025

Would it make sense to use shell scripts to make the installation scripts more reusable, and avoid backslash line continuation?

I've separated like this:

  • left in Dockerfile: removing the openh264 repo, and the env variables
  • install-builddeps.sh: Fedora (DNF)-specific installation of the needed tools
  • install-wasi.sh: (theoretically portable) installation of the WASI SDK

I converted the list of dependencies to a Bash array, a somewhat obscure feature that has nicer syntax.

I put them in /opt/cpython-devcontainer/bin/, not /usr/local/bin/, so they're not on the default $PATH -- that would make them too discoverable.

This makes the installation more reusable, avoids backslash
line continuation, and allows inline comments in more places.
@encukou encukou requested a review from brettcannon as a code owner June 12, 2025 09:23
@brettcannon brettcannon merged commit f700d73 into python:main Jun 12, 2025
6 checks passed
@brettcannon
Copy link
Member

I'm indifferent and you already did the PR, so let's go with it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants