summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/extension.py
diff options
context:
space:
mode:
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