Skip to content
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

riotbuild: Install python3-venv #250

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

chrysn
Copy link
Member

@chrysn chrysn commented Feb 25, 2024

We don't have a user for it yet in RIOT, but I'm working on a tool in RIOT-OS/RIOT#20395 that'd make good use of it. (Essentially it's installing requirements.txt of local tools into venvs on demand, removing the need to have all modules used anywhere as dependencies of RIOT-as-a-whole. It'd still be preferable if the modules were avaialble in riotdocker, but the flexibility makes PRs easier without going through riotdocker first for every single thing.)

Note that you can do python3 -m venv in the container already, but without the python3-venv Debian package, it can't set up a pip inside venv, and usually that's the very reason why one would use a venv in the first place (and the tool mentioned above relies on it).

@kaspar030 kaspar030 added this pull request to the merge queue Feb 26, 2024
Merged via the queue into RIOT-OS:master with commit 3509e7d Feb 26, 2024
1 check passed
@chrysn chrysn deleted the install-venv branch February 26, 2024 15:02
@chrysn
Copy link
Member Author

chrysn commented Feb 26, 2024

Turns out this was done at the wrong place, should have been RIOT-OS/murdock-scripts#53. I'm suggesting to leave this in anyway -- it's also in #239, and the more we move away from shell script, the more often we'll find the need to do quick venv operations.

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