File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use std::{
13
13
14
14
use env_variables:: EnvVariables ;
15
15
use environments:: { get_generic_python_environment, get_virtual_env_environment} ;
16
+ use log:: trace;
16
17
use manager:: PyEnvInfo ;
17
18
use pet_conda:: { utils:: is_conda_env, CondaLocator } ;
18
19
use pet_core:: {
@@ -62,6 +63,7 @@ impl PyEnv {
62
63
let mut versions = self . versions_dir . lock ( ) . unwrap ( ) ;
63
64
if !self . found_pyenv . load ( Ordering :: Relaxed ) && ( managers. is_none ( ) || versions. is_none ( ) ) {
64
65
let pyenv_info = PyEnvInfo :: from ( & self . env_vars ) ;
66
+ trace ! ( "PyEnv Info {:?}" , pyenv_info) ;
65
67
if let Some ( ref exe) = pyenv_info. exe {
66
68
let version = pyenv_info. version . clone ( ) ;
67
69
let manager = EnvManager :: new ( exe. clone ( ) , EnvManagerType :: Pyenv , version) ;
@@ -76,7 +78,7 @@ impl PyEnv {
76
78
}
77
79
self . found_pyenv . store ( true , Ordering :: Relaxed ) ;
78
80
}
79
-
81
+ trace ! ( "PyEnv Manager {:?} and versions {:?}" , managers , versions ) ;
80
82
( managers. clone ( ) , versions. clone ( ) )
81
83
}
82
84
}
@@ -164,6 +166,8 @@ impl Locator for PyEnv {
164
166
}
165
167
}
166
168
} ) ;
169
+ } else {
170
+ trace ! ( "PyEnv versions directory not found" ) ;
167
171
}
168
172
}
169
173
}
Original file line number Diff line number Diff line change @@ -211,8 +211,8 @@ fn check_if_pipenv_exists() {
211
211
}
212
212
213
213
#[ cfg( unix) ]
214
- #[ cfg( target_os = "linux" ) ]
215
- #[ cfg_attr( feature = "ci" , test) ]
214
+ // #[cfg(target_os = "linux")]
215
+ // #[cfg_attr(feature = "ci", test)]
216
216
#[ allow( dead_code) ]
217
217
// On linux we create a virtualenvwrapper environment named `venv_wrapper_env1`
218
218
fn check_if_pyenv_virtualenv_exists ( ) {
You can’t perform that action at this time.
0 commit comments