We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b261f9 commit 49264abCopy full SHA for 49264ab
light_the_torch/_pip/extract.py
@@ -76,6 +76,10 @@ def required_pytorch_dists(self) -> List[str]:
76
if not dists:
77
return []
78
79
+ # If the distribution was found in an extra requirement, pip appends this as
80
+ # additional information. We remove that here.
81
+ dists = [dist.split(";")[0] for dist in dists]
82
+
83
if not any(self._pytorch_core_pattern.match(dist) for dist in dists):
84
torch = self.PYTORCH_CORE
85
0 commit comments