File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ pub async fn compile_tree(
75
75
) -> Result < usize , CompileError > {
76
76
debug_assert ! (
77
77
dir. is_absolute( ) ,
78
- "compileall doesn't work with relative paths"
78
+ "compileall doesn't work with relative paths: `{}`" ,
79
+ dir. display( )
79
80
) ;
80
81
let worker_count = std:: thread:: available_parallelism ( ) . unwrap_or_else ( |err| {
81
82
warn_user ! ( "Couldn't determine number of cores, compiling with a single thread: {err}" ) ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub(crate) use tool::update_shell::update_shell as tool_update_shell;
48
48
pub ( crate ) use tool:: upgrade:: upgrade as tool_upgrade;
49
49
use uv_cache:: Cache ;
50
50
use uv_distribution_types:: InstalledMetadata ;
51
- use uv_fs:: Simplified ;
51
+ use uv_fs:: { Simplified , CWD } ;
52
52
use uv_installer:: compile_tree;
53
53
use uv_normalize:: PackageName ;
54
54
use uv_python:: PythonEnvironment ;
@@ -153,6 +153,7 @@ pub(super) async fn compile_bytecode(
153
153
let start = std:: time:: Instant :: now ( ) ;
154
154
let mut files = 0 ;
155
155
for site_packages in venv. site_packages ( ) {
156
+ let site_packages = CWD . join ( site_packages) ;
156
157
files += compile_tree ( & site_packages, venv. python_executable ( ) , cache. root ( ) )
157
158
. await
158
159
. with_context ( || {
You can’t perform that action at this time.
0 commit comments