Files
UnrealEngineUWP/Engine/Source/ThirdParty/Python/CopyPythonInstall_Win64.bat
josh adams 8564e1b315 - Changes to various modules, plugins, programs, websites, thirdparty code, etc that had NotForLicensees folders within them, to move to Restricted
- Moved the AndroidDeviceProfileSelector secret guid to a NoRedist .ini setting
[CODEREVIEW] alistair.white,chris.babcock,jack.porter
#rb ben.marsh, advisor

#ROBOMERGE-SOURCE: CL 12706094 via CL 12709228 via CL 12709456
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v676-12543919)

[CL 12709555 by josh adams in Main branch]
2020-04-09 19:58:35 -04:00

44 lines
1.6 KiB
Batchfile

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
SET python_arch_name=Win64
SET python_lib_dest_name=.\%python_arch_name%
SET python_bin_dest_name=..\..\..\Binaries\ThirdParty\Python\%python_arch_name%
SET python_src_name=Python27
SET python_src_dir=C:\%python_src_name%
IF NOT EXIST %python_src_dir% (
ECHO Python Source Directory Missing: %python_src_dir%
GOTO End
)
IF EXIST %python_lib_dest_name% (
ECHO Removing Existing Target Directory: %python_lib_dest_name%
RMDIR "%python_lib_dest_name%" /s /q
)
IF EXIST %python_bin_dest_name% (
ECHO Removing Existing Target Directory: %python_bin_dest_name%
RMDIR "%python_bin_dest_name%" /s /q
)
ECHO Copying Python: %python_src_dir%
XCOPY /s /i /q "%python_src_dir%" "%python_bin_dest_name%"
RMDIR "%python_bin_dest_name%\Doc" /s /q
DEL "%python_bin_dest_name%\Lib\*.pyc" /s /q
DEL "%python_bin_dest_name%\w9xpopen.exe"
XCOPY /s /i /q "..\..\..\Restricted\NoRedist\Source\ThirdParty\Python\%python_arch_name%\Microsoft.VC90.CRT" "%python_bin_dest_name%"
XCOPY /q /y "..\..\..\Restricted\NoRedist\Source\ThirdParty\Python\TPS\PythonWinBin.tps" "%python_bin_dest_name%"
XCOPY /q /y "..\..\..\Restricted\NoRedist\Source\ThirdParty\Python\TPS\VisualStudio2008.tps" "%python_bin_dest_name%"
XCOPY /q /y "%WINDIR%\System32\python27.dll" "%python_bin_dest_name%"
XCOPY /q /y "Python.tps" "%python_bin_dest_name%\..\"
XCOPY /s /i /q "%python_bin_dest_name%\include" "%python_lib_dest_name%\include"
XCOPY /s /i /q "%python_bin_dest_name%\libs" "%python_lib_dest_name%\libs"
RMDIR "%python_bin_dest_name%\include" /s /q
RMDIR "%python_bin_dest_name%\libs" /s /q
:End
PAUSE