-
-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pants repl doesn't work if there's distribution targets #16985
Comments
It seems that Github only allows attachements types from a white-list (e.g. JPEG, PNG, etc.) and git bundles are not on that list. However, you can find the bundle with the repo in the Slack theread linked above or via this direct link: https://files.slack.com/files-pri/T046T6T8L-F043JRSPRH7/download/example.bundle?origin_team=T046T6T8L |
Per request, I have pushed the example to a public repo here: https://gitlab.com/companionlabs-opensource/pants-bug |
Thanks! |
@jsirois any ideas on this? I took a look and nothing came to me after a few minutes of poking at it. |
This goes back to not yet landing wholistic proper treatment of python_distribution targets / aka the cython et. al, hack. I find:
Looking at the venv, it appears to be intransitive (requirements is correct - just 1 root requirement, but distributions is not):
The distributions should include these if transitive:
Of course the problem is we build these distributions intransitive here: pants/src/python/pants/backend/python/util_rules/local_dists.py Lines 153 to 193 in 4792a7e
In the past, the |
I've unassigned since I think I've pin-pointed the issue. Solving it will take someone committing the time to dig in. We've avoided that investment up until now. |
For more background the breadcrumbs lead here to the intro if |
Describe the bug
I'm having issues with how pants repl interacts with distribution targets. I have a sample library that depends on pyyaml . That library has a target named lib which is just a python_sources goal and a target named example_lib which is a python_distribution target. If I do:
everything works fine. But suppose I want a repl with all the libs in my monorepo available. The obvious way to do that would be
./pants repl ::
but that gives me:Note that the actual built distribution has its dependencies specified correctly:
I have a minimal repo that reproduces the issue in a git bundle which I will attach to this bug.
Pants version
2.13.0
OS
Linux (Debian Bullseye)
Additional info
There was some discussion about this on Slack: https://pantsbuild.slack.com/archives/C046T6T9U/p1663632448606739
The text was updated successfully, but these errors were encountered: