mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-11 08:42:35 +03:00
renamed Default->Required dependency exception
This commit is contained in:
parent
015e8cc266
commit
8b596600af
8
setup.py
8
setup.py
|
@ -41,7 +41,7 @@ _LIB_IMAGING = (
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
class DependencyException(Exception): pass
|
class DependencyException(Exception): pass
|
||||||
class DefaultDependencyException(Exception): pass
|
class RequiredDependencyException(Exception): pass
|
||||||
|
|
||||||
def _dbg(s, tp=None):
|
def _dbg(s, tp=None):
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
|
@ -560,7 +560,7 @@ class pil_build_ext(build_ext):
|
||||||
for f in feature:
|
for f in feature:
|
||||||
if not getattr(feature, f) and feature.require(f):
|
if not getattr(feature, f) and feature.require(f):
|
||||||
if f in ('jpeg', 'zlib'):
|
if f in ('jpeg', 'zlib'):
|
||||||
raise DefaultDependencyException(f)
|
raise RequiredDependencyException(f)
|
||||||
raise DependencyException(f)
|
raise DependencyException(f)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -791,7 +791,7 @@ try:
|
||||||
keywords=["Imaging", ],
|
keywords=["Imaging", ],
|
||||||
license='Standard PIL License',
|
license='Standard PIL License',
|
||||||
zip_safe=not debug_build(), )
|
zip_safe=not debug_build(), )
|
||||||
except DefaultDependencyException as err:
|
except RequiredDependencyException as err:
|
||||||
msg = """
|
msg = """
|
||||||
|
|
||||||
The headers or library files could not be found for %s,
|
The headers or library files could not be found for %s,
|
||||||
|
@ -802,7 +802,7 @@ Please see the install instructions at:
|
||||||
|
|
||||||
""" % (str(err))
|
""" % (str(err))
|
||||||
sys.stderr.write(msg)
|
sys.stderr.write(msg)
|
||||||
raise DefaultDependencyException(msg)
|
raise RequiredDependencyException(msg)
|
||||||
except DependencyException as err:
|
except DependencyException as err:
|
||||||
msg = """
|
msg = """
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user