pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Possible to provide python/python3 -> python3.xy symlink?
On Mon, Nov 17, 2025 at 10:29:22PM +0100, Thomas Klausner wrote:
> On Sun, Nov 16, 2025 at 10:34:27AM +0100, Johannes Altmanninger wrote:
> > I think most systems that package python, provide either "/bin/python"
> > or "/bin/python3", typically as a symlink to e.g. "/bin/python3.11".
> >
> > Based on cursory research, NetBSD is the only exception.
>
> Install pkgtools/pkg_alternatives and you'll get the symlink.
Thanks. I see that pkgsrc's shells/fish4/Makefile
also defines
REPLACE_PYTHON+= share/tools/*.py
to replace
#!/usr/bin/env python3
in python scripts with a valid executable path.
But fish shell also uses "python -c ...".
So they either want to turn all of those into proper Python scripts,
or we want to add a dependency on pkgtools/pkg_alternatives (though
I don't see anything in pkgsrc already doing the latter)
Home |
Main Index |
Thread Index |
Old Index