Last active
February 20, 2025 13:38
-
-
Save jsnjack/4ee69722c1c8b7810b71d0226551851a to your computer and use it in GitHub Desktop.
Install all python dependencies in folder
This file contains hidden or 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-devel 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|saml|xmlsec' | 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