Skip to content

Python build standalone fails to download free-threaded builds #22997

@sureshjoshi

Description

@sureshjoshi

Multiple items at play here:

  1. version.json might be a few months stale (not a big deal, just needs a regen)
  2. Documentation for how to add URL-based PBS seems to be incorrect (order of URL vs SHA/length)
  3. Some PBSes are zst, which don't seem to be "officially" captured in our code, but it may work anyways as a result of what we shell out to (this was hard to tell, as it's mixed in with other errors and I couldn't even make it to a sandbox) -
    is_tar = archive_suffix.endswith(
  4. The free-threaded builds (and some other flavours) provide extra directories, not just the install dir - so our copying might be held up here too as it appears to expect the install_only or install_only_stripped gz files.

This can all be fixed pretty easily, but it begs the question of whether we should just use uv as an external tool and ask it to download the python versions to our named_caches (since astral owns the PBS repo).

Alternatively, science also does this better - both as a CLI tool, and here is the associated code which handles matching against different flavours: https://github.com/a-scie/lift/blob/24af473e116eb780350719f61bcdaa01b40ccf19/science/providers/python_build_standalone.py#L535

In any case, lots of solutions...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions