Skip to content

Commit 607f62f

Browse files
committed
remove INNO setup code
we don't use
1 parent 87ea89e commit 607f62f

File tree

2 files changed

+1
-153
lines changed

2 files changed

+1
-153
lines changed

make.py

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# Copyright © 2012 Pierre Raybaut
4+
# Copyright © 2014-2024+ The Winpython development team https://github.com/winpython/
45
# Licensed under the terms of the MIT License
56
# (see winpython/__init__.py for details)
67

@@ -60,23 +61,6 @@ def get_nsis_exe():
6061
raise RuntimeError("NSIS is not installed on this computer.")
6162

6263

63-
def get_iscc_exe():
64-
"""Return ISCC executable"""
65-
localdir = str(Path(sys.prefix).parent.parent)
66-
for drive in get_drives():
67-
for dirname in (
68-
r"C:\Program Files",
69-
r"C:\Program Files (x86)",
70-
str(Path(localdir) / "Inno Setup 5"),
71-
):
72-
for subdirname in (".", "App"):
73-
exe = str(Path(dirname) / subdirname / "Inno Setup 5" / "iscc.exe")
74-
if Path(exe).is_file():
75-
return exe
76-
else:
77-
raise RuntimeError("Inno Setup 5 is not installed on this computer.")
78-
79-
8064
def get_7zip_exe():
8165
"""Return 7zip executable"""
8266
localdir = str(Path(sys.prefix).parent.parent)
@@ -204,30 +188,6 @@ def build_shimmy_launcher(launcher_name, command, icon_path, mkshim_program='mks
204188
subprocess.run(mkshim_command, shell=True)
205189

206190

207-
def build_iss(srcname, dstname, data):
208-
"""Build Inno Setup Script"""
209-
ISCC_EXE = get_iscc_exe() # Inno Setup Compiler (iscc.exe)
210-
portable_dir = str(Path(__file__).resolve().parent / "portable")
211-
shutil.copy(str(Path(portable_dir) / srcname), dstname)
212-
data = [("PORTABLE_DIR", portable_dir)] + list(data)
213-
replace_in_iss_file(dstname, data)
214-
try:
215-
retcode = subprocess.call(
216-
f'"{ISCC_EXE}" "{dstname}"',
217-
shell=True,
218-
stdout=sys.stderr,
219-
)
220-
if retcode < 0:
221-
print(
222-
"Child was terminated by signal",
223-
-retcode,
224-
file=sys.stderr,
225-
)
226-
except OSError as e:
227-
print("Execution failed:", e, file=sys.stderr)
228-
# os.remove(dstname)
229-
230-
231191
def build_7zip(srcname, dstname, data):
232192
"""7-Zip Setup Script"""
233193
SEVENZIP_EXE = get_7zip_exe()

portable/installer_INNO.iss

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)