Re:uv downloads overtake Poetry for Wagtail users
by dagw on Monday March 17, 2025 @07:05AM
(#43387185)
UV is not (yet) a build system and does not get involved with compiling code. But easily lets you plug in any build system you want. So it will let you keep using whatever system you are currently using for building your C libraries. For example I use scikit-build-core for building all of my libraries C and C++ components with cmake and it works fine with uv.
[ Parent
| on HN ]
Re:uv downloads overtake Poetry for Wagtail users
by datadeft on Monday March 17, 2025 @07:11AM
(#43387223)
uv build
Building source distribution...
running egg_info
writing venv.egg-info/PKG-INFO
Successfully built dist/venv-0.1.0.tar.gz
Successfully built dist/venv-0.1.0-py3-none-any.whl
Re:uv downloads overtake Poetry for Wagtail users
by dagw on Monday March 17, 2025 @07:27AM
(#43387327)
I guess it depends on what you mean by a build system. From my understanding uv build basically just bundles up all the source code it finds, and packages it into a .whl with the correct metadata. It cannot actually do any build steps like running commands to compile or transform code or data in any way. For that you need something like setuptools or scikit-build or similar. All of which integrate seamlessly with uv.
Re:uv downloads overtake Poetry for Wagtail users
by datadeft on Monday March 17, 2025 @09:06AM
(#43388160)
I see what you mean. You can use it with mise that has build support.
Re:uv downloads overtake Poetry for Wagtail users
by sirfz on Monday March 17, 2025 @09:29AM
(#43388395)
It actually does exactly what pip does depending on your configured build backend, so if you have your pyproject.toml/setup.py configured to build external modules, `uv build` will run that and build a binary wheel