-
Notifications
You must be signed in to change notification settings - Fork 667
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
uv sync
freezes infinitely at the container root
#6443
Comments
Thanks for the thorough report! Does this work if you use hatchling as a build backend instead of setuptools, e.g. as we do in default in |
Hm, that's really interesting: it builds fine with Just for the sake of completeness, here's what does build:
|
Created an issue to improve messaging there #6446 |
Ough. Is there any way to spell "I don't want the root project built - please just install the dependencies as specified"? |
Not yet, but probably soon — lots of discussion on that at #4028 I'd highly recommend not using setuptools in the meantime, maybe this needs to be reported there? I'm not sure without really digging in. |
I'll try to debug a bit today, but this really looks like a setuptools problem - I'll report my investigation here later and close the issue if it's not on uv's side, reporting my observations to setuptools instead. |
Well, sorry for spending your time - this bug has nothing to do with
Without this, setuptools apparently try to scan the whole image's filesystem while working in |
To reproduce, try building the following Dockerfile (remove
sudo
if your docker is rootless):This is not specific to Django, according to my experiments.
The build freezes after
uv_build::run_python_script script="get_requires_for_build_editable", python_version=3.11.9
verbose log, keeping a high CPU load for a few minutes.Output
However, this only happens if I build this at the root of filesystem. Adding
WORKDIR /home
before installation recovers everything, the build completes in seconds.Healthy output
The text was updated successfully, but these errors were encountered: