pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Possible to provide python/python3 -> python3.xy symlink?



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.

fish shell has some Python scripts (for historical reasons);
to be able to run them on NetBSD, they run the first of

	command -v python3
	command -v python3.12
	command -v python3.11
	command -v python3.10
	...
	command -v python

etc.

This list is needlessly cumbersome to maintain. Could the NetBSD
package provide a symlink, or is there another recommended way to
configure the path to Python.
I suppose fish could add a build-time PYTHON_EXECUTABLE option.
LMK if that sounds appropriate.
I guess that might be a good idea anyway, since NixOS folks
probably want to use that too.


Home | Main Index | Thread Index | Old Index