From baa6305f76fb1b4a63460eeac64811ba92e94048 Mon Sep 17 00:00:00 2001 From: Serge Smertin Date: Fri, 15 Sep 2023 11:20:44 +0200 Subject: [PATCH] Always install the latest `pip` version in `./install.sh` This is an attempt to fix #198 --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index b1b609a846..7c80ae9adf 100755 --- a/install.sh +++ b/install.sh @@ -53,6 +53,13 @@ $py -m venv "$tmp_dir" # Use the Python from Virtualenv py="$tmp_dir/bin/python" +echo "[+] making sure we have the latest pip version" +# Always upgrade pip, so that the hatchling build backend works. Hinted by errors like +# > File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode +# +# See https://github.com/databrickslabs/ucx/issues/198 +$py -m pip install --quiet --upgrade pip + echo "[+] installing dependencies within ephemeral Virtualenv: $tmp_dir" # Install all project dependencies, so that installer can proceed $py -m pip install --quiet -e .