mirror of
https://github.com/clearml/clearml-agent
synced 2025-04-16 21:41:55 +00:00
Fix UV pip freeze fails
This commit is contained in:
parent
55790b3c3a
commit
ee21944f6b
@ -247,7 +247,7 @@ class UvAPI(VirtualenvPip):
|
|||||||
# there is a bug so we have to call pip to get the freeze because UV will return the wrong list
|
# there is a bug so we have to call pip to get the freeze because UV will return the wrong list
|
||||||
# packages = self.run_with_env(('freeze',), output=True).splitlines()
|
# packages = self.run_with_env(('freeze',), output=True).splitlines()
|
||||||
packages = self.lock_config.get_run_argv(
|
packages = self.lock_config.get_run_argv(
|
||||||
"pip", "freeze", "--python", str(Path(self.path) / "bin" / "python"), cwd=self.lockfile_path).get_output().splitlines()
|
"pip", "freeze", cwd=self.lockfile_path).get_output().splitlines()
|
||||||
# list clearml_agent as well
|
# list clearml_agent as well
|
||||||
# packages_without_program = [package for package in packages if PROGRAM_NAME not in package]
|
# packages_without_program = [package for package in packages if PROGRAM_NAME not in package]
|
||||||
return {'pip': packages}
|
return {'pip': packages}
|
||||||
|
Loading…
Reference in New Issue
Block a user