|
111 | 111 | "26":"{34ebecac-f046-4e1c-b0e3-9bac3cdaacfa}", |
112 | 112 | } [major+minor] |
113 | 113 |
|
| 114 | +# Compute the name that Sphinx gives to the docfile |
| 115 | +docfile = "" |
| 116 | +if level < 0xf: |
| 117 | + docfile = '%x%s' % (level, serial) |
| 118 | +docfile = 'python%s%s%s.chm' % (major, minor, docfile) |
| 119 | + |
114 | 120 | # Build the mingw import library, libpythonXY.a |
115 | 121 | # This requires 'nm' and 'dlltool' executables on your PATH |
116 | 122 | def build_mingw_lib(lib_file, def_file, dll_file, mingw_lib): |
@@ -1072,8 +1078,8 @@ def add_files(db): |
1072 | 1078 | # Add documentation |
1073 | 1079 | htmlfiles.set_current() |
1074 | 1080 | lib = PyDirectory(db, cab, root, "Doc", "Doc", "DOC|Doc") |
1075 | | - lib.start_component("documentation", keyfile="Python%s%s.chm" % (major,minor)) |
1076 | | - lib.add_file("Python%s%s.chm" % (major, minor), src="build/htmlhelp/pydoc.chm") |
| 1081 | + lib.start_component("documentation", keyfile=docfile) |
| 1082 | + lib.add_file(docfile, src="build/htmlhelp/"+docfile) |
1077 | 1083 |
|
1078 | 1084 | cab.commit(db) |
1079 | 1085 |
|
@@ -1181,7 +1187,7 @@ def add_registry(db): |
1181 | 1187 | ("PythonPath", -1, prefix+r"\PythonPath", "", |
1182 | 1188 | r"[TARGETDIR]Lib;[TARGETDIR]DLLs;[TARGETDIR]Lib\lib-tk", "REGISTRY"), |
1183 | 1189 | ("Documentation", -1, prefix+r"\Help\Main Python Documentation", "", |
1184 | | - r"[TARGETDIR]Doc\Python%s%s.chm" % (major, minor), "REGISTRY.doc"), |
| 1190 | + "[TARGETDIR]Doc\\"+docfile , "REGISTRY.doc"), |
1185 | 1191 | ("Modules", -1, prefix+r"\Modules", "+", None, "REGISTRY"), |
1186 | 1192 | ("AppPaths", -1, r"Software\Microsoft\Windows\CurrentVersion\App Paths\Python.exe", |
1187 | 1193 | "", r"[TARGETDIR]Python.exe", "REGISTRY.def") |
@@ -1211,7 +1217,7 @@ def add_registry(db): |
1211 | 1217 | # htmlfiles.id, None, None, None, None, None, None, None), |
1212 | 1218 | ## Non-advertised shortcuts: must be associated with a registry component |
1213 | 1219 | ("Manual", "MenuDir", "MANUAL|Python Manuals", "REGISTRY.doc", |
1214 | | - "[#Python%s%s.chm]" % (major,minor), None, |
| 1220 | + "[#%s]" % docfile, None, |
1215 | 1221 | None, None, None, None, None, None), |
1216 | 1222 | ("Uninstall", "MenuDir", "UNINST|Uninstall Python", "REGISTRY", |
1217 | 1223 | SystemFolderName+"msiexec", "/x%s" % product_code, |
|
0 commit comments