Skip to content

Commit 415640e

Browse files
committed
Support source built source artifacts
1 parent dd1d0ae commit 415640e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pip/private/extension.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ def _raw_sdist_repos(module_ctx, lock_specs):
227227
if sdist == None:
228228
continue
229229

230-
url = sdist["url"]
230+
# Note that for source=url=... packages, the URL may not be
231+
# repeated in the sdist spec so we have to replicate it down.
232+
url = sdist.get("url", package["source"].get("url"))
231233
shasum = sdist["hash"][len("sha256:"):]
232234

233235
# FIXME: Do we need to factor in the shasum or source her? Could

0 commit comments

Comments
 (0)