frog icon indicating copy to clipboard operation
frog copied to clipboard

Default python executable should be python3

Open wlach opened this issue 4 years ago • 5 comments

On Mac (still) the default python is python2, but it's python3 that you almost certainly want. Make this the default.

wlach avatar May 24 '20 17:05 wlach

This would be desirable on Debian and derivatives (e.g. Ubunto as well). The change for windows looks a bit suspect, but I don't know, I'm not a Windows user.

bremner avatar Aug 03 '20 19:08 bremner

Preface: I no longer use Frog myself. It's in low-maintenance mode. I have limited time to delve into this, including testing with various permutations of operating systems and Python versions.

example/frog.rkt is just that -- an example. Some users won't use Pygments at all. Those who do install and use it, will know more about the version of Pygments they installed and what version(s) of Python it needs.

So I'm not sure there's any one correct default here, and again this is just an example configuration?

greghendershott avatar Aug 05 '20 13:08 greghendershott

Greg Hendershott [email protected] writes:

Preface: I no longer use Frog myself. It's in low-maintenance mode. I have limited time to delve into this, including testing with various permutations of operating systems and Python versions.

example/frog.rkt is just that -- an example. Some users won't use Pygments at all. Those who do install and use it, will know more about the version of Pygments they installed and what version(s) of Python it needs.

So I'm not sure there's any one correct default here, and again this is just an example configuration?

Kindof offtopic, but since you mention example configuration...

What I would really like is a clean way to override the example configuration that gets installed with raco frog --init. I'm using frog in a class where it is preinstalled in a VM image. Currently my only idea is edit the files in the installed package, which seems kindof gross. I would be happy to work on my own feature request, but I'm a bit at sea as what to do.

d

bremner avatar Aug 05 '20 14:08 bremner

Preface: I no longer use Frog myself. It's in low-maintenance mode. I have limited time to delve into this, including testing with various permutations of operating systems and Python versions.

example/frog.rkt is just that -- an example. Some users won't use Pygments at all. Those who do install and use it, will know more about the version of Pygments they installed and what version(s) of Python it needs.

So I'm not sure there's any one correct default here, and again this is just an example configuration?

FWIW this was a bit of a gotcha and it took me some time to figure out what was going on, which is what motivated me to file the PR. It's possible that landing this would just cause another set of issues. I too don't really have time or inclination to explore this further, maybe the best thing (if it's ok with the maintainer) is just to leave this open for now as a warning to others. At some point in the hopefully-not-too-distant-future, python2 will become rare.

wlach avatar Aug 05 '20 16:08 wlach

On Windows, it would be “py -3”, preferably.

dertuxmalwieder avatar Nov 30 '20 08:11 dertuxmalwieder