Skip to content

Add new URL for Reframe Bootstrap get_pip_url with Python 3.9 #3665

@wmarts

Description

@wmarts

The bootstrap script no longer supports python 3.9. The issue is that it points to a script at a generic URL "https://bootstrap.pypa.io/get-pip.py" which now requires version 3.10.

This could be fixed but adding the following after line 106 of reframe/bootstrap.sh:

elif [ "$pyver" == "3.9" ]; then
    get_pip_url="https://bootstrap.pypa.io/pip/3.9/get-pip.py"

The block that determines get_pip_url would then look like this:

pyver=$(python3 -c 'import sys; print(".".join(str(s) for s in sys.version_info[:2]))')
if [ "$pyver" == "3.6" ]; then
    get_pip_url="https://bootstrap.pypa.io/pip/3.6/get-pip.py"
elif [ "$pyver" == "3.7" ]; then
    get_pip_url="https://bootstrap.pypa.io/pip/3.7/get-pip.py"
elif [ "$pyver" == "3.9" ]; then
    get_pip_url="https://bootstrap.pypa.io/pip/3.9/get-pip.py"
else
    get_pip_url="https://bootstrap.pypa.io/get-pip.py"
fi

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions