GeezerVison is showing github.com — feature: add a `python-path` output by mayeut · Pull Request #405 · actions/setup-python
Conversation
mayeut
commented
May 22, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Description:
Expose a python-path output containing the chosen Python executable path.
Related issue:
fix #309
mitigate #132
Check list:
- Mark if documentation changes are required.
- Mark if tests were added or updated to cover the changes.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
webknjaz reacted with heart emoji
Uh oh!
There was an error while loading. Please reload this page.
mayeut
changed the title
feature: add an interpreter-path output
feature: add a python-path output
May 23, 2022
Uh oh!
There was an error while loading. Please reload this page.
|
The failure for e2e-cache / Test poetry (Python pypy-3.7-v7.x, windows-latest) seems unrelated to changes in this PR.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hi @mayeut, why you don't want to use pythonLocation environment variable for this purpose?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
The output works doesn't rely on modifying the environment, and doesn't get overwritten. So you could do multiple setup-python's, and access the correct output. An example of this might be problematic:
- uses: actions/setup-python@v3
with:
python-version: "3.7"
- uses: some/composite-action@v1 # Runs a different setup-python internally
# Now pythonLocation is no longer the 3.7 one!
|
vsafonkin, mayeut, and webknjaz reacted with thumbs up emoji
webknjaz reacted with heart emoji
All reactions
-
👍
3 reactions
-
❤️
1 reaction
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Expose a `python-path` output containing the chosen Python executable path.
|
The failure for e2e-cache / Test poetry (Python pypy-3.7-v7.x, windows-latest) seems unrelated to changes in this PR.
(the previous failure on the same test went away with a relaunch of the workflow by @vsafonkin)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
tdfacer
pushed a commit
to ifit/setup-python
that referenced
this pull request
Oct 7, 2025
feature: add a `python-path` output
Reviewers
3 more reviewers
brcrista
brcrista approved these changes
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|