setup-python icon indicating copy to clipboard operation
setup-python copied to clipboard

Support non-ubuntu linux distributions by specify location of versions-manifest.json

Open ganadist opened this issue 2 years ago • 1 comments

Description: I'm using GHES with runners under CentOS / Rocky Linux. But setup-python is supported on recent Ubuntu versions only, and it fails on other linux distributions, yet. So, I propose to support other linux distributions by simple changes.

Justification:

  • Recent actions/tool-cache library supports to determine platform version for non-ubuntu linux distros ( https://github.com/actions/toolkit/pull/594 )
  • setup-python actions has hard coded location of versions-manifest.json. If location of versions-manifest.json can be provided users, actions can be used for various linux platform. I propose 3 inputs options for this.
    • versions-manifest-repo-owner : Github owner of versions-manifest.json
    • versions-manifest-repo-name : Github repository of versions-manifest.json
    • versions-manifest-repo-branch : Github branch of versions-manifest.json If these values are not set, default value should be same with current behavior.

Are you willing to submit a PR?

I'll try it :D

ganadist avatar Aug 13 '23 17:08 ganadist

Hello @ganadist. Thank you for your report. We'll take a look at this feature request.

dmitry-shibanov avatar Aug 14 '23 08:08 dmitry-shibanov