Skip to content

Supported python version not found on self-hosted runner #961

Closed

Description

@elderlabs

Description:
I have a self-hosted runner; Github's hosted runners aren't cheap at scale. It runs x86 Debian linux. Why? Ubuntu is bloated and Canonical is full of bad production practices. [fite me] My build action fails to run because setup-python possibly searches with platform_version instead of arch and platform alone.

Action version:
v5

Platform:

  • Ubuntu Linux x86

Runner type:

  • Self-hosted

Tools version:
All.

Repro steps:
Working in elderlabs/BetterDisco with build.yml.

Expected behavior:
I expect setup-python to treat the distro agnostically, or at the least, support Ubuntu's parent distro -- rather, not locked to Ubuntu alone. I understand this is the linux distro Github offers with their hosted runners, but they also allow self-hosted linux runners that aren't running Ubuntu. At the least, an override that's able to skip the platform_version would be a nice-to-have. Python is python, and in theory it should be able to work in most (linux) places identically.

Actual behavior:

The version '3.12.7' with architecture 'x64' was not found for Debian n/a.
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

If a patch can be pushed for difficult people like me, I'd be grateful. Thank you.

EDIT: This may be a variant of #716, though in my instance, I'm not looking for the ability to override outside of my action file, merely the treatment of linux universally.

Activity

  1. v-aparnajyothi-y commented on Oct 14, 2024

    @v-aparnajyothi-y
    Contributor

    Hello @elderlabs, Thank you for creating this issue and we will look into it :)

  2. v-priya-kinthali commented on Oct 21, 2024

    @v-priya-kinthali
    Contributor

    Hello @elderlabs 👋,
    Thank you for your input. Currently, our support for Python distributions is limited to the operating systems available on our GitHub-hosted runners. We appreciate your feedback and will consider incorporating broader support in future updates.

    This issue appears to be more of a feature request rather than a bug, and we will update the label accordingly.

  3. added
    feature requestNew feature or request to improve the current logic
    and removed
    bugSomething isn't working
    on Oct 21, 2024
  4. removed their assignment
    on Oct 21, 2024
  5. v-mahabaleshwars commented on Jan 6, 2025

    @v-mahabaleshwars
    Contributor

    Hi @elderlabs,

    Currently, our support for Python distributions is limited to the operating systems available on GitHub-hosted runners. While supporting non-Ubuntu Linux distributions could be useful, it introduces additional complexity and maintenance overhead. To ensure a stable experience, we focus on the platforms available on our hosted runners. You can refer to the setup-python documentation for more information.

    We are closing this issue now. Please feel free to reach out for any other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature requestNew feature or request to improve the current logic

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions