Skip to content

Commit

Permalink
Installation Checks
Browse files Browse the repository at this point in the history
Added PyNaCl to requirements.txt
Added check for ffmpeg in setup.py
  • Loading branch information
royce-mathew committed Dec 21, 2022
1 parent fa7b614 commit 12fb9c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pynacl==1.5.0
discord.py==2.1.0
lxml==4.9.2
plyvel==1.5.0
Expand Down
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ def main():
print("Downloading All required packages")
if running_in_virtualenv:
print("Detected Running in Virtual Environment")

# Check if ffmpeg is installed to path
try:
subprocess.check_call(["ffmpeg", "-version"])
except subprocess.CalledProcessError as err:
print("You do not have ffmpeg installed to path.")
return

subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])

Expand Down

0 comments on commit 12fb9c4

Please sign in to comment.