Skip to content

Commit

Permalink
make it so we completely fail if PNG and JPG headers are missing,
Browse files Browse the repository at this point in the history
compiling anyway is just confusing people
  • Loading branch information
edyoung committed Jan 24, 2016
1 parent 30ecd3d commit d2583b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -50,7 +50,7 @@ def call_package_config(package,option,optional=False):
if png_flags != []:
extra_macros.append(('PNG_ENABLED', 1))
else:
print "NO PNG HEADERS FOUND, install libpng-dev"
raise Exception("NO PNG HEADERS FOUND, you need to install libpng-dev")

png_libs = call_package_config("libpng", "--libs", True)

Expand All @@ -59,7 +59,7 @@ def call_package_config(package,option,optional=False):
extra_macros.append(('JPG_ENABLED', 1))
jpg_libs = [ jpg_lib ]
else:
print "NO JPEG HEADERS FOUND, install libjpeg-dev"
raise Exception("NO JPEG HEADERS FOUND, you need to install libjpeg-dev")
jpg_libs = []

#not ready yet.
Expand Down

0 comments on commit d2583b2

Please sign in to comment.