diff --git a/cx_Freeze/__init__.py b/cx_Freeze/__init__.py index 30f86b92d..d5c1f94e6 100644 --- a/cx_Freeze/__init__.py +++ b/cx_Freeze/__init__.py @@ -44,7 +44,7 @@ __all__ += ["bdist_appimage", "bdist_deb", "bdist_rpm"] -__version__ = "7.2.0-dev0" +__version__ = "7.1.0-post0" def setup(**attrs) -> setuptools.Distribution: # noqa: D103 diff --git a/cx_Freeze/freezer.py b/cx_Freeze/freezer.py index 78e1509dd..99d0fbebf 100644 --- a/cx_Freeze/freezer.py +++ b/cx_Freeze/freezer.py @@ -21,7 +21,7 @@ from setuptools import Distribution -from cx_Freeze._compat import IS_MACOS, IS_MINGW, IS_WINDOWS +from cx_Freeze._compat import IS_CONDA, IS_MACOS, IS_MINGW, IS_WINDOWS from cx_Freeze.common import get_resource_file_path, process_path_specs from cx_Freeze.exception import FileError, OptionError from cx_Freeze.executable import Executable @@ -756,6 +756,10 @@ def freeze(self) -> None: ) finder.add_constant("_EXECUTABLES_NUMBER", len(self.executables)) + # Write the modules baefore the included files to fix an issue + if IS_WINDOWS and not IS_CONDA: + self._write_modules() + # Include user-defined files and hooks-defined files target_dir = self.target_dir excluded_dependent_files = finder.excluded_dependent_files @@ -783,7 +787,8 @@ def freeze(self) -> None: self._copy_file(source_path, fulltarget, copy_dependent_files) # Write the modules after the included files to avoid duplicate files - self._write_modules() + if not (IS_WINDOWS and not IS_CONDA): + self._write_modules() # do any platform-specific post-Freeze work self._post_freeze_hook() diff --git a/doc/src/conf.py b/doc/src/conf.py index f306952fd..a092e8382 100644 --- a/doc/src/conf.py +++ b/doc/src/conf.py @@ -45,7 +45,7 @@ # General information about the project. project = "cx_Freeze" copyright = "2024, Marcelo Duarte" # noqa: A001 -__version__ = "7.2.0-dev0" +__version__ = "7.1.0-post0" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the diff --git a/pyproject.toml b/pyproject.toml index 2353e1a15..db95443b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,7 +117,7 @@ target-version = ["py38"] [tool.bumpversion] commit = true -current_version = "7.2.0-dev0" +current_version = "7.1.0-post0" message = "Bump version: {current_version} → {new_version} [ci skip]" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)(\\-(?P[a-z]+)(?P\\d+))?" serialize = [