Skip to content

Commit 4f0c3d2

Browse files
committed
Don't copy site-packages
-99% of paths can't do it anyway. Require manual copying or running the packaged build once to install dependencies
1 parent 26e33dc commit 4f0c3d2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Source/UnrealEnginePython/UnrealEnginePython.Build.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void AddRuntimeDependenciesForCopying(ReadOnlyTargetRules Target)
6464
if(UseThirdPartyPython)
6565
{
6666
string PlatformString = Target.Platform.ToString();
67-
bool VerboseBuild = false;
67+
bool bVerboseBuild = false;
6868

6969
//Don't add android stuff so we use a manual method to enum a directory
7070
Tools.DotNETCommon.DirectoryReference BinDir = new Tools.DotNETCommon.DirectoryReference(Path.Combine(BinariesPath, PlatformString, "..."));
@@ -73,11 +73,15 @@ public void AddRuntimeDependenciesForCopying(ReadOnlyTargetRules Target)
7373
{
7474
foreach (Tools.DotNETCommon.FileReference File in Tools.DotNETCommon.DirectoryReference.EnumerateFiles(BinDir, "*", SearchOption.AllDirectories))
7575
{
76-
if (!File.ToString().Contains("android"))
76+
//if (!File.ToString().Contains("android"))
77+
bool bValidFile = !File.ToString().Contains("Lib\\site-packages"); //don't copy site-packages (staging path likely too long)
78+
bValidFile = bValidFile && !File.ToString().Contains("Binaries\\Win64\\UE4Editor"); //don't copy UEEditor dll/pdbs. These are not used
79+
80+
if (bValidFile)
7781
{
7882
RuntimeDependencies.Add(File.ToString());
7983
}
80-
else if (VerboseBuild)
84+
else if (bVerboseBuild)
8185
{
8286
Log.TraceInformation("Not adding the following file as RuntimeDependency: ");
8387
Log.TraceInformation(File.ToString());

UnrealEnginePython.uplugin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"FileVersion": 3,
33
"Version": 1,
4-
"VersionName": "1.7.1",
4+
"VersionName": "1.7.2",
55
"FriendlyName": "UnrealEnginePython",
66
"Description": "Embed a Python VM in your project",
77
"Category": "Scripting Languages",

0 commit comments

Comments
 (0)