xacc.info("Retrieving package and checking requirements..")
package_path=PLUGIN_INSTALLATIONS[install_name]
fork,vinMASTER_PACKAGES.items():
ifinstall_nameinv:
requirement=REQUIREMENTS[k]['module']
mdir=k
importlib.import_module(requirement)
exceptKeyErrorasex:
xacc.info("There is no '{}' XACC Python plugin package available.".format(install_name))
exit(1)
# this might have to change as more packages and their requirements get added
# for now, it works fine, and should work fine for any XACC requirement
# that needs to be git-cloned and built with cmake-make (vqe)
exceptModuleNotFoundErrorasex:
xacc.info("You do not have the required Python module `{}` to install and run the '{}' XACC benchmark plugin package.".format(requirement,install_name))