From 70c095febe885552affb6d317782a37239b4f0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Delicado=20Alcolea?= Date: Wed, 7 Jul 2021 08:41:08 +0200 Subject: [PATCH] setup.py: patch cx_freeze to include our Microsoft Visual C++ runtime files --- src/setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/setup.py b/src/setup.py index c6043db8..c965c06c 100644 --- a/src/setup.py +++ b/src/setup.py @@ -3,7 +3,7 @@ import sys import application import platform import os -from cx_Freeze import setup, Executable +from cx_Freeze import setup, Executable, winmsvcr from requests import certs def get_architecture_files(): @@ -40,7 +40,7 @@ build_exe_options = dict( build_exe="dist", optimize=1, includes=["enchant.tokenize.en"], # This is not handled automatically by cx_freeze. - include_msvcr=True, + include_msvcr=False, replace_paths = [("*", "")], include_files=["icon.ico", "conf.defaults", "app-configuration.defaults", "keymaps", "locales", "sounds", "documentation", ("keys/lib", "keys/lib"), find_sound_lib_datafiles(), find_accessible_output2_datafiles()]+get_architecture_files(), packages=["wxUI"], @@ -50,6 +50,8 @@ executables = [ Executable('main.py', base=base, targetName="twblue") ] +winmsvcr.FILES = () +winmsvcr.FILES_TO_DUPLICATE = () setup(name=application.name, version=application.version, description=application.description,