-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Do not install C sources in binary distributions #46739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not install C sources in binary distributions #46739
Conversation
This does not affect source distributions, and Cython sources (.pyx) are still installed.
Does this make a noticeable difference in wheel size at all? Somewhat inclined to just keep them as is so that the source code stays intact |
On Python 3.10 / Linux / x86_64, for the If this isn’t merged upstream—which is fine—we’ll probably still carry the patch downstream in Fedora Linux. There are other ways for users of the |
does this change the sdists at all? cc @fangchenli |
I checked. The .c and .h files are still in the sdist. So it probably doesn't change the sdist. |
Correct: as mentioned in the original PR description, this affects binary distributions including wheels, but not source distributions. |
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
There is nothing else to be done here. The PR simply needs to be approved or rejected. |
cc @simonjayhawkins if any issues |
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
let's merge on green and we can then check nightlies that there are no build issues. |
Thanks @musicinmybrain |
With this PR, binary distributions, including wheels, no longer contain
.c
and.h
C source files inpandas/_libs/src
andpandas/_libs/tslibs/src
. Shipping these sources in binary distributions doesn’t seem to have any clear benefit.This does not affect source distributions, and Cython sources (
.pyx
), definition files (.pxd
), and include files (.pxi
) are still installed with binary distributions.doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature. Should I do this?