这是indexloc提供的服务,不要输入任何密码
Skip to content

See if we can get a build working with uv #1

@Maegereg

Description

@Maegereg

The build process for Core currently makes use of the tool.build.poetry.script option as a hook to compile our C dependencies during the build process. As the name suggests, this option is specific to Poetry (or more specifically, Poetry's build backend). Thus, switching from Poetry to uv would require us to do one of the following:

  • Use an equivalent option for uv -- it seems likely that Hatch's build hooks would work for us with minimal fuss, but we'll have to try it. uv is writing a build backend of their own, but it's still in alpha right now, and presumably Hatch will remain a well-supported option even after it is done.
  • Figure out how to continue using Poetry's build backend with uv. This should be possible, but again requires some investigation.
  • Rework our build process to compile the C libraries outside of the Python build process. This option isn't ideal because it would allow uv build to package stale versions of the C libraries/fail to package correctly at all on a fresh environment without running some extra steps beforehand.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions