Skip to content

Don't accidentally include C source in built whl - #130

Merged
jcrist merged 1 commit into
mainfrom
dont-include-c-source-in-wheel
Jun 27, 2022
Merged

Don't accidentally include C source in built whl#130
jcrist merged 1 commit into
mainfrom
dont-include-c-source-in-wheel

Conversation

@jcrist

@jcrist jcrist commented Jun 27, 2022

Copy link
Copy Markdown
Member

The include_package_data=True flag was set (I think this was a
copy-paste from an example for distributing .pyi files in the
package). This option automatically includes all files in the source
tree in the built wheel as package data (including the original C
source). Since we alreay manually set package_data, the boolean flag
is unnecessary, and the C source adds a (comparatively) non-negligible
amount of data to the the built whl. No need to set this flag, and
removing it decreases the package size.

The `include_package_data=True` flag was set (I think this was a
copy-paste from an example for distributing `.pyi` files in the
package). This option automatically includes all files in the source
tree in the built wheel as package data (including the original C
source). Since we alreay manually set `package_data`, the boolean flag
is unnecessary, and the C source adds a (comparatively) non-negligible
amount of data to the the built `whl`. No need to set this flag, and
removing it decreases the package size.
@jcrist
jcrist merged commit 0f882e0 into main Jun 27, 2022
@jcrist
jcrist deleted the dont-include-c-source-in-wheel branch June 27, 2022 03:27
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.

1 participant