diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-23 08:29:46 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-23 08:29:46 -0500 |
commit | 2b1731fa00fb13e06a48b6efeec579c8664169cc (patch) | |
tree | b56bdcd8493eeb6aef16ecfe007775ce178e9c81 /regress-driver | |
parent | 433d1c77fb11082d8aade08bdb30ec7623bbbacb (diff) | |
download | gpsd-2b1731fa00fb13e06a48b6efeec579c8664169cc.tar.gz |
Copy an explanation of black magic from the ancient confugure.ac.
Diffstat (limited to 'regress-driver')
-rwxr-xr-x | regress-driver | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/regress-driver b/regress-driver index b6155812..af4feb28 100755 --- a/regress-driver +++ b/regress-driver @@ -19,8 +19,12 @@ fi if [ -z ${PYTHON} ]; then PYTHON="python" fi -# For an explanation of what we define here, see the comment on -# PYTHON_DISTUTILS_LIBDIR/PYTHON_DISTUTILS_SCRIPTDIR in configure.ac +# Define the directories we ask setup.py to install the +# modules/extensions and scripts to. The way chosen here reproduces +# the internal behaviour of distutils. Unfortunately distutils does +# not export the pre-defined/configured directories, so we have to +# define them on our own. For default installations of distutils the +# chosen values here will match what distutils uses. py_libdir=`pwd`/build/`${PYTHON} -c 'import distutils.util; import sys; print("lib.%s-%s" %(distutils.util.get_platform(), sys.version[0:3]))'` py_scriptdir=`pwd`/build/`${PYTHON} -c 'import sys; print("scripts-%s" %(sys.version[0:3], ))'` if [ -d ${py_libdir} ] && [ -d ${py_scriptdir} ]; then |