Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/Manager/Cmd/Pip/PyPackage.Manager.Cmd.Pip.Install.pas
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ TPyPackageManagerCmdPipInstall = class
function MakeInstallNoWarnConflictsCmd: TArray<string>; inline;
function MakeInstallNoBinaryCmd: TArray<string>; inline;
function MakeInstallOnlyBinaryCmd: TArray<string>; inline;
function MakeInstallVerboseCmd: TArray<string>; inline;
function MakeInstallReportCmd: TArray<string>; inline;
function MakeInstallPreferBinaryCmd: TArray<string>; inline;
function MakeInstallRequireHashesCmd: TArray<string>; inline;
function MakeInstallProgressBarCmd: TArray<string>; inline;
Expand Down Expand Up @@ -236,8 +238,14 @@ function TPyPackageManagerCmdPipInstall.MakeInstallNoWarnScriptLocationCmd: TArr

function TPyPackageManagerCmdPipInstall.MakeInstallOnlyBinaryCmd: TArray<string>;
begin
if FOpts.OnlyBinary then
Result := TArray<string>.Create('--only-binary');
if not FOpts.OnlyBinary.IsEmpty() then
Result := TArray<string>.Create('--only-binary', FOpts.OnlyBinary);
end;

function TPyPackageManagerCmdPipInstall.MakeInstallVerboseCmd: TArray<string>;
begin
if FOpts.Verbose then
Result := TArray<string>.Create('-v');
end;

function TPyPackageManagerCmdPipInstall.MakeInstallPlatformCmd: TArray<string>;
Expand All @@ -246,6 +254,12 @@ function TPyPackageManagerCmdPipInstall.MakeInstallPlatformCmd: TArray<string>;
Result := TArray<string>.Create('--platform ', FOpts.Platform);
end;

function TPyPackageManagerCmdPipInstall.MakeInstallReportCmd: TArray<string>;
begin
if not FOpts.Report.IsEmpty() then
Result := TArray<string>.Create('--report ', FOpts.Report);
end;

function TPyPackageManagerCmdPipInstall.MakeInstallPreCmd: TArray<string>;
begin
if FOpts.Pre then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ TPyPackageManagerDefsOptsPipInstall = class(TPyPackageManagerDefsOpts)
FNoWarnConflicts: boolean;
FNoBinary: boolean;
FNoCompile: boolean;
FOnlyBinary: boolean;
FVerbose: boolean;
FReport: String;
FOnlyBinary: String;
FPreferBinary: boolean;
FRequireHashes: boolean;
FProgressBar: boolean;
Expand Down Expand Up @@ -110,7 +112,9 @@ TPyPackageManagerDefsOptsPipInstall = class(TPyPackageManagerDefsOpts)
property NoWarnScriptLocation: boolean read FNoWarnScriptLocation write FNoWarnScriptLocation default false;
property NoWarnConflicts: boolean read FNoWarnConflicts write FNoWarnConflicts default false;
property NoBinary: boolean read FNoBinary write FNoBinary default false;
property OnlyBinary: boolean read FOnlyBinary write FOnlyBinary default false;
property Verbose: boolean read FVerbose write FVerbose default false;
property OnlyBinary: String read FOnlyBinary write FOnlyBinary;
property Report: String read FReport write FReport;
property PreferBinary: boolean read FPreferBinary write FPreferBinary default false;
property RequireHashes: boolean read FRequireHashes write FRequireHashes default false;
property ProgressBar: boolean read FProgressBar write FProgressBar default false;
Expand Down