Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88abdef commit 8c1cee9Copy full SHA for 8c1cee9
4 files changed
Tools/msi/buildrelease.bat
@@ -64,13 +64,6 @@ for %%f in (%_DLLTOOL_PATH%) do set PATH=%PATH%;%%~dpf
64
set _DLLTOOL_PATH=
65
:skipdlltoolsearch
66
67
-where rar /q && goto skiprarsearch
68
-set _RAR_PATH=
69
-where /R "%ProgramFiles%\WinRAR" rar > "%TEMP%\rar.loc" 2> nul && set /P _RAR_PATH= < "%TEMP%\rar.loc" & del "%TEMP%\rar.loc"
70
-where /R "%ProgramFiles(x86)%\WinRAR" rar > "%TEMP%\rar.loc" 2> nul && set /P _RAR_PATH= < "%TEMP%\rar.loc" & del "%TEMP%\rar.loc"
71
-if not exist "%_RAR_PATH%" echo Cannot find WinRAR on PATH or in external && pause
72
-:skiprarsearch
73
-
74
if defined BUILDX86 (
75
call :build x86
76
if errorlevel 1 exit /B
@@ -142,7 +135,7 @@ if errorlevel 1 exit /B
142
135
msbuild "%D%bundle\releaseweb.wixproj" /t:Rebuild %BUILDOPTS% %CERTOPTS% /p:RebuildAll=false
143
136
144
137
145
-if defined _RAR_PATH msbuild "%D%make_zip.proj" /t:Build %BUILDOPTS% %CERTOPTS% "/p:RAR=%_RAR_PATH%"
138
+msbuild "%D%make_zip.proj" /t:Build %BUILDOPTS% %CERTOPTS%
146
139
147
140
if not "%OUTDIR%" EQU "" (
148
141
mkdir "%OUTDIR%\%OUTDIR_PLAT%"
Tools/msi/make_zip.proj
@@ -15,7 +15,6 @@
15
<TargetPath>$(OutputPath)\en-us\$(TargetName)$(TargetExt)</TargetPath>
16
<Arguments>"$(PythonExe)" "$(MSBuildThisFileDirectory)\make_zip.py"</Arguments>
17
<Arguments>$(Arguments) -e -o "$(TargetPath)" -t "$(IntermediateOutputPath)\zip_$(ArchName)" -a $(ArchName)</Arguments>
18
- <Arguments Condition="Exists('$(RAR)')">$(Arguments) --rar "$(RAR)"</Arguments>
19
<Environment>set DOC_FILENAME=python$(PythonVersion).chm</Environment>
20
</PropertyGroup>
21
Tools/msi/make_zip.py
@@ -72,7 +72,7 @@ def include_in_tools(p):
('python35.zip', 'Lib', '**/*', include_in_lib),
]
-def copy_to_layout(target, source, rel_sources):
+def copy_to_layout(target, rel_sources):
count = 0
77
78
if target.suffix.lower() == '.zip':
@@ -146,21 +146,11 @@ def main():
try:
for t, s, p, c in layout:
s = source / s.replace("$arch", arch)
149
- copied = copy_to_layout(
150
- temp / t.rstrip('/'),
151
- source,
152
- rglob(s, p, c)
153
- )
+ copied = copy_to_layout(temp / t.rstrip('/'), rglob(s, p, c))
154
print('Copied {} files'.format(copied))
155
156
- if rar and rar.is_file():
157
- subprocess.check_call([
158
- str(rar),
159
- "a",
160
- "-ed", "-ep1", "-s", "-r",
161
- str(out),
162
- str(temp / '*')
163
- ])
+ total = copy_to_layout(out, rglob(temp, '*', None))
+ print('Wrote {} files to {}'.format(total, out))
164
finally:
165
if delete_temp:
166
shutil.rmtree(temp, True)
Tools/msi/uploadrelease.proj
@@ -23,7 +23,7 @@
23
<File Include="$(OutputPath)\*.msi;$(OutputPath)\*.msu">
24
<CopyTo>$(MSITarget)</CopyTo>
25
</File>
26
- <File Include="$(OutputPath)\*.exe">
+ <File Include="$(OutputPath)\*.exe;$(OutputPath)\*.zip">
27
<CopyTo>$(EXETarget)</CopyTo>
28
29
<File Include="$(PySourcePath)Doc\build\htmlhelp\python$(MajorVersionNumber)$(MinorVersionNumber)$(MicroVersionNumber)$(ReleaseLevelName).chm" Condition="$(IncludeDoc)">
0 commit comments