aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/config.py')
-rw-r--r--setuptools/config.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/setuptools/config.py b/setuptools/config.py
index 6fa50d20..23fc25ea 100644
--- a/setuptools/config.py
+++ b/setuptools/config.py
@@ -260,11 +260,8 @@ class ConfigHandler(object):
if not value.startswith(include_directive):
return value
- filepaths = value[len(include_directive):]
- filepaths = filepaths.split(',')
- filepaths = map(str, filepaths) # Needed for Python 2
- filepaths = map(str.strip, filepaths)
- filepaths = map(os.path.abspath, filepaths)
+ spec = value[len(include_directive):]
+ filepaths = (os.path.abspath(path.strip()) for path in spec.split(','))
current_directory = os.getcwd()