From: Steve Dower Date: Sat, 4 Jul 2015 18:48:37 +0000 (-0700) Subject: Ignore user environment/site-packages for ensurepip and compile_all X-Git-Tag: v3.5.0b3~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06606e716540d6607a0a5496ab9d81f0ee646247;p=python Ignore user environment/site-packages for ensurepip and compile_all Remove build condition to prevent old strings hanging around Add -h option to build.bat --- diff --git a/Tools/msi/build.bat b/Tools/msi/build.bat index 4dfa5fb8bd..1dc05c3997 100644 --- a/Tools/msi/build.bat +++ b/Tools/msi/build.bat @@ -8,9 +8,10 @@ set BUILDX64= set BUILDDOC= :CheckOpts -if '%1'=='-x86' (set BUILDX86=1) && shift && goto CheckOpts -if '%1'=='-x64' (set BUILDX64=1) && shift && goto CheckOpts -if '%1'=='--doc' (set BUILDDOC=1) && shift && goto CheckOpts +if "%1" EQU "-h" goto Help +if "%1" EQU "-x86" (set BUILDX86=1) && shift && goto CheckOpts +if "%1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts +if "%1" EQU "--doc" (set BUILDDOC=1) && shift && goto CheckOpts if not defined BUILDX86 if not defined BUILDX64 (set BUILDX86=1) && (set BUILDX64=1) @@ -44,3 +45,12 @@ if defined BUILDX64 ( msbuild "%D%bundle\snapshot.wixproj" /p:Platform=x64 if errorlevel 1 goto :eof ) + +exit /B 0 + +:Help +echo build.bat [-x86] [-x64] [--doc] [-h] +echo. +echo -x86 Build x86 installers +echo -x64 Build x64 installers +echo --doc Build CHM documentation diff --git a/Tools/msi/bundle/packagegroups/postinstall.wxs b/Tools/msi/bundle/packagegroups/postinstall.wxs index b20cc501b7..35978cc7c6 100644 --- a/Tools/msi/bundle/packagegroups/postinstall.wxs +++ b/Tools/msi/bundle/packagegroups/postinstall.wxs @@ -36,7 +36,7 @@ - + - + <_Content>$([System.IO.File]::ReadAllText(%(WxlTemplate.FullPath)).Replace(`{{ShortVersion}}`, `$(MajorVersionNumber).$(MinorVersionNumber)`).Replace(`{{LongVersion}}`, `$(PythonVersion)`).Replace(`{{Bitness}}`, `$(Bitness)`)) <_ExistingContent Condition="Exists('$(IntermediateOutputPath)%(WxlTemplate.Filename).wxl')">$([System.IO.File]::ReadAllText($(IntermediateOutputPath)%(WxlTemplate.Filename).wxl)) diff --git a/Tools/msi/pip/pip.wxs b/Tools/msi/pip/pip.wxs index 4c3dc59ec3..c46a868188 100644 --- a/Tools/msi/pip/pip.wxs +++ b/Tools/msi/pip/pip.wxs @@ -27,8 +27,8 @@ - - + + (&DefaultFeature=3) AND NOT (!DefaultFeature=3)