Commit e1bc6caa authored by Jason R. Coombs's avatar Jason R. Coombs

Unload all pkg_resources modules and not just the main module. Fixes #345.

parent 4df44da1
......@@ -181,7 +181,12 @@ def use_setuptools(
def _unload_pkg_resources():
del sys.modules['pkg_resources']
del_modules = [
name for name in sys.modules
if name.startswith('pkg_resources')
]
for mod_name in del_modules:
del sys.modules[mod_name]
def _clean_check(cmd, target):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment