Skip to content

Commit 2339e75

Browse files
authored
Merge pull request #966 from yan12125/fix-issue962
Include 'enum' module as warnings indirectly imports it since python 3.6
2 parents 263283b + 27536d7 commit 2339e75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

virtualenv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def get_installed_pythons():
155155
'_collections_abc',
156156
'_bootlocale',
157157
])
158+
if minver >= 6:
159+
REQUIRED_MODULES.extend(['enum'])
158160

159161
if is_pypy:
160162
# these are needed to correctly display the exceptions that may happen

0 commit comments

Comments
 (0)