Initial working version
This commit is contained in:
commit
ec1c5958ce
33 changed files with 4547 additions and 0 deletions
40
scripts/install_auth_deps.py
Normal file
40
scripts/install_auth_deps.py
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
#!/usr/bin/env python3
|
||||
"""
|
||||
Helper script to install authentication dependencies
|
||||
"""
|
||||
import sys
|
||||
import subprocess
|
||||
import platform
|
||||
|
||||
def main():
|
||||
"""Install the dependencies required for Twitch authentication"""
|
||||
print("Installing dependencies for Twitch authentication...")
|
||||
|
||||
# Required packages
|
||||
packages = [
|
||||
"requests",
|
||||
"python-dotenv",
|
||||
"cryptography"
|
||||
]
|
||||
|
||||
# Use pip to install the packages
|
||||
try:
|
||||
subprocess.check_call([sys.executable, "-m", "pip", "install"] + packages)
|
||||
print("\nSuccessfully installed authentication dependencies!")
|
||||
print("You can now run: python scripts/setup_twitch_auth.py")
|
||||
except subprocess.CalledProcessError:
|
||||
print("\nError: Failed to install dependencies.")
|
||||
print("Please try installing them manually:")
|
||||
print(" pip install requests python-dotenv cryptography")
|
||||
sys.exit(1)
|
||||
|
||||
# Show additional information for Windows users
|
||||
if platform.system() == "Windows":
|
||||
print("\nNote for Windows users:")
|
||||
print("This script uses the 'cryptography' library for generating certificates,")
|
||||
print("which has C dependencies that should be automatically installed.")
|
||||
print("If you encounter any issues, please refer to the documentation:")
|
||||
print("https://cryptography.io/en/latest/installation/")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue