]> granicus.if.org Git - python/commitdiff
Use Distribution's 'has_scripts()' method instead of directly accessing
authorGreg Ward <gward@python.net>
Thu, 25 May 2000 01:21:54 +0000 (01:21 +0000)
committerGreg Ward <gward@python.net>
Thu, 25 May 2000 01:21:54 +0000 (01:21 +0000)
its 'scripts' attribute.

Lib/distutils/command/build.py

index 96d41d5e0bede665cc55bd0789cc518324100241..d9eed7685c4ac4de059b8445dadeb8be0ee315ef 100644 (file)
@@ -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