From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Tool:Cx Freeze" |
|---|
| claim | "With default options (zip_include_packages empty, zip_exclude_packages ["*"]) cx_Freeze writes only top-level single-file modules (modules with no package path, e.g. the entry-point modules) as <name>.pyc into lib/library.zip; every package and all its submodules are written under lib/ as <pkg>/__init__.pyc and <pkg>/<mod>.pyc (extension modules copied beside them). Packages go into the zip only if listed in zip_include_packages (or zip_include_packages has "*", minus zip_exclude_packages). lib/library.dat holding the zip file name is written only when a zip file name is in use (compress on, which defaults the name to 'library', or zip_filename given); otherwise the zip is extracted into lib/ and deleted." |
|---|
| scope | | level | "tool" |
|---|
| applies_to | "Tool:cx_Freeze" |
|---|
| observed_in | |
|---|
|
|---|
| data | | effect | "module storage layout of a cx_Freeze build: plain top-level modules in lib/library.zip, packages as .pyc trees under lib/ by default; library.dat only if a zip is kept" |
|---|
| trigger | "freezing with default options" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Freezer._populate_zip_options: both options None gives include [] and exclude ["*"]; _write_modules writes in_file_system>=1 modules to lib/<parts>.pyc (+ __init__ for packages), others to ZipInfo(name + '.pyc'); library.dat written only when zip_filename is not None, else extractall + unlink. Read at this commit only (not other releases)." |
|---|
| repo | "https://github.com/marcelotduarte/cx_Freeze" |
|---|
| commit | "9f258f9d7340c40df48b11dd4f83af65f87c5a38" |
|---|
| path | "cx_Freeze/freezer.py" |
|---|
| lines | "168-184, 600-645, 650-700, 740-831" |
|---|
|
| type | "source" |
|---|
| detail | "add_module sets module.in_file_system = 0 only if zip_include_all_packages and name not excluded, or name in zip_include_packages" |
|---|
| repo | "https://github.com/marcelotduarte/cx_Freeze" |
|---|
| commit | "9f258f9d7340c40df48b11dd4f83af65f87c5a38" |
|---|
| path | "cx_Freeze/finder.py" |
|---|
| lines | "129-142" |
|---|
|
| type | "source" |
|---|
| detail | "Module.in_file_system returns the parent's value, 0 when path is None (plain module), else the stored default 1" |
|---|
| repo | "https://github.com/marcelotduarte/cx_Freeze" |
|---|
| commit | "9f258f9d7340c40df48b11dd4f83af65f87c5a38" |
|---|
| path | "cx_Freeze/module.py" |
|---|
| lines | "61, 94-107" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "library.zip layout and library.dat" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:48:47.452Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:59:26.535Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read freezer.py at 9f258f9 (__init__ zip_filename logic, _populate_zip_options, _write_modules whole, lines 168-184, 601-830), finder.py add_module in_file_system, module.py in_file_system property, and command/build_exe.py defaults (zip_exclude_packages ['*'], zip_include_packages [], zip_filename 'library.zip' unless no_compress). Matches. Minor: top-level extension modules (no code) are not written as .pyc; claim says single-file modules." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T04:03:24.103Z" |
|---|
| summary | "Default placement was wrong: with default zip options packages are written to lib/ not the zip; library.dat conditional. Read freezer.py _populate_zip_options, _write_modules, finder.py add_module…" |
|---|
| changed | | "claim" |
| "data" |
| "evidence replaced" |
|
|---|
|
|
|---|