@@ -99,27 +99,6 @@ def replace_in_nsis_file(fname, data):
9999 fd .close ()
100100
101101
102- def replace_in_iss_file (fname , data ):
103- """Replace text in line starting with *start*, from this position:
104- data is a list of (start, text) tuples"""
105- fd = open (fname , "U" )
106- lines = fd .readlines ()
107- fd .close ()
108- for idx , line in enumerate (lines ):
109- for start , text in data :
110- if start not in (
111- "Icon" ,
112- "OutFile" ,
113- ) and not start .startswith ("!" ):
114- start = "#define " + start
115- if line .startswith (start + " " ):
116- lines [idx ] = line [: len (start ) + 1 ] + f'"{ text } "' + "\n "
117- fd = open (fname , "w" )
118- fd .writelines (lines )
119- print ("Inno Setup for " , fname , "is" , lines )
120- fd .close ()
121-
122-
123102def replace_in_7zip_file (fname , data ):
124103 """Replace text in line starting with *start*, from this position:
125104 data is a list of (start, text) tuples"""
@@ -606,26 +585,6 @@ def create_installer(self):
606585 build_nsis ("installer.nsi" , fname , data )
607586 self ._print_done ()
608587
609- def create_installer_inno (self ):
610- """Create installer with INNO"""
611- self ._print ("Creating WinPython installer INNO" )
612- portable_dir = str (Path (__file__ ).resolve ().parent / "portable" )
613- fname = str (Path (portable_dir ) / "installer_INNO-tmp.iss" )
614- data = (
615- ("DISTDIR" , self .winpydir ),
616- ("ARCH" , self .winpy_arch ),
617- (
618- "VERSION" ,
619- f"{ self .python_fullversion } .{ self .build_number } { self .flavor } " ,
620- ),
621- (
622- "VERSION_INSTALL" ,
623- f'{ self .python_fullversion .replace ("." , "" )} ' + f"{ self .build_number } " ,
624- ),
625- ("RELEASELEVEL" , self .release_level ),
626- )
627- build_iss ("installer_INNO.iss" , fname , data )
628- self ._print_done ()
629588
630589 def create_installer_7zip (self , installer_option = "" ):
631590 """Create installer with 7-ZIP"""
@@ -1942,10 +1901,6 @@ def make_all(
19421901 if str (create_installer ).lower () != "false" and not simulation :
19431902 if "nsis" in str (create_installer ).lower ():
19441903 dist .create_installer () # NSIS installer (can't handle big build)
1945- if "inno" in str (create_installer ).lower () or (
1946- str (create_installer ).lower () == "true"
1947- ):
1948- dist .create_installer_inno () # INNO Setup 5 (not 7zip friendly)
19491904 if "7zip" in str (create_installer ).lower ():
19501905 dist .create_installer_7zip (".exe" ) # 7-zip (no licence splash screen)
19511906 if ".7z" in str (create_installer ).lower ():
0 commit comments