summaryrefslogtreecommitdiffstats
path: root/Tools/freeze
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bug reported by Toby Dickenson (on 18 May 1999).Guido van Rossum1999-11-021-1/+2
| | | | Sometimes there's no parent, so don't try to get its __name__.
* Sjoerd Mullender:Guido van Rossum1999-11-023-1/+3
| | | | Added some declarations to shut up compiler.
* Patch by Jack Jansen to add with_ifdef option, which places #ifndefGuido van Rossum1999-09-301-1/+5
| | | | around external decls.
* Simplified version of a patch by Chih-Hao Huang, who wrote:Guido van Rossum1999-06-231-2/+3
| | | | | | | | | | | | | | | | | | | """ When there are additional Setup files, specified by -e option of freeze, checkextenstions.py assumes that *.o, *.a, -Lpath, and -Rpath are all relative to where the Setup file is. select() inserts the path to the Setup file to make them absolute. However, the assumption is not true. There are cases that absolute paths are specified for them. The inserted prefix, by select(), results in error. The following fix check for absolute paths. The assumption is: an absolute path begins with either '/' or '$'. In the latter case, it is from the environmental variable. (Variables defined locally in the Setup file have already been handled by expandvars()) """ My version of the patch has been verified by Charles Waldman (a colleague of Chih-Hao).
* Patch submitted by Toby Dickenson and approved by Mark Hammond.Guido van Rossum1999-06-211-2/+2
| | | | | | | | | | | | | | | | Toby writes: winmakemakefile.py tries to allow for spaces in the python install path, by adding quotes around the appropriate filenames. It doesn't quite get this correct; sometimes the quotes end up in the middle of the path. Microsoft's NMAKE version 6.0 is happy with this (!!!!) unless there is also a space in the name. I guess most users of freeze on windows do not use the same path as the binary distribution. I've tested the following changes on systems with and without a space in the path.
* 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.)
* # Accidentally checked in a test version of this file with a bogusGuido van Rossum1999-02-161-1/+0
| | | | # "import fooblurg" :-)
* Fix for modulefinder so that it prints all modules an unknown moduleGuido van Rossum1998-12-221-2/+6
| | | | was referenced in instead of only the last. (Sjoerd Mullender)
* Sjoerd Mullender:Guido van Rossum1998-12-152-3/+7
| | | | | When printing missing modules, also print the module they were imported from.
* Nannified.Guido van Rossum1998-09-141-5/+5
|
* Ignore cruft generating by the test run for hello.py.Guido van Rossum1998-08-251-0/+6
|
* New version, with contributions from Sjoerd Mullender and Mark Hammond.Guido van Rossum1998-08-258-89/+189
| | | | | | | | | | | | 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/+2
| | | | | This second problem only shows up if LDLAST is not an empty string (such as with threads enabled on DEC Alphas).
* 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.
* Don't die if win32api doesn't exist.Guido van Rossum1998-05-261-1/+6
|
* Additions for Mark Hammond's Win32 specific hacks.Guido van Rossum1998-05-193-0/+398
|
* 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.Guido van Rossum1998-05-183-12/+0
|
* Add a feature to support specifying an additional search directory forGuido van Rossum1998-05-181-4/+17
| | | | | | packages. (Mark Hammond) Remove Emacs cruft.
* After variable expansion, what was formerly a single word can nowGuido van Rossum1998-05-061-7/+8
| | | | | | contain multiple words, all of which may have to be joined with the path of the extension directory. (Sjoerd)
* 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)
* 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)
* When using extention modules, relative path names that occur in theGuido van Rossum1998-04-231-0/+2
| | | | | | | Setup file are fixed so that they will work from the freeze build directory. However, relative path names in liner -L and -R options are not fixed in this way. (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-204-47/+201
|
* Add quotes around some variable definitions; add a "clean" target.Guido van Rossum1998-03-071-5/+10
|
* Adapted to the new situation.Guido van Rossum1998-03-071-39/+71
|
* 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.
* Got rid of the last tab character in this file.Guido van Rossum1998-03-061-1/+1
|
* Always set the __file__ attribute, so dynamic link modules are indicated.Guido van Rossum1998-03-061-1/+1
|
* 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.
* Reindented, removed tabs.Guido van Rossum1998-03-051-18/+24
| | | | Also added simple "clean" target (removes *.o and executable).
* Oops, bug omission: also scan internal code objects for imports!Guido van Rossum1998-03-051-31/+37
|
* Reindented, removed tabs.Guido van Rossum1998-03-052-312/+320
|
* 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-054-199/+438
| | | | | | | 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-042-0/+17
| | | | 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
|
* Add XXX warning about fishy lineGuido van Rossum1997-08-141-0/+1
|
* Added Windows NT instructions.Guido van Rossum1997-08-141-3/+34
|
* Changes for building under windows.Guido van Rossum1997-08-142-9/+87
|
* 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-192-11/+14
|
* /usr/local/bin/python -> /usr/bin/env pythonGuido van Rossum1996-11-271-1/+1
|