Date: Wed, 22 May 2024 15:25:38 +0300 From: Matthias Fechner <mfechner@freebsd.org> To: ports@freebsd.org Subject: Re: How to add dependency to python binary Message-ID: <11b59ce1-b4db-4b21-91ca-646c281a6402@freebsd.org> In-Reply-To: <20240522134340.7e3d0342fa6523619df39ec2@bidouilliste.com> References: <674b2ef0-9d92-4540-afa7-9da6b625065a@freebsd.org> <CALH631=w4_mjd-Rd8iaDUSjmB_wHHiA=s2r5Dv_vPfarMMgENg@mail.gmail.com> <20240522134340.7e3d0342fa6523619df39ec2@bidouilliste.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------qDpiqqN8HDJxUHoHXLE8YcWw Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Am 22.05.2024 um 14:43 schrieb Emmanuel Vadot: > An easier way is to use BINARY_ALIAS= python3=${PYTHON_CMD} thanks, a maybe even better solution which I found now is: su -l git -c "cd /usr/local/www/gitlab && yarn config set python /usr/local/bin/python3.9" I will update my installation and upgrade instructions accordingly. I wish I could integrate this into the package, but like this it is also fine. Only drawback here is, if python is upgraded to a newer version, the command needs to be updated to the new binary too. Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook --------------qDpiqqN8HDJxUHoHXLE8YcWw Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div class="moz-cite-prefix">Am 22.05.2024 um 14:43 schrieb Emmanuel Vadot:<br> </div> <blockquote type="cite" cite="mid:20240522134340.7e3d0342fa6523619df39ec2@bidouilliste.com"><span style="white-space: pre-wrap"> </span> <pre class="moz-quote-pre" wrap=""> An easier way is to use BINARY_ALIAS= python3=${PYTHON_CMD} </pre> </blockquote> <p><br> </p> <p>thanks, a maybe even better solution which I found now is:<br> </p> <div style="background-color:#ffffff;color:#000000"> <pre style="font-family:'JetBrains Mono',monospace;font-size:9,0pt;"><span style="color:#032f62;">su -l git -c "cd /usr/local/www/gitlab && yarn config set python /usr/local/bin/python3.9" </span></pre> <p><span style="color:#032f62;">I will update my installation and upgrade instructions accordingly.<br> I wish I could integrate this into the package, but like this it is also fine.</span></p> <p><span style="color:#032f62;">Only drawback here is, if python is upgraded to a newer version, the command needs to be updated to the new binary too.<br> </span></p> <p><span style="color:#032f62;"></span></p> <pre style="font-family:'JetBrains Mono',monospace;font-size:9,0pt;"><span style="color:#032f62;"> </span></pre> </div> <pre class="moz-signature" cols="72"> Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook </pre> </body> </html> --------------qDpiqqN8HDJxUHoHXLE8YcWw--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11b59ce1-b4db-4b21-91ca-646c281a6402>