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

Fix running python_sources with pex --executable (Cherry-pick of #21047) #21086

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

cognifloyd
Copy link
Member

This fixes the feature added in #20497 as it broke using pants run on a python_source if the file name has - or other invalid characters. Bug reported here:
https://pantsbuild.slack.com/archives/C046T6T9U/p1717624913138789?thread_ts=1717624913.138789&cid=C046T6T9U

The other integration test for the pex --executable feature only tested running pex_binary, not python_source. So, I missed applying some of the path logic to both cases.

@cognifloyd cognifloyd added this to the 2.22.x milestone Jun 18, 2024
@cognifloyd cognifloyd added the category:bugfix Bug fixes for released features label Jun 18, 2024
@cognifloyd cognifloyd requested a review from tdyas June 18, 2024 18:29
@cognifloyd cognifloyd added backend: Python Python backend-related issues release-notes:not-required PR doesn't require mention in release notes labels Jun 18, 2024
@cognifloyd cognifloyd enabled auto-merge (squash) June 18, 2024 18:33
This fixes the feature added in #20497 as it broke using `pants run` on
a python_source if the file name has `-` or other invalid characters.
Bug reported here:

https://pantsbuild.slack.com/archives/C046T6T9U/p1717624913138789?thread_ts=1717624913.138789&cid=C046T6T9U

The other integration test for the pex --executable feature only tested
running pex_binary, not python_source. So, I missed applying some of the
path logic to both cases.
@cognifloyd cognifloyd force-pushed the cherry-pick-21047-to-2.22.x branch from 62baffa to 32a77a6 Compare June 18, 2024 20:41
@cognifloyd cognifloyd removed the release-notes:not-required PR doesn't require mention in release notes label Jun 18, 2024
@cognifloyd cognifloyd merged commit 4725f60 into 2.22.x Jun 19, 2024
25 checks passed
@cognifloyd cognifloyd deleted the cherry-pick-21047-to-2.22.x branch June 19, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: Python Python backend-related issues category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants