aspect-build / aspect-build/rules_py

[Bug]: `build` and `setuptools` being missing produces odd errors

Open
#887 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Starlark
Stars
145
Forks
97
Avg merge
1d 1h
Merged PRs (30d)
71

Description

### What happened?

In order for us to do sdist builds for users, we need `build` at a minimum and often `wheel` and `setuptools` too. The UV extension produces the very much not obvious error

```
Error in fail: Unable to resolve a default version for requirement "build" in @@//cases/uv-default-version-xxx:uv.lock
```

if the user hasn't provided these dependencies. We should try to provide a more specific warning if we can.

### Version

Development (host) and target OS/architectures:

Output of `bazel --version`:

Version of the Aspect rules, or other relevant rules from your
`WORKSPACE` or `MODULE.bazel` file:

Language(s) and/or frameworks involved:

### How to reproduce

```shell

```

### Any other information?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the UV extension's handling of sdist builds and missing build, wheel, or setuptools dependencies. Reproduce the shown resolution error with a project that omits these dependencies, then identify the existing warning or error path. Done means users receive a more specific warning instead of the default-version resolution error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.