diff options
author | Greg Ward <gward@python.net> | 2000-05-27 01:36:14 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-05-27 01:36:14 (GMT) |
commit | 51def7d667a42eac177690e1fe00eab7f2102319 (patch) | |
tree | 93c3fc3a35c1c80eade6ca16079ef546f58035e6 /Lib/distutils/dist.py | |
parent | 2d238c56a6d28002aa5c24c732068cbe598fc5be (diff) | |
download | cpython-51def7d667a42eac177690e1fe00eab7f2102319.zip cpython-51def7d667a42eac177690e1fe00eab7f2102319.tar.gz cpython-51def7d667a42eac177690e1fe00eab7f2102319.tar.bz2 |
Support for the "install_headers" command: distribution option 'headers'
and method 'has_headers()'.
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r-- | Lib/distutils/dist.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index 33b3b65..1e8c632 100644 --- a/Lib/distutils/dist.py +++ b/Lib/distutils/dist.py @@ -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 |