Files
UnrealEngineUWP/Engine/Source/ThirdParty/Python/CopyPythonInstall_Win64.bat
jamie dale c5b1f07d89 Updated Python SDK copy script to exclude pyc files
#jira UE-64531
[FYI] Ben.Marsh
#rb none

#ROBOMERGE-SOURCE: CL 4407622 in //UE4/Release-4.21/...
#ROBOMERGE-BOT: RELEASE (Release-4.21 -> Release-Staging-4.21)

[CL 4407623 by jamie dale in Staging-4.21 branch]
2018-09-28 16:29:28 -04:00

31 lines
861 B
Batchfile

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
SET python_dest_name=Win64
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_dest_name% (
ECHO Removing Existing Target Directory: %python_dest_name%
RMDIR "%python_dest_name%" /s /q
)
ECHO Copying Python: %python_src_dir%
XCOPY /s /i /q "%python_src_dir%" "%python_dest_name%"
XCOPY /s /i /q "NoRedist\%python_dest_name%\Microsoft.VC90.CRT" "%python_dest_name%"
XCOPY /q "NoRedist\TPS\PythonWinBin.tps" "%python_dest_name%"
XCOPY /q "NoRedist\TPS\VisualStudio2008.tps" "%python_dest_name%"
XCOPY /q "%WINDIR%\System32\python27.dll" "%python_dest_name%"
RMDIR "%python_dest_name%\Doc" /s /q
DEL "%python_dest_name%\Lib\*.pyc" /s /q
DEL "%python_dest_name%\w9xpopen.exe"
:End
PAUSE