Skip to content

Instantly share code, notes, and snippets.

@jsnjack
Last active March 28, 2024 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsnjack/4ee69722c1c8b7810b71d0226551851a to your computer and use it in GitHub Desktop.
Save jsnjack/4ee69722c1c8b7810b71d0226551851a to your computer and use it in GitHub Desktop.
Install all python dependencies in folder
#!/bin/bash
sudo dnf install python3-xmlsec xmlsec1-devel libtool-ltdl-devel cmake dbus-devel glib2-devel
find . -name '.venv' -prune -o -name '*requirements*.txt' -print0 | xargs -0 cat | grep -oE '^[^~=]+' | grep -vE '^dnf|^functools32|^gpg|^libdnf|^psycopg|^systemd-python' | sort | uniq > /tmp/combined_requirements.txt
invenv init -r /tmp/combined_requirements.txt -d
rm -f /tmp/combined_requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment