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

Add comment

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