34
loading...
This website collects cookies to deliver better user experience
from mypkg.module import func
pip install
.Built Distributions
and Source Distributions
.sdist
is very similar to source code - the code that you write. Therefore, sdist
will not include platform-specific binaries. The result is an archive (.tar.gz) that contains the source code of your package and instructions on how to build it, and the target system of your client will perform the actual build to create a bdist (wheel).bdist
, is more complex than an sdist in that it actually "builds" the package. Principally, bdist
creates a distribution containing .so
, .dll
, .dylib
for binary modules. The result is an archive that is specific to a platform (for example linux-x86_64) and to a version of Python (for example Python3.9). bdist
in the client is immediate, as they don't need to build anything (you as the package author have already built it for them, setuptools doesn't need to build it). The downside is that you as the package author have to build for multiple platforms and versions and upload all of the distributions for max compatibility.sdist
.