Add debug logging for --target (#3282)
This commit is contained in:
@@ -135,6 +135,10 @@ pub(crate) async fn pip_install(
|
||||
|
||||
// Apply any `--target` directory.
|
||||
let venv = if let Some(target) = target {
|
||||
debug!(
|
||||
"Using `--target` directory at {}",
|
||||
target.root().user_display()
|
||||
);
|
||||
target.init()?;
|
||||
venv.with_target(target)
|
||||
} else {
|
||||
|
||||
@@ -115,6 +115,10 @@ pub(crate) async fn pip_sync(
|
||||
|
||||
// Apply any `--target` directory.
|
||||
let venv = if let Some(target) = target {
|
||||
debug!(
|
||||
"Using `--target` directory at {}",
|
||||
target.root().user_display()
|
||||
);
|
||||
target.init()?;
|
||||
venv.with_target(target)
|
||||
} else {
|
||||
|
||||
@@ -57,6 +57,10 @@ pub(crate) async fn pip_uninstall(
|
||||
|
||||
// Apply any `--target` directory.
|
||||
let venv = if let Some(target) = target {
|
||||
debug!(
|
||||
"Using `--target` directory at {}",
|
||||
target.root().user_display()
|
||||
);
|
||||
target.init()?;
|
||||
venv.with_target(target)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user