Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pipx/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, source: str, version: str, wrap_message: bool = True):
"but both the python command and the Python Launcher were not found on PATH."
)
if source == "the python-build-standalone project":
message += "listed in https://github.com/indygreg/python-build-standalone/releases/latest."
message += "listed in https://github.com/astral-sh/python-build-standalone/releases/latest."
super().__init__(message, wrap_message)


Expand Down
4 changes: 2 additions & 2 deletions src/pipx/standalone_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
"Windows": {"AMD64": ["x86_64-pc-windows-msvc-install_only.tar.gz"]},
}

GITHUB_API_URL = "https://api.github.com/repos/indygreg/python-build-standalone/releases/latest"
GITHUB_API_URL = "https://api.github.com/repos/astral-sh/python-build-standalone/releases/latest"
PYTHON_VERSION_REGEX = re.compile(r"cpython-(\d+\.\d+\.\d+)")


def download_python_build_standalone(python_version: str, override: bool = False):
"""When all other python executable resolutions have failed,
attempt to download and use an appropriate python build
from https://github.com/indygreg/python-build-standalone
from https://github.com/astral-sh/python-build-standalone
and unpack it into the pipx shared directory."""

# python_version can be a bare version number like "3.9" or a "binary name" like python3.10
Expand Down