diff options
author | Marcel Bargull <marcel.bargull@udo.edu> | 2017-04-07 13:42:51 +0200 |
---|---|---|
committer | Marcel Bargull <marcel.bargull@udo.edu> | 2017-04-07 13:44:35 +0200 |
commit | abaf7c4dd76c56eb509f6a5f6caa2f8e886801b6 (patch) | |
tree | 89402fe4a6547efe8cb341883ea9f8a25305d45b /setuptools/dist.py | |
parent | bdbe0776c19646e703bd0b89ad3f33e6797256a7 (diff) | |
download | external_python_setuptools-abaf7c4dd76c56eb509f6a5f6caa2f8e886801b6.tar.gz external_python_setuptools-abaf7c4dd76c56eb509f6a5f6caa2f8e886801b6.tar.bz2 external_python_setuptools-abaf7c4dd76c56eb509f6a5f6caa2f8e886801b6.zip |
Fixes #999: support python_requires, py_modules in configuration files
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r-- | setuptools/dist.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index 71c6c288..fd1d28c2 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -166,7 +166,7 @@ def check_specifier(dist, attr, value): packaging.specifiers.SpecifierSet(value) except packaging.specifiers.InvalidSpecifier as error: tmpl = ( - "{attr!r} must be a string or list of strings " + "{attr!r} must be a string " "containing valid version specifiers; {error}" ) raise DistutilsSetupError(tmpl.format(attr=attr, error=error)) @@ -353,6 +353,8 @@ class Distribution(Distribution_parse_config_files, _Distribution): _Distribution.parse_config_files(self, filenames=filenames) parse_configuration(self, self.command_options) + if getattr(self, 'python_requires', None): + self.metadata.python_requires = self.python_requires def parse_command_line(self): """Process features after parsing command line options""" |