Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(19)

Side by Side Diff: Tools/msi/msi.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Tools/gdb/libpython.py ('k') | Tools/scripts/patchcheck.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Python MSI Generator 1 # Python MSI Generator
2 # (C) 2003 Martin v. Loewis 2 # (C) 2003 Martin v. Loewis
3 # See "FOO" in comments refers to MSDN sections with the title FOO. 3 # See "FOO" in comments refers to MSDN sections with the title FOO.
4 import msilib, schema, sequence, os, glob, time, re, shutil, zipfile 4 import msilib, schema, sequence, os, glob, time, re, shutil, zipfile
5 from msilib import Feature, CAB, Directory, Dialog, Binary, add_data 5 from msilib import Feature, CAB, Directory, Dialog, Binary, add_data
6 import uisample 6 import uisample
7 from win32com.client import constants 7 from win32com.client import constants
8 from distutils.spawn import find_executable 8 from distutils.spawn import find_executable
9 from uuids import product_codes 9 from uuids import product_codes
10 import tempfile 10 import tempfile
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 # so Installer will always keep the newest version. 112 # so Installer will always keep the newest version.
113 # NOTE: All uuids are self generated. 113 # NOTE: All uuids are self generated.
114 pythondll_uuid = { 114 pythondll_uuid = {
115 "24":"{9B81E618-2301-4035-AC77-75D9ABEB7301}", 115 "24":"{9B81E618-2301-4035-AC77-75D9ABEB7301}",
116 "25":"{2e41b118-38bd-4c1b-a840-6977efd1b911}", 116 "25":"{2e41b118-38bd-4c1b-a840-6977efd1b911}",
117 "26":"{34ebecac-f046-4e1c-b0e3-9bac3cdaacfa}", 117 "26":"{34ebecac-f046-4e1c-b0e3-9bac3cdaacfa}",
118 "27":"{4fe21c76-1760-437b-a2f2-99909130a175}", 118 "27":"{4fe21c76-1760-437b-a2f2-99909130a175}",
119 "30":"{6953bc3b-6768-4291-8410-7914ce6e2ca8}", 119 "30":"{6953bc3b-6768-4291-8410-7914ce6e2ca8}",
120 "31":"{4afcba0b-13e4-47c3-bebe-477428b46913}", 120 "31":"{4afcba0b-13e4-47c3-bebe-477428b46913}",
121 "32":"{3ff95315-1096-4d31-bd86-601d5438ad5e}", 121 "32":"{3ff95315-1096-4d31-bd86-601d5438ad5e}",
122 "33":"{f7581ca4-d368-4eea-8f82-d48c64c4f047}",
123 } [major+minor] 122 } [major+minor]
124 123
125 # Compute the name that Sphinx gives to the docfile 124 # Compute the name that Sphinx gives to the docfile
126 docfile = "" 125 docfile = ""
127 if int(micro): 126 if int(micro):
128 docfile = micro 127 docfile = micro
129 if level < 0xf: 128 if level < 0xf:
130 if level == 0xC: 129 if level == 0xC:
131 docfile += "rc%s" % (serial,) 130 docfile += "rc%s" % (serial,)
132 else: 131 else:
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 if dir=='site-packages': 1003 if dir=='site-packages':
1005 lib.add_file("README.txt", src="README") 1004 lib.add_file("README.txt", src="README")
1006 continue 1005 continue
1007 files = lib.glob("*.py") 1006 files = lib.glob("*.py")
1008 files += lib.glob("*.pyw") 1007 files += lib.glob("*.pyw")
1009 if files: 1008 if files:
1010 # Add an entry to the RemoveFile table to remove bytecode files. 1009 # Add an entry to the RemoveFile table to remove bytecode files.
1011 lib.remove_pyc() 1010 lib.remove_pyc()
1012 # package READMEs if present 1011 # package READMEs if present
1013 lib.glob("README") 1012 lib.glob("README")
1014 if dir=='Lib':
1015 lib.add_file("sysconfig.cfg")
1016 if dir=='test' and parent.physical=='Lib': 1013 if dir=='test' and parent.physical=='Lib':
1017 lib.add_file("185test.db") 1014 lib.add_file("185test.db")
1018 lib.add_file("audiotest.au") 1015 lib.add_file("audiotest.au")
1019 lib.add_file("sgml_input.html") 1016 lib.add_file("sgml_input.html")
1020 lib.add_file("testtar.tar") 1017 lib.add_file("testtar.tar")
1021 lib.add_file("test_difflib_expect.html") 1018 lib.add_file("test_difflib_expect.html")
1022 lib.add_file("check_soundcard.vbs") 1019 lib.add_file("check_soundcard.vbs")
1023 lib.add_file("empty.vbs") 1020 lib.add_file("empty.vbs")
1024 lib.add_file("Sine-1000Hz-300ms.aif") 1021 lib.add_file("Sine-1000Hz-300ms.aif")
1025 lib.glob("*.uue") 1022 lib.glob("*.uue")
(...skipping 15 matching lines...) Expand all
1041 lib.glob("test_*") 1038 lib.glob("test_*")
1042 if dir=='sndhdrdata': 1039 if dir=='sndhdrdata':
1043 lib.glob("sndhdr.*") 1040 lib.glob("sndhdr.*")
1044 if dir=='idlelib': 1041 if dir=='idlelib':
1045 lib.glob("*.def") 1042 lib.glob("*.def")
1046 lib.add_file("idle.bat") 1043 lib.add_file("idle.bat")
1047 lib.add_file("ChangeLog") 1044 lib.add_file("ChangeLog")
1048 if dir=="Icons": 1045 if dir=="Icons":
1049 lib.glob("*.gif") 1046 lib.glob("*.gif")
1050 lib.add_file("idle.icns") 1047 lib.add_file("idle.icns")
1051 if dir=="command" and parent.physical in ("distutils", "packaging"): 1048 if dir=="command" and parent.physical=="distutils":
1052 lib.glob("wininst*.exe") 1049 lib.glob("wininst*.exe")
1053 lib.add_file("command_template") 1050 lib.add_file("command_template")
1054 if dir=="lib2to3": 1051 if dir=="lib2to3":
1055 lib.removefile("pickle", "*.pickle") 1052 lib.removefile("pickle", "*.pickle")
1056 if dir=="macholib": 1053 if dir=="macholib":
1057 lib.add_file("README.ctypes") 1054 lib.add_file("README.ctypes")
1058 lib.glob("fetch_macholib*") 1055 lib.glob("fetch_macholib*")
1059 if dir=='turtledemo': 1056 if dir=='turtledemo':
1060 lib.add_file("turtle.cfg") 1057 lib.add_file("turtle.cfg")
1061 if dir=="pydoc_data": 1058 if dir=="pydoc_data":
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 lib.glob("*.pyw", exclude=['pydocgui.pyw']) 1149 lib.glob("*.pyw", exclude=['pydocgui.pyw'])
1153 lib.remove_pyc() 1150 lib.remove_pyc()
1154 lib.glob("*.txt") 1151 lib.glob("*.txt")
1155 if f == "pynche": 1152 if f == "pynche":
1156 x = PyDirectory(db, cab, lib, "X", "X", "X|X") 1153 x = PyDirectory(db, cab, lib, "X", "X", "X|X")
1157 x.glob("*.txt") 1154 x.glob("*.txt")
1158 if os.path.exists(os.path.join(lib.absolute, "README")): 1155 if os.path.exists(os.path.join(lib.absolute, "README")):
1159 lib.add_file("README.txt", src="README") 1156 lib.add_file("README.txt", src="README")
1160 if f == 'Scripts': 1157 if f == 'Scripts':
1161 lib.add_file("2to3.py", src="2to3") 1158 lib.add_file("2to3.py", src="2to3")
1162 lib.add_file("pydoc3.py", src="pydoc3")
1163 lib.add_file("pysetup3.py", src="pysetup3")
1164 if have_tcl: 1159 if have_tcl:
1165 lib.start_component("pydocgui.pyw", tcltk, keyfile="pydocgui.pyw ") 1160 lib.start_component("pydocgui.pyw", tcltk, keyfile="pydocgui.pyw ")
1166 lib.add_file("pydocgui.pyw") 1161 lib.add_file("pydocgui.pyw")
1167 # Add documentation 1162 # Add documentation
1168 htmlfiles.set_current() 1163 htmlfiles.set_current()
1169 lib = PyDirectory(db, cab, root, "Doc", "Doc", "DOC|Doc") 1164 lib = PyDirectory(db, cab, root, "Doc", "Doc", "DOC|Doc")
1170 lib.start_component("documentation", keyfile=docfile) 1165 lib.start_component("documentation", keyfile=docfile)
1171 lib.add_file(docfile, src="build/htmlhelp/"+docfile) 1166 lib.add_file(docfile, src="build/htmlhelp/"+docfile)
1172 1167
1173 cab.commit(db) 1168 cab.commit(db)
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 1408
1414 merge(msiname, "SharedCRT", "TARGETDIR", modules) 1409 merge(msiname, "SharedCRT", "TARGETDIR", modules)
1415 1410
1416 # certname (from config.py) should be (a substring of) 1411 # certname (from config.py) should be (a substring of)
1417 # the certificate subject, e.g. "Python Software Foundation" 1412 # the certificate subject, e.g. "Python Software Foundation"
1418 if certname: 1413 if certname:
1419 os.system('signtool sign /n "%s" /t http://timestamp.verisign.com/scripts/ti mestamp.dll %s' % (certname, msiname)) 1414 os.system('signtool sign /n "%s" /t http://timestamp.verisign.com/scripts/ti mestamp.dll %s' % (certname, msiname))
1420 1415
1421 if pdbzip: 1416 if pdbzip:
1422 build_pdbzip() 1417 build_pdbzip()
OLDNEW
« no previous file with comments | « Tools/gdb/libpython.py ('k') | Tools/scripts/patchcheck.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+