Last active
March 28, 2024 13:23
-
-
Save jsnjack/4ee69722c1c8b7810b71d0226551851a to your computer and use it in GitHub Desktop.
Install all python dependencies in folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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