summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/extension.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-06-12 20:08:56 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-06-12 20:08:56 (GMT)
commit09e532bcecfb891b8aee0f9730fcbfccda2f8767 (patch)
treef3bd42c271e35f6e2c1a83aecb05965a78132fe7 /Lib/distutils/extension.py
parentaa6a664bbbfc611cf0131b954b715b4c917dc78c (diff)
downloadcpython-09e532bcecfb891b8aee0f9730fcbfccda2f8767.zip
cpython-09e532bcecfb891b8aee0f9730fcbfccda2f8767.tar.gz
cpython-09e532bcecfb891b8aee0f9730fcbfccda2f8767.tar.bz2
Add a new definition to Extension objects: depends.
depends is a list of files that the target depends, but aren't direct sources of the target. think .h files.
Diffstat (limited to 'Lib/distutils/extension.py')
-rw-r--r--Lib/distutils/extension.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/extension.py b/Lib/distutils/extension.py
index 3737712..d73bb08 100644
--- a/Lib/distutils/extension.py
+++ b/Lib/distutils/extension.py
@@ -73,6 +73,8 @@ class Extension:
used on all platforms, and not generally necessary for Python
extensions, which typically export exactly one symbol: "init" +
extension_name.
+ depends : [string]
+ list of files that the extension depends on
"""
def __init__ (self, name, sources,
@@ -86,6 +88,7 @@ class Extension:
extra_compile_args=None,
extra_link_args=None,
export_symbols=None,
+ depends=None,
):
assert type(name) is StringType, "'name' must be a string"
@@ -105,6 +108,7 @@ class Extension:
self.extra_compile_args = extra_compile_args or []
self.extra_link_args = extra_link_args or []
self.export_symbols = export_symbols or []
+ self.depends = depends or []
# class Extension