-
Notifications
You must be signed in to change notification settings - Fork 12
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
Directly call uv build
even when no [build-system]
is specified in the pyproject.toml
#307
base: develop
Are you sure you want to change the base?
Conversation
|
||
return dst_files | ||
_run_uv_command_with_indexes( | ||
["uv", "build", f"--out-dir={output_directory.absolute()}"], settings, self.project_directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly not: MaturinUvPythonBuildSystem
takes care of building wheels targetting Python stable ABI (abi3) for multiple platforms using cross-compilation whereas maturin
called via uv build
will by default only build a wheel for the current system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. The main goal here is cross-compilation. I don't think uv is providing anything like that out of the box (nor that it should)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
||
return dst_files | ||
_run_uv_command_with_indexes( | ||
["uv", "build", f"--out-dir={output_directory.absolute()}"], settings, self.project_directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly not: MaturinUvPythonBuildSystem
takes care of building wheels targetting Python stable ABI (abi3) for multiple platforms using cross-compilation whereas maturin
called via uv build
will by default only build a wheel for the current system.
979d8fc
to
64c61ea
Compare
[[entries]] | ||
id = "6a2d1204-cc1d-43f1-9b45-577aec55a104" | ||
type = "improvement" | ||
description = "Directly call `uv build` even when no \\[build-system\\] is specified" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this some escaping to pass as a command line argument to slap?
description = "Directly call `uv build` even when no \\[build-system\\] is specified" | |
description = "Directly call `uv build` even when no [build-system] is specified" |
logger.info("Run '%s'", " ".join(command)) | ||
sp.check_call(command, cwd=self.project_directory) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: we would really benefit to provide a single function for all these calls ;)
67cb8b1
to
057a7a9
Compare
Extract from the
uv
documentation on build systems:As such, this MR is proposing to remove the reliance on
pyproject-build
in favor ofuv build
.