Browse Source

Exits with error if there is `~/.pydistutils.cfg` (#35, #111)

pull/116/head
Yamashita Yuu 10 years ago
parent
commit
854f6f3a46
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      plugins/python-build/bin/python-build

+ 6
- 0
plugins/python-build/bin/python-build View File

@ -1404,6 +1404,12 @@ if ! command -v curl 1>/dev/null 2>&1 && [[ "$(wget --version 2>/dev/null || tru
exit 1
fi
# pydistutils.cfg may corrupt install location of Python libraries (#35, #111)
if [ -e "$HOME/.pydistutils.cfg" ]; then
echo "python-build: Please make sure you remove any previous custom paths from your $HOME/.pydistutils.cfg file." >&2
exit 1
fi
SEED="$(date "+%Y%m%d%H%M%S").$$"
LOG_PATH="${TMP}/python-build.${SEED}.log"
PYTHON_BIN="${PREFIX_PATH}/bin/python"

Loading…
Cancel
Save