-
-
Notifications
You must be signed in to change notification settings - Fork 232
Add support for Python 3.15 #819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I encountered a test failure during PGO, tracked in python/cpython#140125 — ignoring the test for now. |
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 | ||
) |
There was a problem hiding this comment.
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.
) | ||
|
||
elif action.startswith("cpython-") and action.endswith("-host"): | ||
entry_name = action[:-5] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entry_name = action[:-5] | |
entry_name = action.removesuffix("-host") |
def build_cpython_host( | ||
client, | ||
image, | ||
entry, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
python_source=None, | ||
entry_name=None, |
There was a problem hiding this comment.
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
python_source=None, | |
entry_name=None, | |
entry_name: str, | |
python_source: str | None = None, |
No description provided.