Commit f44bae82 authored by Greg Ward's avatar Greg Ward

Support for the "install_headers" command: distribution option 'headers'

and method 'has_headers()'.
parent a810efe1
......@@ -146,6 +146,7 @@ class Distribution:
self.package_dir = None
self.py_modules = None
self.libraries = None
self.headers = None
self.ext_modules = None
self.ext_package = None
self.include_dirs = None
......@@ -699,6 +700,9 @@ class Distribution:
def has_modules (self):
return self.has_pure_modules() or self.has_ext_modules()
def has_headers (self):
return self.headers and len(self.headers) > 0
def has_scripts (self):
return self.scripts and len(self.scripts) > 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment