2 ms·
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 usi
by dagw 2y ago
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.
- datadeft 2y agouv 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
- dagw 2y agoI 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.
- datadeft 2y agoI see what you mean. You can use it with mise that has build support.
- sirfz 2y agoIt 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
- dagw 2y agoYes, that's my point. You need to bring your own 'real' build system to make uv doing anything non-trivial. And the fact that this work transparently with uv is a very good thing.