summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/freeze.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Lots of things added. README written (mostly).Guido van Rossum1994-10-051-35/+103
|
* Add check for unknown modulesGuido van Rossum1994-10-031-1/+7
|
* Totally new "freeze" program.Guido van Rossum1994-10-031-560/+160
|
* Jack's last version (now I'm supposed to get it working :-)Guido van Rossum1994-10-031-0/+576