try:
log("Installing Python dependencies")
reqFilePath = os.path.join(setupHome, "requirements.txt")
if os.path.isfile(reqFilePath):
reqItems = [line.strip() for line in open(reqFilePath)]
for r in reqItems:
log("Installing package: {0}".format(r))
After Change
try:
log("Installing Python dependencies")
reqFilePath = os.path.join(setupHome, "requirements.txt")
if not os.path.isfile(reqFilePath):
die("Dependency listing file not found: {0}".format(reqFilePath), 5)
c = [pipExePath, "install", "--find-links={0}".format(distHome), "-r", reqFilePath]