Skip to content

Commit

Permalink
Setup.py fix
Browse files Browse the repository at this point in the history
- handle missing "optional" key in package definition
  • Loading branch information
PeterSurda committed Mar 19, 2017
1 parent 1af49a0 commit 9a5f744
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Expand Up @@ -168,9 +168,12 @@ def compilerToPackages():
"It is highly recommended to use the package manager " \
"instead of setuptools." % (detectOS())
prereqToPackages()
for module in detectPrereqs(True):
if not packageName[module]['optional']:
sys.exit()
try:
for module in detectPrereqs(True):
if not packageName[module]['optional']:
sys.exit()
except KeyError:
sys.exit()
if not haveSetuptools:
print "It looks like you're missing setuptools."
sys.exit()
Expand Down

0 comments on commit 9a5f744

Please sign in to comment.