Skip to content

Move devcontainer installation to shell scripts #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 12, 2025

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