Skip to content
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

wheel Build output directory is getting respected #10393

Closed
bakkiaraj opened this issue Jan 8, 2025 · 6 comments
Closed

wheel Build output directory is getting respected #10393

bakkiaraj opened this issue Jan 8, 2025 · 6 comments
Labels
question Asking for clarification or support

Comments

@bakkiaraj
Copy link

[tool.hatch.build]
directory = "buildout"

I expected the wheel files go in buildout but uv still making under dist.

Is this expected?

@konstin
Copy link
Member

konstin commented Jan 8, 2025

This option is for the hatch frontend, not for the hatchling backend. When using hatchling through a different frontend, such as uv build or python -m build, the frontend sets the output directory (and uv doesn't read configuration from other tools).

@konstin konstin added the question Asking for clarification or support label Jan 8, 2025
@bakkiaraj
Copy link
Author

Thanks @konstin , How do i set the output directory of wheel builds in UV?

@konstin
Copy link
Member

konstin commented Jan 9, 2025

You can use uv build --out-dir <...>

@bakkiaraj
Copy link
Author

@konstin , Thanks again , --out-dir= works well. I spent long time in https://docs.astral.sh/uv/reference/cli/#uv-build document but this option is not (yet) documented.

uv build --help also did not show this --out-dir option.

@konstin
Copy link
Member

konstin commented Jan 10, 2025

What platform are you on? It does show it for me on ubuntu 24.04:

Image

@bakkiaraj
Copy link
Author

Sorry My bad, I missed earlier , It shows for me too. I am in Linux (CentOS).
This ticket can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

2 participants