for root, _, files in os.walk(root_dir):
for f in files:
if f.endswith(".whl"):
return os.path.join(root, f)
raise AssertionError("Failed to generate a wheel for {}".format(target))
@staticmethod
def install_wheel(wheel, root_dir):
After Change
wheel_files = Path(root_dir).rglob("*.whl")
if not wheel_files:
raise AssertionError(f"Failed to generate a wheel for {target}")
return str(next(wheel_files))
@staticmethod
def install_wheel(wheel, root_dir):
importable_path = os.path.join(root_dir, "install", os.path.basename(wheel))