nnUNet icon indicating copy to clipboard operation
nnUNet copied to clipboard

publish a wheel

Open dimbleby opened this issue 6 months ago • 3 comments

I notice that this package publishes only source distributions, so that every user has to build the wheel themselves. Better for package owners to build and publish wheels once and for all.

I did not find a workflow in this repository for publishing or I would have submitted a pull request. If you are doing this manually a typical workflow would be something like

python -m pip install build twine
python -m build
twine upload dist/*

dimbleby avatar Jun 02 '25 17:06 dimbleby

We build wheels. You can pip install nnunetv2 :-)

FabianIsensee avatar Jun 05 '25 10:06 FabianIsensee

You do not publish wheels, as you can see at https://pypi.org/project/nnunet/#files

You publish only a source distribution

In python, all installation is from wheel. So by publishing only a source distribution you make every user build the wheel at install time. That's slower - and can go wrong. In recent weeks both setuptools and wheel have made breaking changes such that previously usable source distributions became unusable.

Much better for maintainers to build and publish wheels once and for all

dimbleby avatar Jun 05 '25 12:06 dimbleby

Good point, sorry for being confused earlier. I am on vacation + trips for the next couple of weeks and will do it afterwards

FabianIsensee avatar Jun 05 '25 12:06 FabianIsensee