Add python validation fix suggestions (#11563)

* add python fixes

* re-order python requirements so most important deps show first.

* Only check dependencies if we are running as the poller user
This commit is contained in:
Tony Murray
2020-05-08 09:54:30 -05:00
committed by GitHub
parent d65aa52b4a
commit 257d596c3b
2 changed files with 15 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ target = os.path.realpath(os.path.dirname(__file__) + '/../requirements.txt')
with open(target, 'r') as file:
requirements = file.read().rstrip().split("\n")
requirements.reverse() # reverse so the most important ones show first
try:
pkg_resources.require(requirements)
except DistributionNotFound as req: