Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2024 13:43:40 +0200
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Gleb Popov <arrowd@freebsd.org>
Cc:        Matthias Fechner <mfechner@freebsd.org>, freebsd-ports@freebsd.org
Subject:   Re: How to add dependency to python binary
Message-ID:  <20240522134340.7e3d0342fa6523619df39ec2@bidouilliste.com>
In-Reply-To: <CALH631=w4_mjd-Rd8iaDUSjmB_wHHiA=s2r5Dv_vPfarMMgENg@mail.gmail.com>
References:  <674b2ef0-9d92-4540-afa7-9da6b625065a@freebsd.org> <CALH631=w4_mjd-Rd8iaDUSjmB_wHHiA=s2r5Dv_vPfarMMgENg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 22 May 2024 14:10:33 +0300
Gleb Popov <arrowd@freebsd.org> wrote:

> On Wed, May 22, 2024 at 2:07?PM Matthias Fechner <mfechner@freebsd.org> w=
rote:
> >
> > What is the recommended why to add python as a runtime dependency that =
the python binary is available?
>=20
> We usually patch the software to use pythonXY everywhere. For shebangs
> it can be done via USES=3Dshebangfix and for other cases resort to
> patches or REINPLACE_CMD incantations.
>=20

 An easier way is to use BINARY_ALIAS=3D python3=3D${PYTHON_CMD}

 Cheers,

--=20
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240522134340.7e3d0342fa6523619df39ec2>