aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-03-17 10:30:34 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-03-17 10:30:34 -0400
commitcb9b87935598054da655f7367596d65364e576a3 (patch)
tree4c5cf3661a613e3b636708997a71cc3fbcacd6ca /setuptools/dist.py
parentd8170d79a1059b6c58e1b54d94c6600f85354bf6 (diff)
parent025690980c3540dc170abec3a3b18fd11f8b15bc (diff)
downloadexternal_python_setuptools-cb9b87935598054da655f7367596d65364e576a3.tar.gz
external_python_setuptools-cb9b87935598054da655f7367596d65364e576a3.tar.bz2
external_python_setuptools-cb9b87935598054da655f7367596d65364e576a3.zip
Merge branch 'master' into HEAD
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index a6928c49..b74dd0f5 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -413,7 +413,9 @@ class Distribution(Distribution_parse_config_files, _Distribution):
# Since this gets called multiple times at points where the
# keys have become 'converted' extras, ensure that we are only
# truly adding extras we haven't seen before here.
- self.metadata.provides_extras.add(extra.split(':')[0])
+ extra = extra.split(':')[0]
+ if extra:
+ self.metadata.provides_extras.add(extra)
self._convert_extras_requirements()
self._move_install_requirements_markers()