niess / python-appimage

AppImage distributions of Python
https://python-appimage.readthedocs.io/en/latest/
GNU General Public License v3.0
170 stars 24 forks source link

Re-enable version-less executables #46

Closed renard closed 2 years ago

renard commented 2 years ago

First thanks for the great work!

On previous releases such as 3.10.4 version-less executables were available:

$ ls -l /srv/python/python-3.10.4/usr/bin/
total 0
lrwxrwxrwx 1 admin admin  4 Jun  3 08:22 pip -> pip3
lrwxrwxrwx 1 admin admin  7 Jun  3 08:22 pip3 -> pip3.10
lrwxrwxrwx 1 admin admin 32 Jun  3 08:22 pip3.10 -> ../../opt/python3.10/bin/pip3.10
lrwxrwxrwx 1 admin admin  7 Jun  3 08:22 python -> python3
lrwxrwxrwx 1 admin admin 10 Jun  3 08:22 python3 -> python3.10
lrwxrwxrwx 1 admin admin 35 Jun  3 08:22 python3.10 -> ../../opt/python3.10/bin/python3.10

Since last release (3.10.5 and 3.11.0) only version dependent executable are provided:

$ ls -l /srv/python/python-3.10.5/usr/bin/ /srv/python/python-3.11.0/usr/bin/
/srv/python/python-3.10.5/usr/bin/:
total 4
lrwxrwxrwx 1 admin admin  32 Jun 14 08:28 pip3.10 -> ../../opt/python3.10/bin/pip3.10
-rwxr-xr-x 1 admin admin 647 Jun 14 08:28 python3.10

/srv/python/python-3.11.0/usr/bin/:
total 4
lrwxrwxrwx 1 admin admin  32 Jun 14 08:26 pip3.11 -> ../../opt/python3.11/bin/pip3.11
-rwxr-xr-x 1 admin admin 495 Jun 14 08:26 python3.11

This is painful since it breaks compatibility with exiting scripts.

Thanks in advance.

niess commented 2 years ago

My apologies. I didn't realize. Links should be back now. Thank you for the warning.

renard commented 2 years ago

Thank you very much for the fast fix ;-)