Skip to content

Conversation

@Ahajha
Copy link
Contributor

@Ahajha Ahajha commented Sep 3, 2025

When specifying data_files in py_wheel, allow just the directory to be specified (with a trailing slash), in which case it will use the existing filename. This avoids duplicating (potentially platform-specific) names. Additionally, targets with multiple files can be installed as a group to a folder, with the same filename-preserving behavior.

Before, this would result in the file simply not being installed, so this only changes already-broken behavior.

PR Instructions/requirements

  • Update CHANGELOG.md as applicable
  • Update docs and tests, as applicable
  • Delete these instructions prior to sending the PR

Ahajha and others added 2 commits November 19, 2025 03:07
When specifying `data_files` in `py_wheel`, allow just the directory to be specified (with a trailing slash), in which case it will use the file's name. This avoids duplicating (potentially platform-specific) names.
@Ahajha Ahajha marked this pull request as ready for review November 19, 2025 16:03
@Ahajha
Copy link
Contributor Author

Ahajha commented Nov 19, 2025

Sorry for the long pause while this sat here, been a busy few months but I got some time to come back to this. Still need to add a few tests + update docs, but the core functionality is ready.

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