Skip to content

Commit

Permalink
feat: get all required dependencies in setup.py from issue PyAr#105
Browse files Browse the repository at this point in the history
Signed-off-by: HanslettTheDev <[email protected]>
  • Loading branch information
HanslettTheDev committed Mar 27, 2023
1 parent 41e2bcf commit 7938099
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions get_dep.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import subprocess

def get_dependecies() -> list:
# The subprocess.Popen is used for backward compatibility with python 2.7
freeze = subprocess.Popen("pip freeze", shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
g = freeze[0].decode("utf-8").split("\r\n")
dependencies = [">=".join(x.split("==")) for x in g]
Expand Down

0 comments on commit 7938099

Please sign in to comment.