summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/makefreeze.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-46748: Don't import <stdbool.h> in public headers (GH-31553)Petr Viktorin2022-02-251-2/+2
| | | | | | | <stdbool.h> is the standard/modern way to define embedd/extends Python free to define bool, true and false, but there are existing applications that use slightly different redefinitions, which fail if the header is included. It's OK to use stdbool outside the public headers, though. https://bugs.python.org/issue46748
* bpo-46608: exclude marshalled-frozen data if deep-freezing to save 300 KB ↵Kumar Aditya2022-02-041-6/+6
| | | | | | | | | | | | | space (GH-31074) This reduces the size of the data segment by **300 KB** of the executable because if the modules are deep-frozen then the marshalled frozen data just wastes space. This was inspired by comment by @gvanrossum in https://github.com/python/cpython/pull/29118#issuecomment-958521863. Note: There is a new option `--deepfreeze-only` in `freeze_modules.py` to change this behavior, it is on be default to save disk space. ```console # du -s ./python before 27892 ./python # du -s ./python after 27524 ./python ``` Automerge-Triggered-By: GH:ericsnowcurrently
* bpo-44131: Test Py_FrozenMain() (GH-26126)Victor Stinner2021-05-171-11/+9
| | | | | | | | | * Add test_frozenmain to test_embed * Add Programs/test_frozenmain.py * Add Programs/freeze_test_frozenmain.py * Add Programs/test_frozenmain.h * Add make regen-test-frozenmain * Add test_frozenmain command to Programs/_testembed * _testembed.c: add error(msg) function
* Issue #22826: The result of open() in Tools/freeze/bkfile.py is now betterSerhiy Storchaka2015-03-201-28/+26
| | | | | compatible with regular files (in particular it now supports the context management protocol).
* #18803: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-251-1/+1
|
* Minimal changes to make the "freeze" tool work again.Guido van Rossum2007-06-121-4/+3
| | | | There are other issues left, but these were basics (e.g. keys().sort()).
* Fix test_frozen.Guido van Rossum2007-02-091-2/+2
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-1/+1
| | | | From SF patch #852334.
* Apply diff2.txt from SF patch http://www.python.org/sf/572113Walter Dörwald2002-09-111-3/+2
| | | | | | | | (with one small bugfix in bgen/bgen/scantools.py) This replaces string module functions with string methods for the stuff in the Tools directory. Several uses of string.letters etc. are still remaining.
* Updated freeze.py to the new Makefile symbol layout.Marc-André Lemburg2002-04-041-3/+1
| | | | | | | Fixed a few compiler warnings. freeze.py now produces binaries which can import shared modules (unlike before).
* Part 2/2 of SF patch #416704: More robust freeze, by Toby Dickenson.Guido van Rossum2001-10-181-1/+8
| | | | | | | | | | | | | (With slight cosmetic improvements to shorten lines and a grammar fix to a docstring.) This addes -X and -E options to freeze. From the docstring: -X module Like -x, except the module can never be imported by the frozen binary. -E: Freeze will fail if any modules can't be found (that were not excluded using -x or -X).
* Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters2000-07-091-1/+1
|
* Sjoerd Mullender:Guido van Rossum1999-11-021-0/+1
| | | | Added some declarations to shut up compiler.
* New version, with contributions from Sjoerd Mullender and Mark Hammond.Guido van Rossum1998-08-251-2/+17
| | | | | | | | | | | | Sjoerd writes: This version of freeze creates one file per Python module, instead of one humongous file for all Python modules. bkfile: new module to used to write files with backups. No new file is produced if the new contents is identical to the old. New option "-x excluded-module" for modulefinder test program. New option "-i filename" for freeze main program to include a list of options in place of the -i option.
* Remove Emacs cruft.Guido van Rossum1998-05-181-4/+0
|
* If freezing with the -O option, the optimized bytecode files areGuido van Rossum1998-04-231-0/+4
| | | | | | used. It is useful to implicitly set the -O flag in the frozen application. (Sjoerd Mullender)
* Big changes by Mark Hammond to support freezing with DLLs on Windows.Guido van Rossum1998-03-201-1/+6
|
* Reindented, removed tabs.Guido van Rossum1998-03-051-33/+37
|
* Added support for packages.Guido van Rossum1998-03-051-56/+18
| | | | | | | We have a whole new module finder that uses the actual Python parser and scans the bytecode for IMPORT_NAME and IMPORT_FROM. This requires some support in import.c (that hasn't been checked in). New command line options for this: -d, -q, -m.
* Updated for new style build/install; much simpler!Guido van Rossum1997-07-191-1/+9
|
* Get struct _frozen defn from Python.h; new variable names.Guido van Rossum1996-06-171-5/+5
|
* Totally new "freeze" program.Guido van Rossum1994-10-031-0/+91