Skip to content

py_wheel_dist does not declare runfiles #1130

@alokpr

Description

@alokpr

🐞 bug report

Affected Rule

py_wheel

Is this a regression?

Not a regression. Publishing a wheel is a new feature in version 0.19 which is broken

Description

bazel run //path/to:my_wheel.publish fails.

🔥 Exception or Error



ERROR    InvalidDistribution: Cannot find file (or expand pattern): '//path/to:my_wheel_dist/*'

🌍 Your Environment

Operating System:

  
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.6 LTS
Release:	18.04
Codename:	bionic
  

Output of bazel version:

  
Build label: 5.4.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Dec 15 16:14:25 2022 (1671120865)
Build timestamp: 1671120865
Build timestamp as int: 1671120865
  

Rules_python version:

  
0.19.0
  

Anything else relevant?

Adding the dist directory to runfiles fixes the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions