We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 14e5c7f + 4c22e87 commit bad8b78Copy full SHA for bad8b78
run.py
@@ -60,15 +60,15 @@ def check_pip_deps():
60
Make sure that the installed pip packages match what is in
61
requirements.txt, prompting the user to upgrade if not.
62
'''
63
- req = subprocess.check_output(["cat", "requirements.txt"]).splitlines()
64
- try:
65
- pkg_resources.require(req)
66
- except VersionConflict as e:
67
- print(DEPS_VERSION_HELP % e)
68
- except DistributionNotFound as e:
69
- print(DEPS_NOTFOUND_HELP % e)
70
- else:
71
- return True
+ for req in open("requirements.txt"):
+ try:
+ pkg_resources.require(req)
+ except VersionConflict as e:
+ print(DEPS_VERSION_HELP % e)
+ except DistributionNotFound as e:
+ print(DEPS_NOTFOUND_HELP % e)
+ else:
+ return True
72
73
74
def config_validator():
0 commit comments