-
Notifications
You must be signed in to change notification settings - Fork 648
Running when Python 3 is the default #21
Comments
Does anybody have a sense whether the name |
Not specific to python2.7 but python2 |
You may interest this - http://stackoverflow.com/a/26056481 |
I created #88 to address this. Comments welcome. |
@kokes Thanks for the suggestions! I implemented it basically as you described. Let me know if you encounter any issues with it. |
It doesn't take much to make grumpy work under a non-default installation of 2.7, so I thought it could be somehow supported or at least described in the README.
I have Python 3 as my default (as in,
python
or/usr/bin/env python
will invoke Python 3), but I do have python2.7 installed as well. I presume this is a setup common for a lot of people, so I thought grumpy could be supported on system configurations like this.There are only two changes needed:
Makefile
, all calls to@python
need to be@python2.7
- but to make this universal, the invocation ofpython
here could be parametrised by using a variable, so that one could set the python version of choice in theMakefile
header.tools/*
use#!/usr/bin/env python
, which will point to Python 3, so I had to change this to/usr/bin/env python2.7
and I'm not quite sure what's the best way to make this parametrised. Perhaps using the aforementioned variable and using find/replace when copying the tool scripts to the build folderI hardcoded these two changes and tested it out, worked like a charm.
The text was updated successfully, but these errors were encountered: