Skip to content

Commit

Permalink
do all pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Aug 26, 2024
1 parent 296c417 commit e716f68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion craft_parts/plugins/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ def _get_handle_symlinks_commands(self) -> list[str]:
f"echo Removing python symlinks in {venv_dir}/bin",
f'rm "{venv_dir}"/bin/python*',
]
return ['ln -sf "${symlink_target}" "${PARTS_PYTHON_VENV_INTERP_PATH}"']
return [
'ln -sf "${symlink_target}" "${PARTS_PYTHON_VENV_INTERP_PATH}"',
f'find "{self._get_venv_directory()}/bin" -type l -executable -name "python*" -print0 | xargs -n1 -0 ln -sf "${{symlink_target}}"'
]

def _should_remove_symlinks(self) -> bool:
"""Configure executables symlink removal.
Expand Down

0 comments on commit e716f68

Please sign in to comment.