summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/freeze.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Unfold some lines that were previously folded but don't need to beGuido van Rossum1998-03-051-7/+12
| | | | | | | | now we're reindented. Remove files before renaming something to them -- for Windows. Change check for Python home directory so it works correct on Windows.
* Some nits...Guido van Rossum1998-03-051-8/+9
| | | | | | | | Add the script directory to the path. Fix the sanity checks on the arguments so they don't mess up the -m option; remove the requirement that the script must have a .py extension.
* Added support for packages.Guido van Rossum1998-03-051-16/+47
| | | | | | | 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.
* Untested changes to make the '-s windows' optionGuido van Rossum1998-03-041-0/+3
| | | | work on Windows.
* Add special handling for Python modules that are imported implicitlyGuido van Rossum1997-12-081-0/+6
| | | | by the Python runtime: 'site' and 'exceptions'.
* os2 patch by Jeff RushGuido van Rossum1997-11-221-1/+2
|
* Changes for building under windows.Guido van Rossum1997-08-141-9/+42
|
* Changed indents to 4 *spaces*; added Emacs variables to avoidGuido van Rossum1997-08-101-241/+245
| | | | | inserting tabs. All this (and the previous patch) in preparation for porting to NT.
* Support using -p/-P to point to the source/build directory instead ofGuido van Rossum1997-08-101-12/+32
| | | | | the install directory. Added -h option to print the full usage message; by default, only two lines are now printed for errors.
* Updated for new style build/install; much simpler!Guido van Rossum1997-07-191-10/+5
|
* /usr/local/bin/python -> /usr/bin/env pythonGuido van Rossum1996-11-271-1/+1
|
* OK, now it uses sys.[exec_]prefix and supportsGuido van Rossum1996-08-261-54/+53
| | | | | a -o option to specify an output directory. *Much* more convenient. Removed a whole lot of hullabaloo from the README file, too.
* Changes for 1.4 install targetsGuido van Rossum1996-08-261-6/+5
|
* Add test that script name ends in .py.Guido van Rossum1996-06-171-9/+10
| | | | Cosmetic changes to usage message (refer to "make install" now).
* added getpath.c; added -P exec_prefix; added explanatory noteGuido van Rossum1995-08-081-8/+46
|
* backup Makefile tooGuido van Rossum1995-04-051-1/+13
|
* moved Demo/freeze to Tools/freezeGuido van Rossum1995-03-021-2/+2
|