Skip to content

What files should be included in source and binary distributions? #3051

Answered by abravalheri
mcarans asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mcarans, I will try to give my personal opinion bellow, but first I will take the opportunity to make a (not so brief) introduction:

I like to imagine sdists and wheel as different optimisation stages between the code that you write in a VCS repository and the files that ended up installed in the user machine, more or less like the diagram bellow:

(A) VCS checkout ---> (B) sdist ---> (C) wheel ---> (D) package installed in the final location

In general the stages (A) and (B) are mostly identical (with the exception of metadata files), so for 90% of the cases sdists will be only another way of distributing your source code. However in some cases you might want to optimise a little bit…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mcarans
Comment options

@abravalheri
Comment options

@webknjaz
Comment options

webknjaz Feb 3, 2022
Collaborator

Answer selected by webknjaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants