(Apr-08-2021, 05:16 PM)BernardChew Wrote: can u explain it for me about the difference between bdist_wheel and the book said "sdist"?
sdist
is a source distribution
.bdist
is a binary distribution
.For a
pure
Python project,those things are pretty close,advice use bdist
.Project includes any extension modules(can be C/C++ files) will
sdist
includes the source for those extension modules and will require a compiler
OS.The
bdist
includes the compiled form of those extension modules and does not require a compiler
run on a system that is close to the one you created the bdist
on.So example there is Gohlke that has most wheel that can be used on Windows.
In most cases will
pip install package
find wheel automatic,but is some cases can need specific wheel for Window or Linux.