venvs/link

This commit is contained in:
Marc Beninca 2024-09-29 17:26:02 +02:00
parent b0a3ae00eb
commit 44a925feb4
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

14
re.sh
View file

@ -125,6 +125,15 @@ venvs() {
uv_install uv_install
deactivate deactivate
;; ;;
"link")
activate "${venv}"
for module in "rwx"; do
ln --symbolic \
"/rwx/rwx/${module}" \
"${venv}/lib/python${version}/site-packages/${module}"
done
deactivate
;;
*) ;; *) ;;
esac esac
done done
@ -148,11 +157,6 @@ venvs init
for version in "${@}"; do for version in "${@}"; do
py="${root}/${version}" py="${root}/${version}"
activate "${py}" activate "${py}"
for module in "rwx"; do
ln --symbolic \
"/rwx/rwx/${module}" \
"${py}/lib/python${version}/site-packages/${module}"
done
list_venv "${py}" list_venv "${py}"
deactivate deactivate
done done