mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Added 'has_scripts()', 'has_data_files()' methods.
This commit is contained in:
parent
36c36fec7c
commit
44a61bbb66
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue