Skip to content

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Oct 14, 2025

No description provided.

@zanieb
Copy link
Member Author

zanieb commented Oct 14, 2025

I encountered a test failure during PGO, tracked in python/cpython#140125 — ignoring the test for now.

Comment on lines +400 to +410
if not python_source:
python_version = entry["version"]
archive = download_entry(entry_name, DOWNLOADS_PATH)
else:
python_version = os.environ["PYBUILD_PYTHON_VERSION"]
archive = DOWNLOADS_PATH / ("Python-%s.tar.xz" % python_version)
print("Compressing %s to %s" % (python_source, archive))
with archive.open("wb") as fh:
create_tar_from_directory(
fh, python_source, path_prefix="Python-%s" % python_version
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some changes in here from my initial exploration of making 3.15 build from a source tree instead of a download entry. They're minor and fix bugs, so I think it's fine to leave them in.

@zanieb zanieb marked this pull request as ready for review October 14, 2025 17:11
)

elif action.startswith("cpython-") and action.endswith("-host"):
entry_name = action[:-5]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
entry_name = action[:-5]
entry_name = action.removesuffix("-host")

def build_cpython_host(
client,
image,
entry,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
entry: dict,

If we had a type hint here previously it would have been easier to see that it changed. :) Really we should throw a TypedDict at it.

Comment on lines +396 to +397
python_source=None,
entry_name=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit: at least one of these is required and in practice we seem to pass entry_name unconditionally. Can we do

Suggested change
python_source=None,
entry_name=None,
entry_name: str,
python_source: str | None = None,

@zanieb zanieb merged commit a4eb9b3 into main Oct 14, 2025
221 checks passed
@zanieb zanieb deleted the zb/315 branch October 14, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants