You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pip.parse fails for source-less wheels with dependencies #4053
I expected py-spy==0.4.1 to work as a py_library dependency, but observed that whl_library_targets points the wrapper's srcs at an empty source target. Bazel then rejects the wrapper during analysis.
We hit a similar regression with stub-only packages (e.g. types-requests, types-protobuf) on 2.3.1. These packages contain only .pyi files and no .py files. The whl_library_targets macro separates .pyi files into pyi_srcs, leaving the py_library's srcs attribute empty, which Bazel rejects with:
'srcs' does not produce any py_library srcs files (expected .py or .py3)
Same error as the py-spy case but different trigger — binary wheels with compiled extensions vs pure-stub type packages with only .pyi files.
Activity
honnix commentedon Aug 18, 2026
We hit a similar regression with stub-only packages (e.g. types-requests, types-protobuf) on 2.3.1. These packages contain only .pyi files and no .py files. The whl_library_targets macro separates .pyi files into pyi_srcs, leaving the py_library's srcs attribute empty, which Bazel rejects with:
'srcs' does not produce any py_library srcs files (expected .py or .py3)
Same error as the py-spy case but different trigger — binary wheels with compiled extensions vs pure-stub type packages with only .pyi files.
fix(pypi): support source-less wheels with dependencies (bazel-contri…