Unverified Commit 6b330b2b authored by Oliver Benning's avatar Oliver Benning Committed by GitHub
Browse files

Correct pip configuration location for linux/py3

PIP now obtains its configuration from ~/.pip/pip.conf and not ~/pip/pip.conf

Updated references in entrypoint.sh.
parent eda0426b
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -19,14 +19,14 @@ if [[ "$PYPI_URL" != "https://pypi.python.org/" ]] || \
   [[ "$PYPI_INDEX_URL" != "https://pypi.python.org/simple" ]]; then
    # the funky looking regexp just extracts the hostname, excluding port
    # to be used as a trusted-host.
    mkdir -p /root/pip
    echo "[global]" > /root/pip/pip.conf
    echo "index = $PYPI_URL" >> /root/pip/pip.conf
    echo "index-url = $PYPI_INDEX_URL" >> /root/pip/pip.conf
    echo "trusted-host = $(echo $PYPI_URL | perl -pe 's|^.*?://(.*?)(:.*?)?/.*$|$1|')" >> /root/pip/pip.conf
    mkdir -p /root/.pip
    echo "[global]" > /root/.pip/pip.conf
    echo "index = $PYPI_URL" >> /root/.pip/pip.conf
    echo "index-url = $PYPI_INDEX_URL" >> /root/.pip/pip.conf
    echo "trusted-host = $(echo $PYPI_URL | perl -pe 's|^.*?://(.*?)(:.*?)?/.*$|$1|')" >> /root/.pip/pip.conf

    echo "Using custom pip.conf: "
    cat /root/pip/pip.conf
    cat /root/.pip/pip.conf
fi

cd $WORKDIR