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 Tue, Nov 18, 2025 at 04:14:59AM +0100, Johannes Altmanninger wrote:
> 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 ...".

These should be fixed to use ${PYTHONBIN} -c instead. The usual way is
to add a SUBST_* block in the pkgsrc Makefile.

> So they either want to turn all of those into proper Python scripts,

Yes.

> or we want to add a dependency on pkgtools/pkg_alternatives (though
> I don't see anything in pkgsrc already doing the latter)

No, pkg_alternatives is just intended for users.
 Thomas


Home | Main Index | Thread Index | Old Index