summaryrefslogtreecommitdiff
path: root/pump.in
diff options
context:
space:
mode:
authorklarlund <klarlund@01de4be4-8c4a-0410-9132-4925637da917>2008-05-09 23:19:03 +0000
committerklarlund <klarlund@01de4be4-8c4a-0410-9132-4925637da917>2008-05-09 23:19:03 +0000
commit6f57c5956e188b062a6bb50037f2b4c84d00bfa8 (patch)
treecf6865133397ca0c82f7596bff3398809add3915 /pump.in
parent45c81d4b2781e1c7c29d8208f17304556e93fda7 (diff)
downloaddistcc-6f57c5956e188b062a6bb50037f2b4c84d00bfa8.tar.gz
Make the identification of Python 'binaries' more robust.
Use the distutil function that generates the library name for locating the Python stuff in an installation. Reviewers: fergus@google.com, csilvers@google.com Test: make distcheck git-svn-id: http://distcc.googlecode.com/svn/trunk@166 01de4be4-8c4a-0410-9132-4925637da917
Diffstat (limited to 'pump.in')
-rwxr-xr-xpump.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/pump.in b/pump.in
index 375e3aa..8249079 100755
--- a/pump.in
+++ b/pump.in
@@ -12,6 +12,7 @@
# TODO(klarlund): Rid this script of bash-isms.
PYTHON=@PYTHON@
+PYTHON_RELATIVE_LIB=@PYTHON_RELATIVE_LIB@
usage_string=\
'Usage:
@@ -127,7 +128,7 @@ Initialize() {
# set when the 'pump' script is made from 'pump.in'. Use this value in the
# formation of the relative path that takes us from the 'bin' directory of an
# installation to the 'include_server' directory.
- include_server_relative="../lib/$(basename $PYTHON)/site-packages/include_server"
+ include_server_relative="../$PYTHON_RELATIVE_LIB/include_server"
# We use a little heuristic to determine whether this pump script is part of
# an installation. Specifically, we check whether we're a bin directory, and