| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
(#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>
|
|
|
|
|
|
|
|
|
| |
(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
|
|
|
| |
Fix freeze.py tool to use the prope config and library directories.
|
| |
|
|
|
|
| |
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.
|