summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-05-20 15:06:48 (GMT)
committerGreg Ward <gward@python.net>2000-05-20 15:06:48 (GMT)
commit44a61bbb66cfc6a0821d591ccf33fbc209aab112 (patch)
tree80a017924f78dc118326459dccc1a137bcf0a35f /Lib/distutils/dist.py
parent36c36fec7cd7f056832c2043ec385f6e921c8c83 (diff)
downloadcpython-44a61bbb66cfc6a0821d591ccf33fbc209aab112.zip
cpython-44a61bbb66cfc6a0821d591ccf33fbc209aab112.tar.gz
cpython-44a61bbb66cfc6a0821d591ccf33fbc209aab112.tar.bz2
Added 'has_scripts()', 'has_data_files()' methods.
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r--Lib/distutils/dist.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py
index 0f13198..03b20e1 100644
--- a/Lib/distutils/dist.py
+++ b/Lib/distutils/dist.py
@@ -639,6 +639,12 @@ class Distribution:
def has_modules (self):
return self.has_pure_modules() or self.has_ext_modules()
+ def has_scripts (self):
+ return self.scripts and len(self.scripts) > 0
+
+ def has_data_files (self):
+ return self.data_files and len(self.data_files) > 0
+
def is_pure (self):
return (self.has_pure_modules() and
not self.has_ext_modules() and