Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
4468bed2
Kaydet (Commit)
4468bed2
authored
Kas 15, 2016
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #28573: Avoid setting up env too many times during build
üst
6bf87d3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
37 deletions
+10
-37
build.bat
PCbuild/build.bat
+1
-1
buildrelease.bat
Tools/msi/buildrelease.bat
+9
-36
No files found.
PCbuild/build.bat
Dosyayı görüntüle @
4468bed2
...
@@ -120,9 +120,9 @@ if "%do_pgo%"=="true" (
...
@@ -120,9 +120,9 @@ if "%do_pgo%"=="true" (
@echo off
@echo off
call :Kill
call :Kill
set conf=PGUpdate
set conf=PGUpdate
set target=Build
)
)
goto Build
goto Build
:Kill
:Kill
echo on
echo on
msbuild "%dir%\pythoncore.vcxproj" /t:KillPython %verbose%^
msbuild "%dir%\pythoncore.vcxproj" /t:KillPython %verbose%^
...
...
Tools/msi/buildrelease.bat
Dosyayı görüntüle @
4468bed2
...
@@ -35,7 +35,7 @@ set BUILDX86=
...
@@ -35,7 +35,7 @@ set BUILDX86=
set BUILDX64=
set BUILDX64=
set TARGET=Rebuild
set TARGET=Rebuild
set TESTTARGETDIR=
set TESTTARGETDIR=
set PGO=
default
set PGO=
-m test -q --pgo
set BUILDNUGET=1
set BUILDNUGET=1
set BUILDZIP=1
set BUILDZIP=1
...
@@ -109,14 +109,12 @@ exit /B 0
...
@@ -109,14 +109,12 @@ exit /B 0
@echo off
@echo off
if "%1" EQU "x86" (
if "%1" EQU "x86" (
call "%PCBUILD%env.bat" x86
set PGO=
set PGO=
set BUILD=%PCBUILD%win32\
set BUILD=%PCBUILD%win32\
set BUILD_PLAT=Win32
set BUILD_PLAT=Win32
set OUTDIR_PLAT=win32
set OUTDIR_PLAT=win32
set OBJDIR_PLAT=x86
set OBJDIR_PLAT=x86
) else (
) else (
call "%PCBUILD%env.bat" amd64
set BUILD=%PCBUILD%amd64\
set BUILD=%PCBUILD%amd64\
set PGO=%~2
set PGO=%~2
set BUILD_PLAT=x64
set BUILD_PLAT=x64
...
@@ -143,37 +141,18 @@ if not "%CERTNAME%" EQU "" (
...
@@ -143,37 +141,18 @@ if not "%CERTNAME%" EQU "" (
)
)
if not "%SKIPBUILD%" EQU "1" (
if not "%SKIPBUILD%" EQU "1" (
@call "%PCBUILD%build.bat" -e -p %BUILD_PLAT% -d -t %TARGET% %CERTOPTS%
@if errorlevel 1 exit /B
@rem build.bat turns echo back on, so we disable it again
@echo off
if "%PGO%" EQU "" (
if "%PGO%" EQU "" (
@call "%PCBUILD%build.bat" -e -p %BUILD_PLAT% -t %TARGET% %CERTOPTS%
set PGOOPTS=
) else (
) else (
@call "%PCBUILD%build.bat" -e -p %BUILD_PLAT% -c PGInstrument -t %TARGET% %CERTOPTS%
set PGOOPTS=--pgo --pgojob "%PGO%"
@if errorlevel 1 exit /B
@del "%BUILD%*.pgc"
if "%PGO%" EQU "default" (
"%BUILD%python.exe" -m test -q --pgo
) else if "%PGO%" EQU "default2" (
"%BUILD%python.exe" -m test -r -q --pgo
"%BUILD%python.exe" -m test -r -q --pgo
) else if "%PGO%" EQU "default10" (
for /L %%i in (0, 1, 9) do "%BUILD%python.exe" -m test -q -r --pgo
) else if "%PGO%" EQU "pybench" (
"%BUILD%python.exe" "%PCBUILD%..\Tools\pybench\pybench.py"
) else (
"%BUILD%python.exe" %PGO%
)
@call "%PCBUILD%build.bat" -e -p %BUILD_PLAT% -c PGUpdate -t Build %CERTOPTS%
)
)
@call "%PCBUILD%build.bat" -e -p %BUILD_PLAT% -t %TARGET% %CERTOPTS% %PGOOPTS%
@if errorlevel 1 exit /B
@if errorlevel 1 exit /B
@rem build.bat turns echo back on, so we disable it again
@echo off
@echo off
)
)
call "%PCBUILD%env.bat"
if "%OUTDIR_PLAT%" EQU "win32" (
if "%OUTDIR_PLAT%" EQU "win32" (
msbuild "%D%launcher\launcher.wixproj" /p:Platform=x86 %CERTOPTS% /p:ReleaseUri=%RELEASE_URI%
msbuild "%D%launcher\launcher.wixproj" /p:Platform=x86 %CERTOPTS% /p:ReleaseUri=%RELEASE_URI%
if errorlevel 1 exit /B
if errorlevel 1 exit /B
...
@@ -222,10 +201,9 @@ echo --build (-b) Incrementally build Python rather than rebuilding
...
@@ -222,10 +201,9 @@ echo --build (-b) Incrementally build Python rather than rebuilding
echo --skip-build (-B) Do not build Python (just do the installers)
echo --skip-build (-B) Do not build Python (just do the installers)
echo --skip-doc (-D) Do not build documentation
echo --skip-doc (-D) Do not build documentation
echo --pgo Specify PGO command for x64 installers
echo --pgo Specify PGO command for x64 installers
echo --skip-pgo Build x64 installers using PGO
echo --skip-pgo Build x64 installers
without
using PGO
echo --skip-nuget Do not build Nuget packages
echo --skip-nuget Do not build Nuget packages
echo --skip-zip Do not build embeddable package
echo --skip-zip Do not build embeddable package
echo --pgo Build x64 installers using PGO
echo --download Specify the full download URL for MSIs
echo --download Specify the full download URL for MSIs
echo --test Specify the test directory to run the installer tests
echo --test Specify the test directory to run the installer tests
echo -h Display this help information
echo -h Display this help information
...
@@ -233,13 +211,8 @@ echo.
...
@@ -233,13 +211,8 @@ echo.
echo If no architecture is specified, all architectures will be built.
echo If no architecture is specified, all architectures will be built.
echo If --test is not specified, the installer tests are not run.
echo If --test is not specified, the installer tests are not run.
echo.
echo.
echo For the --pgo option, any Python command line can be used as well as the
echo For the --pgo option, any Python command line can be used, or 'default' to
echo following shortcuts:
echo use the default task (-m test --pgo).
echo Shortcut Description
echo default Test suite with --pgo
echo default2 2x test suite with --pgo and randomized test order
echo default10 10x test suite with --pgo and randomized test order
echo pybench pybench script
echo.
echo.
echo The following substitutions will be applied to the download URL:
echo The following substitutions will be applied to the download URL:
echo Variable Description Example
echo Variable Description Example
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment