6.x releases

Version 6.15 (May 2023)

  1. Breaking changes:
    • chore: remove the latest camelCase in Executable api (#1809)

    • chore: use utf-8 encoding with read_text (#1817)

    • chore: map internal exception classes to setuptools (#1866)

  2. New or improved hooks for:
    • hooks: split more hooks in a separate module (#1790)

    • hooks: add suport for matplotlib 3.7 (#1791)

    • hooks: improved hook for pytorch (#1804)

    • fix: add tcl8 directory to bases and fix tkinter hooks (#1812)

    • hooks: improved hook for matplotlib 3.7 work with bdist_msi (#1815)

    • fix: matplotlib hooks (#1818, #1819)

    • hooks: pyside6/pyqt6 - fix svg and pdf, docs, modules (#1827)

    • hooks: pyside6 - check for conda (#1828)

    • hooks: include a qt.conf for pyqt6-webengine to work (#1829)

    • hooks: include a qt.conf for pyside2-webengine to work (#1832)

    • hooks: add new qt plugins based on the docs (#1835)

    • hooks: add pyimagej and jpype (#1842)

    • hooks: add librosa and lazy_loader hooks (#1856)

    • hooks: numpy can be used in conda-forge without mkl [windows] (#1867)

    • hooks: add pyreadstat (#1883)

  3. Linux:
    • fix: use latest manylinux release to fix tkinter in Python 3.11 (#1830)

    • fix: setuptools is unbundled on Gentoo (#1864)

  4. Windows:
    • windows: fix file version with four elements (#1772)

    • windows: fix error using CX_FREEZE_STAMP=pywin32 (#1773)

    • windows: put all msvcr dlls in build_exe top directory (#1780)

    • fix: copy all top dependencies [windows,conda] (#1799)

    • fix: copy all top dependencies [mingw] (#1859)

  5. Documentation:
    • docs: improve options documentation and fix typos (#1805)

  6. Improvements/Refactor/Bugfix:
    • Revert “commands: accepts space-delimited string lists” (#1768)

    • freezer: fix importerror when using ‘path’ option (#1785)

    • Check that parent directory exists before writing to file (#1793)

    • fix: parse namespace packages as packages in zip options (#1820)

    • fix: restore build-exe option of build command (now deprecated) (#1823)

    • Fix code for year 2038 (#1860)

    • fix: ignore recursion into .git subdirectories (#1884)

  7. Project:
    • Declare support for setuptools 67.x (#1782)

    • Use CodeQL tools for scanning (#1766)

    • Use bump2version tag_name (#1769)

    • Upgrade pre-commit tools (#1774)

    • freezer: pylint ready (#1781)

    • dependabot: add package-ecosystem for pip (#1792)

    • chore: use ruff (#1798, #1800, #1801, #1802, #1803, #1836)

    • chore: change Makefile to call pylint separated of others tools (#1807)

    • chore: update python dependencies (#1808, #1822)

    • chore: add python version to dependabot (#1810)

    • chore: use code_object_replace_function if possible (#1816)

    • chore: normalize filename and use map (#1839)

    • chore: Generate coverage report (#1843)

Version 6.14 (January 2023)

  1. New or improved hooks for:
    • hooks: Add charset_normalizer (#1758)

    • hooks: Add shapely (#1725)

    • hooks: Add sklearn hook (#1715)

    • hooks: Add pytorch (#1720)

    • hooks: Update scipy hook (#1716)

    • hooks: fix sqlite3 hook in python embed (#1707)

  2. Linux:
    • Support to build musllinux wheels (#1687)

    • project: Improve patchelf dependency specification (#1722)

  3. Windows:
    • startup: Do not limit PATH (revert #1659 partially), limit dll search path (#1675)

    • Ignore pylint error for deprecated module msilib (#1682)

    • Update to cx_Logging 3.1 and remove hacks for previous version (#1688)

    • [windows] Compile base executables with generic names depending on cache_tag (#1712)

    • [windows] build-wheel: maintain base executables on git (#1713)

    • [windows] build-wheel: fix git rm (use –ignore-unmatch instead) (#1714)

    • [windows] build-wheel: fix git branch (#1717)

    • [windows] setup: optional compilation in editable mode (#1718)

  4. Documentation:
    • pin sphinx to 5.3.0 (#1691)

    • docs: fix typo (#1697)

    • doc: Add keywords for setup() and reorganize read order (#1728)

    • Update copyright year (#1749)

    • docs: use ‘furo’ theme for sphinx (#1750)

    • doc: cleanup after use of furo theme (#1755)

    • doc: improve documentation about setup script (#1756)

    • project and doc: tweak formatting and ordering (#1762)

    • Small fixes in code and documentation (#1738)

  5. Improvements/Refactor/Bugfix:
    • Include copy of cx_Freeze license with frozen applications (#1672)

    • license: move update_frozen_license to a pre-commit (#1676)

    • Move OS constants to _compat module (#1709)

    • install: run() method needs to exist (#1747)

    • Fix the subclassing of internal commands (regression introduced in #1746) (#1759)

    • commands: accepts space-delimited string lists (#1761)

  6. Project:
    • Support Python 3.11 and set it as default in CI (#1681)

    • Drop python 3.6 (#1670)

    • Drop the external dependency on importlib-metadata (#1692)

    • Drop the external dependency on packaging (#1730)

    • Python type hints - upgrade syntax (#1703)

    • Cleanup (#1760)

    • setup: move metadata to pyproject.toml (setuptools 61+) (#1677)

    • pre-commit: fix files that trigger the hook (#1690)

    • Update pre-commit dependencies (#1693)

    • update dev dependencies (#1701)

    • project: add/fix urls (#1708)

    • build-wheel: add missing sdist files (#1711)

    • dist: Use another aproach to export DistributionMetadata (#1726)

    • build: setuptools has ‘build’ command since v62.4.0 (#1729)

    • dist: Use setuptools plugins to extend Distribution instead of subclassing (#1733)

    • Use setuptools Distribution directly (#1736)

    • Add build_exe as subcommand of setuptools build (plugin) (#1737)

    • Add/update commands (provisional) and minor tweaks (#1746)

    • Add dependabot (#1752)

    • Declare support for setuptools 66.0 (#1753)

    • Ignore build time error (#1754)

  7. Samples:
    • samples: Add simple samples using pyproject.toml and setup.cfg (#1757)

Version 6.13 (October 2022)

  1. New or improved hooks for:
    • hooks: Add hooks for PyQt6 (6.3.1 and 6.4.0) (#1664)

    • hooks: support for new pyside6 6.4.0 (#1642)

    • hooks: support for PySide6 6.4.0 on MSYS2 (#1655)

  2. Windows:
    • Fix the filename of .msi file generated by bdist_msi. (#1591)

    • Improvements related to bdist_msi –target_name (#1648)

    • initscripts: Separate the code needed by windows and mingw and fix the path usage. (#1652)

    • Fix missing dlls in build root directory [mingw] (#1653)

    • Ensure python3.dll is loaded in some python versions (bpo-29778) (#1657)

    • Fix dependency target to work better with MSYS2 (#1658)

    • startup: limit the PATH in all windows environments (#1659)

    • setup: Fix python compatibility, especially on Windows (#1656)

    • parser: lief >= 0.12 is required [windows] (#1661)

  3. Samples:
    • samples: fix demo scripts for pythonnet 3 (#1643)

    • samples: Add samples for PyQt6 and add readme to some qt samples (#1663)

  4. Improvements/Refactor/Bugfix:
    • Refactor ci/requirements.py (#1644)

    • tests: add mores tests for bdist_msi (#1646)

    • Do not translate newlines (generate identical file across OS) (#1645)

    • Fix warning and test docs. (#1647)

    • Monkey patch setuptools sandbox to get a better run_setup (#1649)

    • tests: cleanup files and directories created (#1650)

    • use os.fspath() instead of str() (#1660)

Version 6.12 (October 2022)

  1. Linux:
    • Support Linux binary wheel for arm64 (#1539)

  2. macOS:
    • darwintools: fix bug in the processing of certain dynamic library references (#1521)

    • darwintools: Further clean-up of path resolver code. (#1529)

    • Make various errors in darwintools show a warning, rather than terminating freeze (#1593)

  3. Windows:
    • freezer: Fix dependency target to avoid duplicates [windows] (#1623)

    • Call InitializePython from Service_Main instead of wmain. (#1572)

    • bdist_msi: sort options (#1519)

    • bdist_msi: Fix unnecessary ‘running egg_info’ (#1520)

    • bdist_msi: Fix target-name and target-version (#1524)

  4. New or improved hooks for:
    • Improve tkinter hook to work on all OS (#1526)

    • hooks: add hook for orjson (#1606)

    • hooks: Ensure include_files only if file exists. (#1627)

    • hooks: Add hook for tokenizers (#1628)

    • hooks: only bcrypt < 4.0 requires cffi (#1607)

    • hooks: update cryptography hook (#1608)

    • hooks: bcrypt and cryptography hooks must work with msys2 (#1609)

    • qt hooks: Put pyqt5 and pyside2 hooks in separate modules (#1531)

    • qt hooks: New pyside6 hooks (#1533)

    • qt hooks: fix qthooks imports/exports and add an optional debug mode (#1551)

    • qt hooks: Add PyQt5/Pyside2/PySide6 hooks for QtDesigner module (#1552)

    • qt hooks: Rewrite pyqt hooks to query Qt Library paths instead of guessing (#1555)

    • qt hooks: Restructures qt hooks into subpackages for easier troubleshooting. (#1561)

    • qt hooks: set some default paths and fix copies (#1565)

    • qt hooks: add resources to PySide2 hooks to work on more environments (#1566)

    • qt hooks: extend copy_qt_files to fix pyqtweb (#1568)

    • qt hooks: a fix for conda-forge linux (pyside2) (#1585)

    • qt hooks: fix the location of auxiliary files of webengine (pyqt5) (#1586)

    • Improve opencv-python hook (#1536)

    • Improve opencv-python hook on macos (#1538)

    • Improve opencv hook for conda linux (#1556)

    • Support msys2 in opencv-python hooks and use optimized mode (#1601)

    • Restore PyYaml hook (#1542)

    • Support for pythonnet 3.0 (#1600)

    • hooks: Refactor as a subpackage (#1528)

    • hooks: Put numpy hook in separate module (#1532)

    • hooks: split Crypto hook in a separate module (#1602)

    • hooks: split scipy hook in a separate module (#1603)

  5. Samples:
    • samples: Add orjson sample (#1605)

    • samples: pyqt5, pyside2 and pyside6 in optimized mode (#1587)

    • New pyqt5 simplebrowser sample (adapted from pyside2 sample) (#1567)

    • Use pyside6 example simplebrowser as sample (#1543)

    • New opencv-python sample (#1535)

    • Use the same tkinter sample as used in python (#1525)

    • samples: add PhotoImage to tkinter (#1581)

    • samples: adapt qt samples to use get_qt_plugins_paths (#1636)

  6. Improvements/Refactor/Bugfix:
    • fix setuptools 61+ package discovery and other fixes for 62+ (#1545)

    • fix setup to work with setuptools 64.x and 65.x (#1588)

    • importlib-metadata >= 4.12.0 raise ValueError instead of returning None (#1625)

    • Fixed ValueError / importlib_metadata problem (#1630)

    • Fix readthedocs for 6.11

    • pin sphinx 5.0.1 and fix the support for it (#1512)

    • update issue template (#1515)

    • update dev dependencies (#1516)

    • module: Fix .dist-info with subdirectories (#1514)

    • Add parse as pylint-ready module (#1527)

    • Remove deprecated options in build_exe and bdist_mac (#1544)

    • Requires permanent use of lief package on windows (#1547)

    • Add a workaround to compile with –no-lto if LTO linking fails (#1549)

    • Fix a warning compiling with gcc 12.1 (#1550)

    • finder: extend _base_hooks to include hooks in directories (#1557)

    • update dev dependencies (#1558)

    • setup: use find_packages and include_package_data for simplicity (#1559)

    • samples: move to root (#1560)

    • finder: extend include_file_as_module to include submodule (#1562)

    • bases and initscripts: lowercase to remove pylint invalid-name (#1563)

    • Update dev dependencies (#1584)

    • tweak the bdist_rpm test (#1596)

    • Add test for cx_Freeze.command.bdist_msi (#1597)

    • freezer: copy package data using _copy_files to correctly parse dependencies (#1610)

    • Improve makefile (#1619)

    • Update dev dependencies (#1620)

    • Cleanup to support/test with python 3.11b3 (#1518)

    • feezer: use internal _create_directory (create the parents, verbose) (#1635)

  7. Documentation:
    • Fixed a broken link in documentation (#1618)

    • Improved documentation of initial_target_dir option on bdist_msi. (#1614)

    • Add FAQ item for big installations (#1583)

Version 6.11 (June 2022)

  1. Main Improvements:
    • First step to support static libpython (#1414)

    • Set the path to search for modules, and fix the path for built-in modules (#1419)

    • New release process relies on bump2version (#1365)

    • Improve code to cache dist-info files and convert egg-info to dist-info (#1367)

    • Compile base executables with generic names depending on SOABI (#1393)

    • Add CI with a pre-commit file (#1368)

    • Introduce tests in the GitHub CI (#1381)

    • Get rid of some calls to deprecated module distutils (#1445)

    • Borrow bdist_rpm from python 3.10 (#1446)

    • Borrow bdist_msi from python 3.8 (#1447)

    • pin setuptools to a range that works (#1453)

  2. Linux:
    • Support for using embedded manylinux static libraries (#1504)

    • Fix symlinks to avoid duplicate the target (#1424)

    • Fix incorrect default bin path includes (#1425)

  3. macOS:
    • Support for using macos static libraries (#1505)

  4. Windows:
    • Convert PEP440 version scheme to windows scheme (#1392)

    • Lief 0.12 supports delay_imports (#1426)

    • LIEF 0.12 supports Python 3.10 (#1433)

  5. New or improved hooks for:
    • Added additional hooks for the Qt sqldrivers and styles plugins. (#1371)

    • Fix hooks for PySide2 5.15.2.1 (#1396)

    • Optimizing and adding some Qt hooks (#1398)

    • Use pathlib in qt hooks to always use posix paths as qt does (#1399)

    • Add hooks for Pyside2.QtWebEngine* (and pyqtwebengine) (#1479)

  6. Samples:
    • Add PySide6 sample (#1442)

    • Use pyside2 example simplebrowser as sample (#1478)

  7. Improvements/Refactor/Bugfix:
    • Minor tweaks with black (#1364)

    • Run isort over the code base (#1366)

    • Fixes some errors found by pylint (#1369)

    • Fix requirements (#1373)

    • Build in isolated mode for python 3.6-3.9 (#1374)

    • Fix pre-commit configuration (#1375)

    • Skip isort in imports_sample test to fix errors (#1383)

    • Update MANIFEST.in and Makefile (#1391)

    • Fix the default module name in IncludeFile (#1400)

    • pin sphinx to 4.4.0 and fix the support for it (#1401)

    • Fix some requirements and versions (#1402)

    • Use blacken-docs for python code blocks in the docs (#1403)

    • Fix a test after #1402 (#1404)

    • Use sphinx rdt theme and minor tweaks (#1405)

    • Use new build option in rdt to use py39 (#1406)

    • Add pre-commit-sphinx (#1407)

    • Add pip-tools pre-commit and enable setup-cfg-fmt (#1411)

    • Use Path in setup (#1412)

    • Use a self made requirements sync instead of piptools (#1413)

    • Add cached_property (and a compatible function) for planned use (#1417)

    • readme: To install the latest development build (#1418)

    • finder: refactor load_module (#1420)

    • The built-in modules are determined based on the cx_Freeze build (#1421)

    • Some changes to satisfy the linters (#1422)

    • Enable flake8 in pre-commit (#1423)

    • Enable flake8 in samples (#1427)

    • Bump black from 22.1.0 to 22.3.0 (#1428)

    • Enable flake8 in tests (#1429)

    • Enable pylint (limited to tests) (#1430)

    • Update python dependencies (#1432)

    • freezer: refactor to ‘consider using with’ (#1434)

    • finder: use pep8 names (and enable pylint for it) (#1435)

    • hooks: fixes docstrings and other lint warnings (#1436)

    • hooks: new utility function copy_qt_data (#1437)

    • hooks: use function attribute to avoid a pylint warning (#1438)

    • hooks and setup are ready to pylint (#1439)

    • More configuration to pylint (#1440)

    • Fix the main docstring for some modules (#1441)

    • Two more modules are ready for pylint. (#1443)

    • Add cli and dist as pylint-ready modules (#1444)

    • bdist_rpm: Make code style suitable for use in cx_Freeze (#1448)

    • bdist_rpm: merge the code to make a unique class (#1449)

    • bdist_msi: convert to utf8, apply pyupgrade, black and isort (#1452)

    • Declare the new subpackage cx_Freeze.command (#1451)

    • bdist_msi: get rid of distutils (#1454)

    • bdist_msi: Pass pylint and flake8 (#1455)

    • initscripts: pylint ready (#1456)

    • bdist_rpm: condicional import (#1457)

    • bdist_msi: move all the code to the command subpackage (#1458)

    • Document the new code layout (#1459)

    • Fix pylint configuration (#1460)

    • bdist_mac: move macdist to new name and fix lint errors (#1461)

    • bdist_*: fix some pylint invalid-name (#1462)

    • Tests: enable a test by platform (#1463)

    • build,install: move these commands to the command subpackage (#1464)

    • build_exe: move this command to the command subpackage (#1465)

    • install_exe: move this command to the command subpackage (#1466)

    • install: suppress known deprecation (#1467)

    • build: merge the code from distutils to the Build class (#1468)

    • The python used to compile and to build is always the same [conda] (#1469)

    • build: minor tweaks (#1471)

    • pre-commit autoupdate and minor tweaks with pylint (#1472)

    • Move setup() and refactor to avoid a future circular import in Freezer (#1473)

    • setup: more pylint (#1474)

    • Using a trick to get around a dependency on distutils. (#1475)

    • CI in one file and cache pip dependencies (#1476)

    • tests: Add test for build command (#1477)

    • build_exe: fix a bug in the build_exe option (#1480)

    • bdist_msi: move user_options to main code, excluding unused options (#1481)

    • tests: add find_spec test (and remove similar sample) (#1482)

    • Extend setuptools.sandbox.run_setup to work with cx_Freeze setup(). (#1484)

    • tests: support for tests using Path (#1485)

    • tests: add plist_items test (and remove similar sample) (#1486)

    • tests: remove a no longer suppported method (#1487)

    • tests: add a test for bdist_rpm (#1488)

    • pre-commit: fix pyupgrade configuration (#1489)

    • doc: Enable text wrapping in table cells using rdt_theme (#1496)

    • Update issue templates (#1507)

    • update dev dependencies (#1508)

Version 6.10 (January 2022)

  1. Improvements:
    • Implements Parser interface to create an abstraction to parse binary files (#1313)

    • Implements basic PEParser interface (#1314)

    • Helper to create and return a Path-like temporary directory (#1338)

    • Use build and tweak requirements (#1343)

    • Add a basic pyproject.toml for build and tools (#1355)

  2. Refactor and bugfix for all systems:
    • importlib.metadata is no longer provisional in Python 3.10 (#1316)

    • Add a new _compat module (#1317)

    • Prioritize importlib_metadata in versions lower than 3.10 (#1353)

    • Fix an overwrite of silent variable in parser (#1322)

    • Copy top dependencies only once (#1336, Issue #1304, Issue #1333)

    • Change the place to set version and set new year (#1350)

    • Add more files to the source distribution (#1349)

    • Minor tweaks in setup.cfg and add a missing version.py (#1351)

    • Avoid error when cx_Freeze.util is not build yet (#1352)

    • Use helper TemporaryPath in module (#1354)

  3. Linux:
    • Implements ELFParser interface merging patchelf (#1315)

    • Use PyPI patchelf rather than installed by OS (#1341)

  4. Windows:
    • Drop references to shlwapi.dll on Windows to improve performance (#1318)

    • Use the dlltool provided in the same directory as gendef (#1319)

    • Update manifest.txt to match python.manifest (#1320)

    • Search dlls in sys.path, then in the path [windows] (#1323)

    • Use PySys_SetArgvEx in windows too. (#1324)

    • Add lief as dependency for windows (#1325)

    • Support Application Manifests in Windows (#1326, Issue #385, Issue #997, Issue #1305)

    • Creates a manifest for an application that will request elevation (#1327, Issue #1188)

    • Ignore when lief is not available/installed, like in MSYS2 (#1328)

    • util: style changes (#1329)

    • Support Path in BeginUpdateResource and fix UpdateResource (#1330)

    • Move version stamp to winversioninfo module (#1331)

    • Add a simple test to winversioninfo (#1332)

    • Implement version stamp [windows][experimental] (#1334)

    • Workaround a bug in lief with utf-8 filenames [windows] (#1339)

    • Use lief to detect dependencies [windows][experimental] (#1344, Issue #665)

  5. Samples:
    • Extend the ‘icon’ sample to use an admin manifest (#1340)

  6. Documentation:
    • Documentation for manifest and uac-admin options (#1337)

    • Update docs for patchelf (#1342)

Version 6.9 (December 2021)

  1. Improvements:
    • Extend Module.in_file_system to support an optimized mode (#1301)

  2. Refactor and bugfix for all systems:
    • Fix Implicit Namespace Packages (#1290, Issue #1276)

    • Extend the support for vendored subpackages (#1294)

    • Common: Prevent memory leaks on fail (#1245)

    • Merge dis._unpack_opargs into scan_code to be able to fix a bug in py310 (#1306)

    • Fix some print and f-string (#1246)

    • fixing enumerations (#1263)

    • Fixes for the existing nose tests (#1234)

    • Generate dev-requirements.txt + improve readme for contributors wanting to run tests (#1224)

    • Convert existing tests to pytest + increase coverage (#1255)

  3. Linux:
    • Fix relative path in dependencies, detected in miniconda linux (#1258)

    • Create symlinks in the target (#1292, Issue #750)

  4. macOS:
    • fix bugs in certain subprocess calls (#1260)

    • Apply ad-hoc signature to modified libraries (#1251)

  5. Windows:
    • Set REINSTALLMODE to force installing same-version executables (#1252, Issue #1250)

  6. New or improved hooks for:
  7. Samples:
    • Update PyQt5 sample (#1307)

  8. Documentation:
    • Update the FAQ (#1247)

    • Update msi doc (#1248)

    • fade to black (#1291)

    • docs: new item in faq (#1298)

    • docs: open external links in a tab (#1299)

    • prepare to release with python 3.10 support (#1308)

Version 6.8 (September 2021)

  1. Improvements:
    • Support pathlib in ModuleFinder (#1153)

    • Use Path in Module.file (#1158)

    • Use Path in _replace_paths_in_code (#1159)

    • Use Path in Module.path (#1160)

    • Convert code in hooks to use Path (#1161)

    • Use path.iterdir to simplify a code block (#1162)

    • Use Path in executable module (#1163)

    • Use Path in ModuleFinder.zip_includes (#1164)

    • Use Path in process_path_specs (#1167)

    • Use Path in Freezer include_files and zip_includes (#1168)

    • Use Path in Freezer.targetdir and some related code (#1169)

    • Use Path in Freezer._copy_file and almost remaining related code (#1172)

    • Use Path in Executable icon and shortcut_dir (#1173)

    • Use Set[Path] in dependent_files (#1215)

    • Use subprocess (#1214)

    • Add more options to cxfreeze script and tweak the docs (#1174)

  2. Refactor and bugfix for all systems:
    • Remove unused and unnecessary code (#1142)

    • Add some old modules to exclude list (#1149)

    • Fix a last minute change and tweak docstrings (#1154)

    • Include files (from a directory) is ignoring the exclude dependencies option (#1216)

    • Add more typing to freeze (#1218)

    • Create permanent cx_Freeze/bases (#1227)

    • Make Freezer.targetdir a property to improve a bit (#1170)

    • Code analysis, pep8, f-string (#1177)

    • Complementary fixes (#1179)

    • Use setuptools instead distutils a bit more (#1195)

  3. Linux:
    • Fix py39 in ArchLinux using lto (in a different way than mac) (#1146, Issue #1132)

    • Patchelf calls supports Path type (#1178)

    • Use Path (relative_to and parts) to rewrite the fix rpaths (#1181)

    • Complementary patch to #1181 (#1201)

    • Fix for Miniconda python in linux (#1219)

    • Implement Patchelf.get_needed (still based on ldd) (#1220)

    • Implement Patchelf.is_elf to optimize get_needed (#1221)

    • Fix dependency target and rpath settings (#1223)

    • Patchelf needs permission to write (#1232, Issue #1171, Issue #1197)

    • Disable strip with build –debug [linux] (#1235, Issue #1194)

  4. macOS:
    • Use Path in darwintools and some pep8 (#1222)

    • Fix MachORef in macdist and add-on tweaks to #1222 (#1229)

  5. Windows:
    • Fix compatibility with msys2 python 3.9.6 (#1182)

    • LLVM dlltool only supports generating an import library (#1187)

    • Normalize paths at startup for MSYS2 python (#1193)

    • Disable delay load to avoid ‘Segmentation fault’ in mingw 32 bits (#1217)

    • Support Path as parameter for some functions in C (#1225)

    • Add a stub interface for util module (#1226)

    • Recursing into directories to search for load order files (#1200)

    • Fix program files folder for msi using mingw and some tweaks (#1236)

  6. New or improved hooks for:
  7. Samples:
    • Fix code of some samples (#1145)

    • Remove outdated sample (#1157)

    • Improve sample to support pyzmq < 20 and timeout (#1190)

    • Tweak pyqt5 and pyside2 samples (#1180)

    • Improve PyQt5 and PySide2 samples (#1192)

  8. Documentation:
    • Make distutils help and documentation more in line with cxfreeze script (#1175)

    • Update distutils build_exe help in docs (#1176)

    • Remove distutils references in main docs (#1196)

    • Better explain the miniconda installation (#1209)

    • Minor updates to docs (#1230)

Version 6.7 (July 2021)

  1. Improvements, refactor and bugfix for all systems:
    • Implemented multi levels for build_exe silent option (#883)

    • Corrected silent_level to default to 0 (to agree with documentation) (#1046)

    • Split up Freezer object (#1035)

    • Ignores nonexistent files in dist-info (#1038, Issue #1034)

    • Use setuptools build_ext to compile base executables and with names that dependes on python version and platform (#1054)

    • Use sysconfig and others instead of some distutils modules (#1055)

    • Handle the pre-copy task with the _pre_copy_hook method in the freezer (#1069)

    • New method to handle platform dependent resources in the freezer (#1070)

    • Minor tweaks to tidy up the code (#1079)

    • Use wchar if possible. (#1080)

    • Create cx_Freeze/bases if it doesn’t exist (#1082)

    • Use option blocks in the docs and add command line help from commands (#1097)

    • Use a valid example in docs (#1098)

    • Cleanup versionchanged; limit to 6.0+ (#1099)

    • Improve the text of build_exe bin_* (#1100)

    • Use of some Sphinx features to organize a bit (#1102, #1138, #1139)

    • Implement Freeze._default_bin_path_includes for all platforms (#1108)

    • Move some code to startup to unify the use of environ (#1112)

    • Small changes to resolve code warnings (#1122)

    • New method Module.update_distribution to update the cached distribution for the frozen executable (#1123)

    • Implement DistributionCache.from_name (#1135)

    • Use of black and pyupgrade (#1056, #1085, #1086, #1086, #1057)

    • Use pep8 names in private functions in freezer (#1068)

  2. Linux:
  3. macOS:
    • Added CFBundlePackageType and NSHighResolutionCapable by default to Info.plist of Darwin bundles (#1031, Issue #239)

  4. Windows:
    • Transform filename to msilib.Binary for binary data (#1024, Issue #1019)

    • Add extension registration on Windows (#1032)

    • Support for icons with non-ascii names (#1066)

    • New C function to update the PE checksum (or fix it in case it is zero) (#1071, Issue #315, Issue #1059)

    • Use setuptools command to install a include file (#1072)

    • Fix the support for non-ascii names in windows (#1077, Issue #835)

    • PyEval_InitThreads is unecessary in py37+ and is deprecated in py39 (#1081)

    • Set working directory in the Desktop shortcut (#1083, Issue #48, Issue #623)

    • Improve documentation about bdist_msi (#1084, Issue #48)

  5. New or improved hooks for:
  6. Samples:

Version 6.6 (April 2021)

  1. Improvements:
    • Enable python -m cx_Freeze syntax (#899)

    • Standardize InitializePython on all platforms. (#872)

    • Store a copy of cached dist-info (#958)

    • Suppress additional output if –silent has been set. (#830)

    • Only copy a file if should copy a file (#995, Issue #256)

    • Refactor cache dist-info files to be extended (#957)

    • Remove subfolders belonging to excluded modules (#922)

  2. Linux:
    • Implements a new Patchelf interface for patching ELF files (#966)

    • Improve the resolution of dependencies [Linux] (#967)

    • Use -rpath explicitly (#940)

  3. macOS:
    • Another way to detected the use of LTO (#895)

    • Failed to create DMG file (applications_shortcut=True`) (#927, Issue #925)

    • Fix plistlib.load call in macdist [py39] (#926, Issue #924)

    • Improvements to dependency resolution on Darwin (#887)

    • Tweak to only print warning if attempting to copy two mach-o files to the same location. Only the first file used. (#915, Issue #913)

  4. Windows:
    • Avoid duplicates of libpythonXX.so and pythonXX.ddl (#978)

    • Rebirth of –include-msvcr - real support for vcruntime dlls [windows] (#973, Issue #367)

    • Set lib directory as default for dll search [windows] (#1000)

    • Speedup compiling on windows (#993)

    • Support for delay load [mingw] (#1002)

    • Support for delay load [windows] (#1001)

    • Update to cx_Logging 3.0 (#909, #994, #996, #998, #1012)

    • Use the delay load to compile Win32Service (#1003)

  5. New or improved hooks for:
  6. Samples:
    • Add sample for pycountry (#955)

    • Add sample for pyzmq (#954)

    • Update the service sample and build (#886)

    • Update PySide2 sample (#1011)

    • Tweak samples (#888)

  7. Bugfixes:
    • Force encoding of generated files to utf-8 (#1005, Issue #989)

    • cx_Logging as submodule (#874, Issue #866)

    • Avoid the __main__ module from pip wheel (#894, Issue #891)

    • Fix regression introduced in PR #857 (#878, Issue #875)

    • Fix typo (#877, Issue #866)

    • Fix the pillow sample (#876)

    • Fix the docs (#870)

    • Fix regression introduced in #978 (#1010)

    • Standardizes the target directory Freezer (and cxfreeze`) (#999)

    • Fix regression introduced in PR #973 (#976)

    • Fix PATH for anaconda/miniconda (#974)

    • Starts freezing in a clean directory (#965)

    • Fix a regression introduced in #798 (#945, Issue #932)

    • fix regressions introduced in #843 (#920, Issue #919)

    • Some packages use a directory with vendored modules (#906, Issue #900)

    • IncludeModule has priority over ExcludeModule (#904)

    • Better error checks (#902)

    • Support for executable names that may not be valid identifiers (#889, Issue #884)

    • Accept file without extension as source file to be backwards compatible (#893)

  8. Refactor:
    • Update readme (#1022)

    • Update installation docs (#1021)

    • Modify cxfreeze script a bit (#1009)

    • Reestructure ConstantModule (#1004)

    • Invert the assignment to create a new list (#987)

    • Refactor Freezer init (#985)

    • New module exception (#984)

    • Separates the freezer module classes (#983)

    • Update code style in Modules (#982)

    • build docs in build dir at project’s root (#981)

    • Minor update to code style (#980)

    • update faq a bit (#977)

    • Cleanup freezer copy file method (#964)

    • Typo (#962)

    • Change detection order and tweak formatting (#961)

    • Refactor Module class attributes (#960)

    • Fade to black (#946, #1020)

    • Distribute samples only with source code (#941)

    • Add badges (#944)

    • Revise docs a bit (#943)

    • Update in the docs the use of main branch (#942)

    • remove unused files (#910)

    • Update build-wheel (#903)

    • Revert previous commit and fix the ident only (#882)

    • Fix potential errors (#881)

    • Code analysis (#880)

Version 6.5 (January 2021)

  1. Improvements:
    • Refactor ModuleFinder to use importlib.machinery (#811)

    • Executable target_name now has support for names with version (#857)

    • The name of the target executable can be modified after the build (#858, Issue #703)

    • Use codeType.replace when in py38+ (optimized) (#836)

    • Use a configuration file for Read the Docs (#818)

    • Modernize code (Type annotation, PEP8, black, refactor) (#815, #832, #837, #838, #839, #840, #841, #842, #843, #859, #860, #861, #864, #865, #868)

  2. Windows:
  3. macOS:
    • Implemented a “plist_items” option on bdist_mac command (#827)

    • Remove deprecated methods in macdist (#810)

    • Fix a regression for macOS (#816, Issue #809)

    • Fix a bug using macOS on Github Actions (#812)

    • Marked rpath-lib-folder option as depreciated. (#834)

  4. New or improved hooks for:
  5. Samples:
    • Better pytz sample (#852)

    • Sample for new library zoneinfo (py39) (#853)

    • Sample to demonstrate the use a valid and an invalid icon (#850)

  6. Bugfixes:
    • cx_Freeze.__version__ should be the package version (#806, Issue #804)

    • pin importlib_metadata to >=3.1.1 (#819, #820, #822)

    • Correct test failures when initializing ModuleFinder (#833)

Version 6.4 (November 2020)

  1. Improvements:
  2. New or improved hooks for:
  3. Samples:
    • Added a sample to illustrate problem with importlib.util.find_spec (#735)

    • Sample for bdist_msi, summary_data option (#775)

    • README for some samples; remove requirements.txt to avoid to be interpreted by some sites as the requirements of cx_Freeze (#802)

  4. Bugfixes:
    • Cause MSI file to be released at the end of bdist_msi command (#781)

Version 6.3 (October 2020)

  1. Improvements:
  2. New or improved hooks for:
  3. Linux:
    • Improve copy dependent files relative to source module file (#704)

  4. Windows:
    • Check if upgrade-code is valid and document the valid format (#711, Issue #585)

    • Improve Windows GUID documentation (#749)

    • Added option to bdist_msi to specify information for msi summary information stream (#760)

  5. macOS:
    • Fix the syspath for some version of python on macOS (#719, Issue #667)

  6. Samples:
    • Add pyside2 sample (#664)

    • A sample for testing PyQt5 included in zip package (#717)

    • Add pandas sample (#709)

    • Added sample code to show the use of ConstantsModule / BUILD_CONSTANTS (#729)

  7. Bugfixes:
    • Ensure the copy of default python libraries in all platforms (#706, Issue #701)

    • Remove warning ‘Distutils was imported before Setuptools’ (#694, Issue #693)

    • Fix the use of compress and desambiguate the use of stat (#738)

    • Small fix to handle a build constant that includes a “=” symbol (#728)

    • Fix issue when module.file is None (#707)

    • Fix detect namespaces in py35 (#700)

    • Set python initialization flags prior to Py_SetPath call to avoid warnings (#751)

Version 6.2 (July 2020)

  1. New or improved hooks for:
  2. Linux:
  3. Windows:
  4. macOS:
    • Fixing modification of PATH for single user install (#614, Issue #613)

    • Make needed dirs when using include_resources (#633)

    • Check for Mach-O using byte strings to allow case of non unicode chars (#635)

    • Copy references from /usr/local (#648)

  5. Documentation
  6. Misc
    • Fixed bug in cxfreeze script introduced in 6.1 (Issue #560).

    • Remove old packages/modules names, do not report as missing (#605)

    • Better support for MSYS2 and Anaconda3 (#642)

    • Support python 3.5.2 and up (#606)

    • Support metadata to use by pkg_resources (#608)

    • New commom function rebuild_code_object to be reusable (#629)

    • Fix optimize option in python 3.8 (#641)

    • Add –include-files option to cxfreeze script (#647)

    • Replace the value of __package__ directly in the code (#651)

    • Eliminate exclusion of dbm module since it is in Python 3 (#662, Issue #660)

    • Detect namespace packages (#669, #668)

    • Installing from source requires setuptools (#687)

    • Remove PyUnicode_FromUnicode (#673)

Version 6.1 (January 2020)

  1. Added support for Python 3.8 (#545, #556).

  2. Added support for python setup.py develop (#502).

  3. Use console_scripts in entry_points so that the commands cxfreeze and cxfreeze-quickstart run on Windows without the need for running a postinstall script (#511).

  4. Added support for switching from per-user to per-machine installations on Windows (#507).

  5. Fix installation if AlwaysInstallElevated policy is set on Windows (#533).

  6. Updated default dependencies for Python 3 on Windows (#505).

  7. Removed unused code (#549).

  8. The default dependencies are now always copied into the lib folder instead of into the directory where the executable resides on Linux (#518).

  9. Dependent files are now copied to the same relative directory as their location in the source on Linux (#494).

  10. Added tests for commonly used packages like cryptography, pillow, sqlite, pytz, ctypes and distutils (#508, #537, #546, #555, #557).

  11. Fix regression with DLL dependencies introduced in 6.0 by #492 due to case differences (#512).

  12. Fix regression with dependent files introduced in 6.0 by #297 for platforms other than macOS (#516).

  13. The version of cx_Freeze is now defined in one place (#552).

  14. Eliminate exclusion of gestalt module on platforms other than macOS since it exists outside of macOS.

  15. Improved hooks for sqlite3 (#509), cryptography, and tkinter (#559).

  16. Added hook for pytz (#554).

  17. Improved hook infrastructure, permitting hooks to add constants that can be examined at runtime, determine whether a module is going to be stored in the file system and include files in the zip file.

  18. Improved documentation (#510).

Version 6.0 (August 2019)

  1. Corrected support for Python 3.7 (#395).

  2. Use importlib and other Python 3 improvements (#484, #485, #486, #490).

  3. Fixed issue with @rpath causing file copy errors on macOS (#307).

  4. Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (#348).

  5. Corrected invalid version handling in bdist_msi (#349, Issue #340).

  6. Corrected hook for clr module (#397, #444).

  7. Corrected documentation for compress option (#358).

  8. Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332).

  9. Always copy dependent files to root directory on macOS (#365).

  10. Skip self referencing archive on macOS (#364, Issue #304).

  11. Include doc directory in source distribution (#394, Issue #376).

  12. Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (#419).

  13. Added hook for PyQt5.QtPrintSupport module (#401).

  14. Added ability to include an icon on the add/remove program window that pops up during installation (#387).

  15. Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (#342, Issue #268).

  16. Avoid otool bug on macOS Yosemite (#297, Issue #292).

  17. Added ability to specify environment variables that should be created when an MSI package is installed (#266).

  18. Added support for including resources in an app bundle for macOS (#423).

  19. Added absolute reference path option for macOS packages (#424).

  20. Added CFBundle identifier for macOS packages (#427, Issue #426).

  21. Added hook for copying SSL DLLs for Python 3.7+ on Windows (#470).

  22. Added -municode flag when building on Windows with mingw32 (#468).

  23. Added hook for pycparser (#446).

  24. Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (#442).

  25. Print error when fetching dependent files fails (#435).

  26. Make executable writable before adding the icon (#430, Issue #368).

  27. Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI.

  28. Fix building console app with mingw32 (#475).

  29. Force inclusion of the unicodedata module which is used by the socket module, and possibly others (#476).

  30. Added hook for asyncio package (#477).

  31. Added hook for idna package (#478).

  32. Added hook for pkg_resources package (#481).

  33. Added hook for gevent (#495).

  34. Force .exe extension to be included on Windows, so that the same setup code can be used on both Linux and Windows (#489).

  35. Added hook for Pillow (#491).

  36. Improved hook for tkinter (#493).

  37. Avoid attempting to check for dependent files on Windows when the file is not an executable or DLL (#492).

  38. Ensure that only executable files are checked for dependencies in order to avoid spurious errors when checking for dependent files.

  39. Improved hook for matplotlib.

Version 6.0b1 (November 2017)

  1. Dropped support for Python 2.x. Use cx_Freeze 5 for Python 2.x support.

  2. Instead of depending on the built-in functionality of searching for a zip file that looks like pythonxx.zip (which is disabled on some platforms like Ubuntu), set the Python path to include a subdirectory called “lib” and a zip file “lib/library.zip” on all platforms.

  3. Do not create version resource when version is omitted (#279).

  4. Ensure the sqlite3 DLL is loaded in the same directory as the module which depends on it (Issue #296).