@@ -585,6 +585,7 @@ impl PythonListSettings {
585
585
#[ allow( clippy:: struct_excessive_bools) ]
586
586
#[ derive( Debug , Clone ) ]
587
587
pub ( crate ) struct PythonInstallSettings {
588
+ pub ( crate ) install_dir : Option < PathBuf > ,
588
589
pub ( crate ) targets : Vec < String > ,
589
590
pub ( crate ) reinstall : bool ,
590
591
}
@@ -593,16 +594,25 @@ impl PythonInstallSettings {
593
594
/// Resolve the [`PythonInstallSettings`] from the CLI and filesystem configuration.
594
595
#[ allow( clippy:: needless_pass_by_value) ]
595
596
pub ( crate ) fn resolve ( args : PythonInstallArgs , _filesystem : Option < FilesystemOptions > ) -> Self {
596
- let PythonInstallArgs { targets, reinstall } = args;
597
+ let PythonInstallArgs {
598
+ install_dir,
599
+ targets,
600
+ reinstall,
601
+ } = args;
597
602
598
- Self { targets, reinstall }
603
+ Self {
604
+ install_dir,
605
+ targets,
606
+ reinstall,
607
+ }
599
608
}
600
609
}
601
610
602
611
/// The resolved settings to use for a `python uninstall` invocation.
603
612
#[ allow( clippy:: struct_excessive_bools) ]
604
613
#[ derive( Debug , Clone ) ]
605
614
pub ( crate ) struct PythonUninstallSettings {
615
+ pub ( crate ) install_dir : Option < PathBuf > ,
606
616
pub ( crate ) targets : Vec < String > ,
607
617
pub ( crate ) all : bool ,
608
618
}
@@ -614,9 +624,17 @@ impl PythonUninstallSettings {
614
624
args : PythonUninstallArgs ,
615
625
_filesystem : Option < FilesystemOptions > ,
616
626
) -> Self {
617
- let PythonUninstallArgs { targets, all } = args;
627
+ let PythonUninstallArgs {
628
+ install_dir,
629
+ targets,
630
+ all,
631
+ } = args;
618
632
619
- Self { targets, all }
633
+ Self {
634
+ install_dir,
635
+ targets,
636
+ all,
637
+ }
620
638
}
621
639
}
622
640
0 commit comments