Skip to content

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).

@chrysn chrysn requested a review from kaspar030 February 25, 2024 23:24
@kaspar030 kaspar030 enabled auto-merge February 26, 2024 13:21
@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
@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