pinard/Pymacs — Issue #13: Set Python interpreter in Makefile via environment variable
Author: holmboe
Created: 2011-12-26 23:35:18+00:00
State: open

I looked through the README to find out how I would go about installing Pymacs for Python 3, but couldn't find anything there. So I had a look through the Makefile and it had a PYTHON variable, so I thought fine. Then I thought that the pppp command probably does some fancy things regarding which version should be used so I had a look through ppppconfig.py and right there it was, a way to set the PYTHON environment variable.

So my suggestion is to allow the Makefile to read settings from the environment.

```
$ diff -uw Makefile.orig Makefile
--- Makefile.orig	2011-12-27 00:34:08.000000000 +0100
+++ Makefile	2011-12-27 00:27:18.000000000 +0100
@@ -3,7 +3,7 @@
# François Pinard , 2001.

EMACS = emacs
-PYTHON = python
+PYTHON ?= python
RST2LATEX = rst2latex

PYSETUP = $(PYTHON) setup.py
```