| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Check for sys.abiflags before using since not all platforms have it defined.
|
|
|
|
| |
Python 2.4 dropped MacOS 9 support. The macpath module was deprecated
in Python 3.7. This change removes it.
|
|
|
|
| |
and Windows CE is no longer a relevant platform for Python.
|
|\ |
|
| |
| |
| |
| | |
Based on patch by Ville Skyttä.
|
|/
|
|
| |
to format short Python version.
|
| |
|
|
|
|
|
| |
compatible with regular files (in particular it now supports the context
management protocol).
|
|
|
|
| |
Patch by Meador Inge.
|
| |
|
|
|
|
| |
Patch by Serhiy Storchaka.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
There are other issues left, but these were basics (e.g. keys().sort()).
|
| |
|
|
|
|
|
|
| |
(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
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
| |
Fixed a few compiler warnings.
freeze.py now produces binaries which can import shared
modules (unlike before).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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).
|
|
|
|
| |
directives, which is the role of CPPFLAGS. Closes SF patch #414991.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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 ;)
|
|
|
|
|
| |
automatically finding (most of) the standard PYD extensions, and to
remove the hardcoded Python version.
|
|
|
|
|
|
|
| |
Fix for problem with freeze when both "-m" and "-s service" options
are used.
(Blessed by MarkH)
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
frozendllmain_c at the right place.
|
|
|
|
|
| |
The first one only shows up if $prefix != $exec_prefix, and the problem
is caused by the recent change in location for config.h.
|
|
|
|
|
|
| |
packages. (Mark Hammond)
Folded some long lines.
|
| |
|
|
|
|
|
|
|
| |
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)
|
| |
|
| |
|
|
|
|
| |
issued on Windows.
|
|
|
|
| |
of their output directory prefix.
|
|
|
|
| |
got transposed.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|