[Python-checkins] CVS: distutils/distutils dist.py,1.18,1.19
Greg Ward
python-dev@python.org
Fri, 26 May 2000 18:36:16 -0700
Update of /cvsroot/python/distutils/distutils
In directory slayer.i.sourceforge.net:/tmp/cvs-serv12039
Modified Files:
dist.py
Log Message:
Support for the "install_headers" command: distribution option 'headers'
and method 'has_headers()'.
Index: dist.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/dist.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** dist.py 2000/05/26 01:00:15 1.18
--- dist.py 2000/05/27 01:36:14 1.19
***************
*** 7,11 ****
# (extricated from core.py; actually dates back to the beginning)
! __revision__ = "$Id: dist.py,v 1.18 2000/05/26 01:00:15 gward Exp $"
import sys, os, string, re
--- 7,11 ----
# (extricated from core.py; actually dates back to the beginning)
! __revision__ = "$Id: dist.py,v 1.19 2000/05/27 01:36:14 gward Exp $"
import sys, os, string, re
***************
*** 147,150 ****
--- 147,151 ----
self.py_modules = None
self.libraries = None
+ self.headers = None
self.ext_modules = None
self.ext_package = None
***************
*** 699,702 ****
--- 700,706 ----
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):