aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authoridle sign <idlesign@yandex.ru>2016-11-26 21:42:08 +0700
committeridle sign <idlesign@yandex.ru>2016-11-26 21:42:08 +0700
commit69130241500d78735375e36eca1b3dc6a7048dd6 (patch)
tree01716a1da4c5f9c1a4fee03ecb22e280036d8f1c /setuptools/dist.py
parent7df349d07e6441a33427ad5c371f12bf6bedc529 (diff)
downloadexternal_python_setuptools-69130241500d78735375e36eca1b3dc6a7048dd6.tar.gz
external_python_setuptools-69130241500d78735375e36eca1b3dc6a7048dd6.tar.bz2
external_python_setuptools-69130241500d78735375e36eca1b3dc6a7048dd6.zip
Metadata and options are now could be set in setup.cfg (see #394).
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index 612040c8..c975abe0 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -19,6 +19,7 @@ from pkg_resources.extern import packaging
from setuptools.depends import Require
from setuptools import windows_support
from setuptools.monkey import get_unpatched
+from setuptools.config import ConfigMetadataHandler, ConfigOptionsHandler
import pkg_resources
@@ -342,6 +343,16 @@ class Distribution(_Distribution):
if getattr(self, 'python_requires', None):
self.metadata.python_requires = self.python_requires
+ def parse_config_files(self, filenames=None):
+ """Parses configuration files from various levels
+ and loads configuration.
+
+ """
+ _Distribution.parse_config_files(self, filenames=filenames)
+
+ ConfigMetadataHandler(self.metadata, self.command_options).parse()
+ ConfigOptionsHandler(self, self.command_options).parse()
+
def parse_command_line(self):
"""Process features after parsing command line options"""
result = _Distribution.parse_command_line(self)