[meld/build-updates: 3/26] build_helpers: Make Windows build unconditional
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/build-updates: 3/26] build_helpers: Make Windows build unconditional
- Date: Sun, 11 Sep 2022 02:17:14 +0000 (UTC)
commit 143ea3092c4b229964aa6371d895f6fc28a95a77
Author: Kai Willadsen <kai willadsen gmail com>
Date: Wed Aug 10 10:19:59 2022 +1000
build_helpers: Make Windows build unconditional
meld/build_helpers.py | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/meld/build_helpers.py b/meld/build_helpers.py
index aab47e31..eb5041cd 100644
--- a/meld/build_helpers.py
+++ b/meld/build_helpers.py
@@ -30,12 +30,9 @@ import os.path
import sys
from distutils.log import info
-windows_build = os.name == 'nt'
-if windows_build:
- import cx_Freeze
- command_base = cx_Freeze
-else:
- command_base = distutils
+import cx_Freeze
+
+windows_build = True
def has_help(self):
@@ -54,7 +51,7 @@ def has_data(self):
return "build_data" in self.distribution.cmdclass
-command_base.command.build.Build.sub_commands.extend([
+cx_Freeze.command.build.Build.sub_commands.extend([
("build_i18n", has_i18n),
("build_icons", has_icons),
("build_help", has_help),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]