1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-11-25 01:38:56 +00:00

Update doc for specifying location of versions-manifest.json

This commit is contained in:
YOUNG HO CHA 2023-08-14 02:20:22 +09:00
parent 18fddbf4c9
commit 5eec583c8a

View file

@ -512,6 +512,26 @@ Python distributions are only available for the same [environments](https://gith
If you have a supported self-hosted runner and you would like to use `setup-python`, there are a few extra things you need to make sure are set up so that new versions of Python can be downloaded and configured on your runner. If you have a supported self-hosted runner and you would like to use `setup-python`, there are a few extra things you need to make sure are set up so that new versions of Python can be downloaded and configured on your runner.
### Specifying versions-manifest.json
If you are using an unsupported platform version, you can try to host your prebuilt python binaries and specify location of `versions-manifest.json` file.
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.7.5'
versions-manifest-repo-owner: your_account
versions-manifest-repo-name: your_repo
versions-manifest-repo-branch: your_branch
- run: python my_script.py
```
In this case, location of `versions-manifest.json` will be `https://raw.githubusercontent.com/your_account/your_repo/your_branch/versions-manifest.json`.
Location of `versions-manifest.json` is always searched on `github.com` only, because [actions/tool-cache](https://github.com/actions/toolkit/tree/main/packages/tool-cache) does not support Github Enterprise Server, yet.
### Windows ### Windows
- Your runner needs to be running with administrator privileges so that the appropriate directories and files can be set up when downloading and installing a new version of Python for the first time. - Your runner needs to be running with administrator privileges so that the appropriate directories and files can be set up when downloading and installing a new version of Python for the first time.