diff options
author | klarlund <klarlund@01de4be4-8c4a-0410-9132-4925637da917> | 2008-05-09 23:19:03 +0000 |
---|---|---|
committer | klarlund <klarlund@01de4be4-8c4a-0410-9132-4925637da917> | 2008-05-09 23:19:03 +0000 |
commit | 6f57c5956e188b062a6bb50037f2b4c84d00bfa8 (patch) | |
tree | cf6865133397ca0c82f7596bff3398809add3915 /pump.in | |
parent | 45c81d4b2781e1c7c29d8208f17304556e93fda7 (diff) | |
download | distcc-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-x | pump.in | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |