#NEWLINE# def register_finders( ) : #NEWLINE# #INDENT# 'Register finders necessary for PEX to function properly.' #NEWLINE# global __PREVIOUS_FINDER #NEWLINE# if __PREVIOUS_FINDER : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# previous_finder = _get_finder ( zipimport . zipimporter ) #NEWLINE# assert previous_finder , 'This appears to be using an incompatible setuptools.' #NEWLINE# pkg_resources . register_finder ( zipimport . zipimporter , ChainedFinder . of ( find_eggs_in_zip , find_wheels_in_zip ) ) #NEWLINE# _add_finder ( pkgutil . ImpImporter , find_wheels_on_path ) #NEWLINE# if ( importlib_bootstrap is not None ) : #NEWLINE# #INDENT# _add_finder ( importlib_bootstrap . FileFinder , find_wheels_on_path ) #NEWLINE# #UNINDENT# __PREVIOUS_FINDER = __PREVIOUS_FINDER