This means changing the default python version in the system. Since Arch is using python3 by default (has been for quite a while now), it might break the system in unexpected ways.
On 12/11/16 01:04 PM, Jacob MacDonald wrote: > The solution I'm seeing online is to update the python symlink to point at > python2 instead of 3. On Gentoo you could use eselect, not sure if Arch has > an equivalent. > > Best, > > Jacob. > > On Sat, Nov 12, 2016, 10:48 AM Gina White <[email protected]> wrote: > >> After finding it quite easy to build ledger on the mac, I'm running into >> trouble building it on arch linux (which is what my main development >> machine runs). >> >> The first problem is that the python scripts seem to assume python2 but >> when '/usr/bin/env python' is run on my arch linux machine, that uses >> python3. >> >> Are there thoughts about python versions for the scripts? The workaround >> being used in the community package for arch linux ledger is to change the >> ledger source to run '/usr/bin/env python2'. You can see that in the >> prepare function here: >> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ledger-git. >> >> One approach would be to make the scripts python3-compatible. I'm not >> sure what downsides that might include though. >> >> Another approach would be to change all the ledger scripts to specify >> '/usr/bin/env python2'. I'm not sure if that would work well though in the >> other places where ledger is being built. >> >> thanks >> - Gina >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Ledger" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
