You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
766 B
21 lines
766 B
using System; |
|
using System.Threading.Tasks; |
|
using StabilityMatrix.Core.Models.FileInterfaces; |
|
using StabilityMatrix.Core.Models.PackageModification; |
|
using StabilityMatrix.Core.Models.Progress; |
|
using StabilityMatrix.Core.Python; |
|
|
|
namespace StabilityMatrix.Avalonia.Models.PackageSteps; |
|
|
|
public class UnpackSiteCustomizeStep(DirectoryPath venvPath) : IPackageStep |
|
{ |
|
public async Task ExecuteAsync(IProgress<ProgressReport>? progress = null) |
|
{ |
|
var sitePackages = venvPath.JoinDir(PyVenvRunner.RelativeSitePackagesPath); |
|
var file = sitePackages.JoinFile("sitecustomize.py"); |
|
file.Directory?.Create(); |
|
await Assets.PyScriptSiteCustomize.ExtractTo(file); |
|
} |
|
|
|
public string ProgressTitle => "Unpacking prerequisites..."; |
|
}
|
|
|