mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
[3.12] gh-65701: document that freeze doesn't work with framework builds on macOS (GH-113352) (#113362)
gh-65701: document that freeze doesn't work with framework builds on macOS (GH-113352)
* gh-65701: document that freeze doesn't work with framework builds on macOS
The framework install is inherently incompatible with freeze. Document
that that freeze doesn't work with framework builds and bail out
early when trying to run freeze anyway.
(cherry picked from commit df1eec3dae
)
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
parent
2ddee2e245
commit
d8825c2e76
3 changed files with 12 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
The :program:`freeze` tool doesn't work with framework builds of Python.
|
||||
Document this and bail out early when running the tool with such a build.
|
|
@ -222,6 +222,11 @@ source tree).
|
|||
It is possible to create frozen programs that don't have a console
|
||||
window, by specifying the option '-s windows'. See the Usage below.
|
||||
|
||||
Usage under macOS
|
||||
-----------------
|
||||
|
||||
On macOS the freeze tool is not supported for framework builds.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
|
|
|
@ -136,6 +136,11 @@ def main():
|
|||
makefile = 'Makefile'
|
||||
subsystem = 'console'
|
||||
|
||||
if sys.platform == "darwin" and sysconfig.get_config_var("PYTHONFRAMEWORK"):
|
||||
print(f"{sys.argv[0]} cannot be used with framework builds of Python", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
# parse command line by first replacing any "-i" options with the
|
||||
# file contents.
|
||||
pos = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue