1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#!/bin/bash
PG_CONFIG=$(which pg_config)
PY_VERSION=$(python --version 2>&1 | awk '{ print substr($2,1,3)}')
PY27_VERSION=$(python2.7 --version 2>&1 | awk '{ print substr($2,1,3)}')
if [ -z "${PG_CONFIG}" ]; then
echo "No pg_config found in your path."
echo "Please check if you installed the PostgreSQL development packages."
exit 1
fi
if [ ! -x "${PG_CONFIG}" ]; then
echo "No pg_config found in your path."
echo "Please check if you installed the PostgreSQL development packages."
exit 1
fi
echo "Using python $PY_VERSION."
|