Skip to content
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

[PR #6400/e1ed247d backport][3.8] Do not install C sources in binary distributions #6402

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Dec 9, 2021

This is a backport of PR #6400 as merged into master (e1ed247).

This does not affect source distributions, and Cython sources (.pyx) are
still installed.

What do these changes do?

Prevent C sources (_find_header.c, _find_header.h, _helpers.c, _http_parser.c, _http_writer.c, and _websocket.c) from being included in binary distributions such as wheels, without affecting Cython sources (_cparser.pxd, _find_header.pxd, _headers.pxi, _helpers.pyx, _http_parser.pyx, _http_writer.pyx, and _websocket.pyx) or source distributions.

Are there changes in behavior for the user?

Nothing changes except that the binary wheels are much smaller because they do not contain ~1.7MB of C sources.

Related issue number

Resolves #6399.

Checklist

  • I think the code is well written
  • Unit tests for the changes exist This doesn’t seem necessary.
  • Documentation reflects the changes No changes seem necessary.
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
    • This contribution is trivial, so this doesn’t seem necessary, but I can add it if desired.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

@patchback patchback bot requested review from asvetlov and webknjaz as code owners December 9, 2021 02:14
@webknjaz webknjaz enabled auto-merge (squash) December 9, 2021 02:31
@webknjaz webknjaz merged commit 83e9b8a into 3.8 Dec 9, 2021
@webknjaz webknjaz deleted the patchback/backports/3.8/e1ed247dd3aa9a2fc3cd6d87b4845849da6ee494/pr-6400 branch December 9, 2021 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants