Use Distribution's 'has_scripts()' method instead of directly accessing
its 'scripts' attribute.
This commit is contained in:
parent
a4efe65b43
commit
e3d17526b2
|
@ -105,7 +105,7 @@ class build (Command):
|
|||
if self.distribution.has_ext_modules():
|
||||
self.run_peer ('build_ext')
|
||||
|
||||
if self.distribution.scripts:
|
||||
if self.distribution.has_scripts():
|
||||
self.run_peer ('build_scripts')
|
||||
|
||||
# class build
|
||||
|
|
Loading…
Reference in New Issue