Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Freezing zipimport into _bootstrap_python #99582

Closed
Labels
type-featureA feature request or enhancement
@kkpattern

Description

@kkpattern

Feature or enhancement

Freezingzipimport module into_boostrap_python.

Pitch

Currently,_bootstrap_python is used to freeze modules during python building. When running_bootstrap_python, stdlib files can be found in the source directory. However, when embedding cpython into another program, other build systems may be used to build cpython. Furthermore, these build systems may build cpython out of the source tree, even in a sandbox directory. Now, in order for the_bootstrap_python to function, we need to distribute the stdlib into the build directory. In this situation, a zip file of stdlib is the preferable way to do it. Unfortunately, thezipimport is not frozen into _bootstrap_python, so we can’t use a zip stdlib.

If we freezezipimport into _bootstrap_python it will ease the build process a lot. It’s a minor patch. We have tested it on Windows, Linux, and macOS. Admittedly, this change has no additional benefit to normal python building. But it doesn’t seem to be doing any harm.

Previous discussion

https://discuss.python.org/t/how-about-freezing-zipimport-into-bootstrap-python/21203

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp