summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/freeze.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-65701: document that freeze doesn't work with framework builds on macOS ↵Ronald Oussoren2023-12-211-0/+5
| | | | | | | | | | | (#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. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* bpo-45395: Make custom frozen modules additions instead of replacements. ↵Eric Snow2021-10-281-6/+0
| | | | | | | | | (gh-28778) Currently custom modules (the array set on PyImport_FrozenModules) replace all the frozen stdlib modules. That can be problematic and is unlikely to be what the user wants. This change treats the custom frozen modules as additions instead. They take precedence over all other frozen modules except for those needed to bootstrap the import system. If the "code" field of an entry in the custom array is NULL then that frozen module is treated as disabled, which allows a custom entry to disable a frozen stdlib module. This change allows us to get rid of is_essential_frozen_module() and simplifies the logic for which frozen modules should be ignored. https://bugs.python.org/issue45395
* bpo-42613: Fix freeze.py config directory (GH-23792)Victor Stinner2020-12-161-10/+10
| | | Fix freeze.py tool to use the prope config and library directories.
* bpo-22831: Use "with" to avoid possible fd leaks in tools (part 2). (GH-10927)Serhiy Storchaka2019-03-301-1/+2
|
* bpo-32217: Correct usage of ABI tags in freeze. (GH-4719)AraHaan2019-03-231-1/+4
| | | | Check for sys.abiflags before using since not all platforms have it defined.
* bpo-35471: Remove the macpath module (GH-11129)Victor Stinner2018-12-141-1/+1
| | | | Python 2.4 dropped MacOS 9 support. The macpath module was deprecated in Python 3.7. This change removes it.
* Issue #27355: Removed support for Windows CE. It was never finished,Larry Hastings2016-09-051-3/+1
| | | | and Windows CE is no longer a relevant platform for Python.
* Issue #27626: Merge spelling fixes from 3.5Martin Panter2016-07-281-1/+1
|\
| * Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-281-1/+1
| | | | | | | | Based on patch by Ville Skyttä.
* | Issue #25985: sys.version_info is now used instead of sys.versionSerhiy Storchaka2016-02-111-1/+1
|/ | | | to format short Python version.
* Issue #23911: Move path-based bootstrap code to a separate frozen module.Eric Snow2015-05-031-1/+3
|
* Issue #22826: The result of open() in Tools/freeze/bkfile.py is now betterSerhiy Storchaka2015-03-201-14/+3
| | | | | compatible with regular files (in particular it now supports the context management protocol).
* Issue #16047: Fix module exception list and __file__ handling in freeze.Martin v. Löwis2014-03-301-0/+4
| | | | Patch by Meador Inge.
* Issue #11824: Consider ABI tags in freeze. Patch by Meador Inge.Martin v. Löwis2014-03-301-4/+6
|
* Use OESeeror instead of os.error (#16720)Andrew Svetlov2012-12-241-1/+1
| | | | Patch by Serhiy Storchaka.
* #16135: Removal of OS/2 support (C code and Docs)Jesus Cea2012-10-051-1/+1
|
* Minimum fixes to make freeze.py do something useful.Georg Brandl2010-08-021-1/+1
|
* convert shebang lines: python -> python3Benjamin Peterson2010-03-111-1/+1
|
* More 2to3 fixes in the Tools directory. Fixes #2893.Georg Brandl2008-05-161-1/+1
|
* some RiscOS stuff I missed before (was only looking for "RISCOS")Skip Montanaro2007-08-171-1/+1
|
* Minimal changes to make the "freeze" tool work again.Guido van Rossum2007-06-121-2/+1
| | | | There are other issues left, but these were basics (e.g. keys().sort()).
* Fix test_frozen.Guido van Rossum2007-02-091-9/+9
|
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-4/+4
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* Remove apply()Neal Norwitz2006-03-171-1/+1
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-6/+6
|
* Small fixes in freeze.py.Gustavo Niemeyer2004-05-081-3/+3
|
* modulefinder.py is not a freeze private module anymore.Gustavo Niemeyer2003-05-261-1/+1
|
* replace obsolete 'exceptions' implicit by 'warnings'Just van Rossum2003-03-181-1/+1
|
* [ 684677 ] Allow freeze to exclude implicitsJust van Rossum2003-03-081-3/+6
|
* Apply diff2.txt from SF patch http://www.python.org/sf/572113Walter Dörwald2002-09-111-7/+6
| | | | | | | | (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-1/+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-8/+36
| | | | | | | | | | | | | (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).
* Separate CFLAGS and CPPFLAGS. CFLAGS should not contain preprocessorNeil Schemenauer2001-06-021-1/+3
| | | | directives, which is the role of CPPFLAGS. Closes SF patch #414991.
* Lawrence Hudson, SF #401702: Modify co_filename in frozen programsGuido van Rossum2001-03-201-2/+10
| | | | | | | | | | | | | | | This patch was developed primarily to reduce the size of the frozen binary. It is particularly useful when freezing for 'small' platforms, such as Palm OS, where you really want to save that last miserable byte. A limitation of this patch is that it does not provide any feedback about the replacements being made. As the path matching is case-sensitive this may lead to unexpected behaviour for DOS and Windows people, eg > freeze.py -r C:\Python\Lib\=py\ goats.py should probably be: > freeze.py -r c:\python\lib\=py\ goats.py
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Patch by Toby Dickenson, mentored by Mark Hammond, to supportGuido van Rossum2000-07-131-2/+2
| | | | | automatically finding (most of) the standard PYD extensions, and to remove the hardcoded Python version.
* Toby Dickenson:Guido van Rossum2000-05-061-4/+1
| | | | | | | Fix for problem with freeze when both "-m" and "-s service" options are used. (Blessed by MarkH)
* From Sjoerd Mullender <sjoerd@oratrix.nl>:Fred Drake2000-03-231-1/+0
| | | | | cmp is not used in freeze, but is imported anyway. What's worse, cmp is no longer in the library, so freeze won't work like this.
* Bug submitted by Wayne Knowles, who writes:Guido van Rossum1999-03-121-1/+1
| | | | | | | | | Under Windows, python freeze.py -o hello hello.py creates all the correct files in the hello subdirectory, but the Makefile has the directory prefix in it for frozen_extensions.c nmake fails because it tries to locate hello/frozen_extensions.c (His fix adds a call to os.path.basename() in the appropriate place.)
* New version, with contributions from Sjoerd Mullender and Mark Hammond.Guido van Rossum1998-08-251-56/+39
| | | | | | | | | | | | 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.
* Minor change for windows; set extensions_c later and setGuido van Rossum1998-07-071-1/+3
| | | | frozendllmain_c at the right place.
* Jonathan Giddy:Guido van Rossum1998-06-121-1/+4
| | | | | The first one only shows up if $prefix != $exec_prefix, and the problem is caused by the recent change in location for config.h.
* Add a feature to support specifying an additional search directory forGuido van Rossum1998-05-181-17/+30
| | | | | | packages. (Mark Hammond) Folded some long lines.
* Remove Emacs cruft at end.Guido van Rossum1998-05-061-4/+0
|
* Freeze assumes that all built-in modules are part of the Python core.Guido van Rossum1998-04-231-4/+6
| | | | | | | This is not necessarily the case. It is possible to create a Python binary which contains built-in extension modules. Therefore checkextensions should be used for all unknown and builtin modules. (Sjoerd Mullender)
* Shouldn't import addpack!Guido van Rossum1998-04-201-1/+0
|
* Big changes by Mark Hammond to support freezing with DLLs on Windows.Guido van Rossum1998-03-201-19/+79
|
* Rearrange some stuff so that the warning for unknown modules is alsoGuido van Rossum1998-03-071-17/+21
| | | | issued on Windows.
* When writing the Windows Makefile, don't forget to strip some filenamesGuido van Rossum1998-03-071-2/+3
| | | | of their output directory prefix.
* Fix typo -- -e takes a flag, -h doesn't. Somehow the colon and the hGuido van Rossum1998-03-061-1/+1
| | | | got transposed.