8000 Document how to evade a specific version · Issue #18 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content

Document how to evade a specific version #18

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

Closed
Julian opened this issue Aug 28, 2019 · 5 comments
Closed

Document how to evade a specific version #18

Julian opened this issue Aug 28, 2019 · 5 comments
Assignees
Labels

Comments

@Julian
Copy link
Julian commented Aug 28, 2019

It'd be great if the documentation covered specifically how to "evade" a given version -- i.e., how does one use this action to provision 2.7 and 3.3, but if the 3.4 provisioning is broken for whatever reason, how does one drop down a level and provision that one themselves.

(Obviously related to #16, where now I'm trying to figure out how I use this for everything but the combination of pypy3-on-windows, where I have to figure out how to manually get the right version myself)

@Julian
Copy link
Author
Julian commented Aug 28, 2019

Covering this from the contributor's perspective would be great too (i.e. what file does one modify to fix the provisioning and send a PR -- though from what I can tell that seems possibly not in here? am I missing where the actual "meat" of the provisioning is?)

@Julian
Copy link
Author
Julian commented Aug 28, 2019

Ah I see, from the README: "optionally installing a version of python and adding to PATH. Note that this action only uses versions of Python already installed in the cache." -- I don't know what "the cache" refers to, but I guess I assume it's some thing already provisioned on virtual machines and all this thing does is know how to pull files out of it, there's no remote downloading involved?

(Would probably be great to document that too)

@damccorm
Copy link
Contributor

Yeah, the cache is on the image already, we don't control it. We could use some documentation here, I think I may want to hold off documenting this quite yet though because we're looking at changing a lot of this and having a repo to publish tool versions for each image (rather than having them in the tool cache).

Note also that you can check what versions are available on a given image by doing the same thing I do here.

@konradpabjan konradpabjan self-assigned this Nov 13, 2019
@konradpabjan
Copy link
Collaborator

A big help-doc was recently published that details Actions + Python https://help.github.com/en/actions/automating-your-workflow-with-github-actions/using-python-with-github-actions

The doc includes an example on how to exclude a specific version of Python. I've added a similar example to the README here and added a link to the help-doc.

The help-doc and recent changes to the README here document all of the intricacies of how setup-python works.

@Julian
Copy link
Author
Julian commented Dec 23, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
0