[Zope-CVS] SVN: zpkgtools/trunk/zpkgsetup/dist.py - fix typo
Fred L. Drake, Jr.
fred at zope.com
Fri Jul 16 18:11:49 EDT 2004
Log message for revision 26606:
- fix typo
- add some docstrings
Changed:
U zpkgtools/trunk/zpkgsetup/dist.py
-=-
Modified: zpkgtools/trunk/zpkgsetup/dist.py
===================================================================
--- zpkgtools/trunk/zpkgsetup/dist.py 2004-07-16 21:56:51 UTC (rev 26605)
+++ zpkgtools/trunk/zpkgsetup/dist.py 2004-07-16 22:11:49 UTC (rev 26606)
@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Distribution class which ensure we can operate with or without Python 2.4.
+"""Distribution class which ensures we can operate with or without Python 2.4.
$Id$
"""
@@ -27,7 +27,13 @@
from distutils.extension import Extension
class ZPkgExtension(Extension):
+ """Extension object that supports *depends* and *language*.
+ Older versions of the `distutils.extension.Extension` class
+ did not support the *depends* and *language* keywords and
+ attributes, but `ZPkgExtension` always does.
+ """
+
def __init__(self, *args, **kw):
self.depends = []
self.language = None
@@ -44,11 +50,17 @@
import distutils.core
distutils.core.Extension = ZPkgExtension
else:
- ZPkgExtension = distutils.extension.Extension
+ class ZPkgExtension(distutils.extension.Extension):
+ """Extension object that supports *depends* and *language*.
+ Older versions of the `distutils.extension.Extension` class
+ did not support the *depends* and *language* keywords and
+ attributes, but `ZPkgExtension` always does.
+ """
class ZPkgDistribution(distutils.dist.Distribution):
+ """Distribution that ensures features needed by **zpkg** are available."""
def __init__ (self, attrs=None):
self.package_data = None
More information about the Zope-CVS
mailing list