Skip to content

Commit 0db96d6

Browse files
authored
Merge pull request #2765 from astaric/addon-drag-drop
[FIX] Broken installation of Installation of wheels
2 parents f18cdc2 + 8210ae5 commit 0db96d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Orange/canvas/application/addons.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,11 @@ def install(self, pkg):
815815
cmd = ["python", "-m", "pip", "install"]
816816
if self.user_install:
817817
cmd.append("--user")
818-
cmd.append(pkg.name)
818+
if pkg.package_url.startswith("http://"):
819+
cmd.append(pkg.name)
820+
else:
821+
# Package url is path to the (local) wheel
822+
cmd.append(pkg.package_url)
819823

820824
run_command(cmd)
821825

0 commit comments

Comments
 (0)