]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Support for the "install_headers" command: distribution option 'headers'
authorGreg Ward <gward@python.net>
Sat, 27 May 2000 01:36:14 +0000 (01:36 +0000)
committerGreg Ward <gward@python.net>
Sat, 27 May 2000 01:36:14 +0000 (01:36 +0000)
and method 'has_headers()'.

Lib/distutils/dist.py

index 33b3b657b187542987c1a9195a72ea95ce89f382..1e8c63243b423562f11fa1420fc54948f6a4a4bf 100644 (file)
@@ -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