Skip to content

Commit 34c7a90

Browse files
authored
Always install the latest pip version in ./install.sh (#201)
This is an attempt to fix #198 by using the latest pip: ``` [+] installing dependencies within ephemeral Virtualenv: /var/folders/qd/8k4t20c9593_c05dv4mbrpx40000gp/T/tmp.dQz0ZxQ5 ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /Users/$USER/Documents/ucx (A "pyproject.toml" file was found, but editable mode currently requires a setuptools-based build.) WARNING: You are using pip version 21.2.4; however, version 23.2.1 is available. You should consider upgrading via the '/private/var/folders/qd/8k4t20c9593_c05dv4mbrpx40000gp/T/tmp.dQz0ZxQ5/bin/python -m pip install --upgrade pip' command. ```
1 parent c832375 commit 34c7a90

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ $py -m venv "$tmp_dir"
5353
# Use the Python from Virtualenv
5454
py="$tmp_dir/bin/python"
5555

56+
echo "[+] making sure we have the latest pip version"
57+
# Always upgrade pip, so that the hatchling build backend works. Hinted by errors like
58+
# > File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode
59+
#
60+
# See https://github.com/databrickslabs/ucx/issues/198
61+
$py -m pip install --quiet --upgrade pip
62+
5663
echo "[+] installing dependencies within ephemeral Virtualenv: $tmp_dir"
5764
# Install all project dependencies, so that installer can proceed
5865
$py -m pip install --quiet -e .

0 commit comments

Comments
 (0)