Skip to content

Commit 8a62778

Browse files
fix common setup
1 parent 5054ae7 commit 8a62778

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common_setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class EggInfo(EggInfoCommand):
3838
def run(self):
3939
if self.distribution.extras_require is None:
4040
self.distribution.extras_require = {}
41-
self.distribution.extras_require['tests'] = self.distribution.tests_require
41+
if 'tests' not in self.distribution.extras_require and hasattr(self.distribution, 'tests_require'):
42+
self.distribution.extras_require['tests'] = self.distribution.tests_require
4243
EggInfoCommand.run(self)
4344

4445

0 commit comments

Comments
 (0)