Source distribution? #1130
Replies: 4 comments 6 replies
-
There's ways to put together a proper sdist, but until then, I do agree that it shouldn't have the prebuilt binaries included. We would ideally want the sdist to invoke cmake and build the same way we do. There would be some work needed to make that happen. |
Beta Was this translation helpful? Give feedback.
-
The sdist containing the precompiled binaries is a packaging bug, but it's not a big deal in the grand scheme of things. (That said, if all distributions are the same size, it sounds like all of them contain all binaries?) As I said somewhere, we might not even want to push sdists at all to PyPI right now, since bnb is non-trivial to compile (even with the cmake stuff). We'll want to first merge the pyproject.toml PR (sorry, on mobile, hard to look it up) and see that eg. |
Beta Was this translation helpful? Give feedback.
-
Btw, I submitted a request to increase our PyPi limit and am also looking into how much we're using of the total limit of 10GB for all artifacts (Tim has to look into that, he's the only one that can see that), because otherwise we might be unexpectedly not able to release at some point. I want to avoid that. I suspect that we're not too far off the 10 GB: my thinking being that with source distro and built distro each having been around 100MB x 43 releases x 2 types of distros we might already be at ~8.5GB.. Just a rough, back of the envelope calculation. |
Beta Was this translation helpful? Give feedback.
-
Source dists are probably not terribly useful at all at this point, until the .so files can be compiled from source using the Python builder (i.e. running cmake from the build backend). In either case, they should not contain any binaries. If they are it must be a bug. But I wasn't aware we even built source wheels? |
Beta Was this translation helpful? Give feedback.
-
I was just looking into some stuff around the PyPi file size limit and overall size limit for all files together. While looking at the releases, I realized that so far Tim was also publishing source distributions. What's strange is that source distributions, by their very nature, shouldn't contain pre-compiled binaries. But the size is almost the same and it does contain all binaries.
Not sure what to do about this. Do you guys have any opinion on this?
cc @matthewdouglas @rickardp @akx @wkpark
Beta Was this translation helpful? Give feedback.
All reactions