summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/extension.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-06-03 10:31:15 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-06-03 10:31:15 (GMT)
commite6ed2f9ea03af5caedf656945ad68141ffe34d5a (patch)
treec435d4ab147b8f0b02e335e78c979fa5482fb79c /Lib/distutils/extension.py
parent8d6e26d6e4002fd9787e73c6cd843d0051872ea1 (diff)
downloadcpython-e6ed2f9ea03af5caedf656945ad68141ffe34d5a.zip
cpython-e6ed2f9ea03af5caedf656945ad68141ffe34d5a.tar.gz
cpython-e6ed2f9ea03af5caedf656945ad68141ffe34d5a.tar.bz2
Merged revisions 73166 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r73166 | tarek.ziade | 2009-06-03 12:26:26 +0200 (Wed, 03 Jun 2009) | 1 line added some tests for distutils.extension + code cleanup ........
Diffstat (limited to 'Lib/distutils/extension.py')
-rw-r--r--Lib/distutils/extension.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/Lib/distutils/extension.py b/Lib/distutils/extension.py
index f7e7b4e..a4054ff 100644
--- a/Lib/distutils/extension.py
+++ b/Lib/distutils/extension.py
@@ -139,8 +139,10 @@ class Extension:
def read_setup_file(filename):
- from distutils.sysconfig import \
- parse_makefile, expand_makefile_vars, _variable_rx
+ """Reads a Setup file and returns Extension instances."""
+ from distutils.sysconfig import (parse_makefile, expand_makefile_vars,
+ _variable_rx)
+
from distutils.text_file import TextFile
from distutils.util import split_quoted
@@ -165,10 +167,8 @@ def read_setup_file(filename):
file.warn("'%s' lines not handled yet" % line)
continue
- #print "original line: " + line
line = expand_makefile_vars(line, vars)
words = split_quoted(line)
- #print "expanded line: " + line
# NB. this parses a slightly different syntax than the old
# makesetup script: here, there must be exactly one extension per
@@ -234,13 +234,4 @@ def read_setup_file(filename):
extensions.append(ext)
- #print "module:", module
- #print "source files:", source_files
- #print "cpp args:", cpp_args
- #print "lib args:", library_args
-
- #extensions[module] = { 'sources': source_files,
- # 'cpp_args': cpp_args,
- # 'lib_args': library_args }
-
return extensions