-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
[bug] pdm fails to build whl when use_uv is True #3231
Comments
I have implemented the solution to directly use |
Can you reproduce it on the main branch? |
Yes, I can reproduce it on 4401ff5 |
@monchin Thanks, can you contribute the PR |
My pleasure. I have made the PR. And I also found that |
* fix: build fails when use_uv is true(#3231) * fix: delete uv build .gitignore so that publish could work * fix: make uv build compatible to --no-clean * feat: uv build enables --quiet * fix: resolve #3237 conversation * fix: build test failed --------- Co-authored-by: c.men <[email protected]>
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
set
pdm config use_uv false
, then make a pdm project, and runpdm build
, it fails with logActual behavior
It fails
Expected behavior
It successes just as use_uv is False
Environment Information
I'm using pdm==2.19.3. I checked the source code, and found that when building whl, the Synchronizer's requirements would be just
pdm-backend
, withgroups=[]
, soreq.groups[0]
would be out of range. In my opinion, the simplest way is to runuv build
whenuse_uv
is True, it seemsuv build
can recognize the contents in[tool.pdm.build]
such asexcludes
,is-purelib
, etc. Butuv build
doesn't support--no-sdist
, so ifpdm build --no-sdist
,tar.gz
should be removed afteruv build
is called.The text was updated successfully, but these errors were encountered: