Skip to content

Commit ba73f2c

Browse files
committed
fixup for sdists
1 parent a111a5a commit ba73f2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/private/pypi/whl_library.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ def _whl_library_impl(rctx):
359359
enable_pipstar_extract = enable_pipstar and rp_config.bazel_8_or_later
360360

361361
# When pipstar is enabled, Python isn't used, so there's no need
362-
# to setup env vars to run Python.
363-
if enable_pipstar_extract:
362+
# to setup env vars to run Python, unless we need to build an sdist
363+
if enable_pipstar_extract and whl_path:
364364
environment = {}
365365
else:
366366
# Manually construct the PYTHONPATH since we cannot use the toolchain here

0 commit comments

Comments
 (0)