Catching up
Gary E. Miller
gem at rellim.com
Sun Jan 7 22:59:05 UTC 2018
Yo Richard!
On Sun, 7 Jan 2018 16:27:11 -0600
Richard Laager via devel <devel at ntpsec.org> wrote:
> On 01/07/2018 04:27 AM, Hal Murray via devel wrote:
> > Is there a recipe for setting our stuff up to use Python3 when the
> > system defaults python to Python2?
Depends a lot on what OS you are using. On gentoo just use
eselect.
> For the Debian packaging, I do two things:
>
> 1) Instead of ./waf configure/build/install, I use: python3 waf ...
> 2) I patch the #!/usr/bin/env python to be #!/usr/bin/python3
>
> This isn't fully thought through, but one idea would be:
>
> Have waf capture the path to python. Then, substitute that in during
> ./waf install. Instead of the default substitution (@VARIABLE@), I
> would probably do a custom one. That way, the scripts can be run
> directly from the source tree (with the /usr/bin/env shebang).
Do what you want on Debian, but that would be bad on Gentoo. Gentoo
has a tool called eselect. With it I can select what version of python
to use as system default from the command line. Just one simple
command.
For Gentoo, embedding versions in files is officially discouraged.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem at rellim.com Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20180107/7c2bc0b1/attachment.bin>
More information about the devel
mailing list