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

Add comment

parent 1ba91912
......@@ -144,8 +144,12 @@ def use_setuptools(
DeprecationWarning,
)
to_dir = os.path.abspath(to_dir)
# prior to importing, capture the module state for
# representative modules.
rep_modules = 'pkg_resources', 'setuptools'
imported = set(sys.modules).intersection(rep_modules)
try:
import pkg_resources
pkg_resources.require("setuptools>=" + version)
......
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