summaryrefslogtreecommitdiff
path: root/build.txt
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2016-03-15 16:52:11 -0700
committerEric S. Raymond <esr@thyrsus.com>2016-03-15 20:31:35 -0400
commitf3f0ba3f60f891c0e90aac15a7e928b67b0ece97 (patch)
tree495cc6f1caee390869cf6d1959d1f181808584e0 /build.txt
parent42dc44b6c27bb50e999c6b289c42c119f3340dc0 (diff)
downloadgpsd-f3f0ba3f60f891c0e90aac15a7e928b67b0ece97.tar.gz
Removes build-time dependency on 'python2'.
Since some systems lack a 'python2' command, the switch to 'python2' in the shebang lines can cause failures. This fix gets around it by explicitly invoking $PYTHON for all Python tools (except valgrind.py, which already gets the versioned shebang line). It also exports $PYTHON to the environment, so that regress-driver can do the same instead of defaulting to 'python2'. If scons becomes Python3-compatible before GPSD does, or if GPSD becomes pickier about Python versions than scons, some additional code will be needed to find a suitable Python version, but for now just using the same Python as scons is adequate (and is already what was being done for some programs, just not all). This does *not* address the issue of the *installed* Python programs not working without 'python2'. That's left for a separate change. TESTED: Verified that "scons build-all check" now works without a 'python2' in the command path, both with and without coveraging.
Diffstat (limited to 'build.txt')
-rw-r--r--build.txt4
1 files changed, 0 insertions, 4 deletions
diff --git a/build.txt b/build.txt
index ef7916b3..7627192f 100644
--- a/build.txt
+++ b/build.txt
@@ -60,10 +60,6 @@ Necessary components for any build:
|scons | for executing the build recipe
|============================================================================
-Note: There must be a Python 2 interpreter named 'python2' in your path,
-or the regression tests will fail. On some systems you might need to
-arrange this by putting symlink in a local directory on $PATH.
-
=== C compiler ===
C99 conformance is required in the compiler. The C code depends on one