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 21, 2024
1 parent f7a3886 commit 3138ed5
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 {self._get_venv_directory()}/bin",
f'rm "{self._get_venv_directory()}"/bin/python*',
]
return ['ln -sf "${symlink_target}" "${PARTS_PYTHON_VENV_INTERP_PATH}"']
return [
'ln -sf "${symlink_target}" "${PARTS_PYTHON_VENV_INTERP_PATH}"',
'find $(dirname "${PARTS_PYTHON_VENV_INTERP_PATH}") -type f -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 3138ed5

Please sign in to comment.