Merge pull request #297 from unslothai/fix/fix-pip-issues
fix: make pip check non-fatal and install jedi for Colab compatibility
This commit is contained in:
commit
bded396923
1 changed files with 7 additions and 1 deletions
8
setup.sh
8
setup.sh
|
|
@ -191,8 +191,14 @@ install_python_stack() {
|
|||
run_quiet "pip install data-designer deps" pip install --no-cache-dir -c "$SINGLE_ENV_CONSTRAINTS" -r "$SINGLE_ENV_DATA_DESIGNER_DEPS"
|
||||
echo " Installing data-designer..."
|
||||
run_quiet "pip install data-designer" pip install --no-cache-dir --no-deps -c "$SINGLE_ENV_CONSTRAINTS" -r "$SINGLE_ENV_DATA_DESIGNER"
|
||||
# Colab's bundled IPython 7.34 requires jedi but doesn't ship it
|
||||
run_quiet "pip install jedi" pip install --no-cache-dir jedi
|
||||
run_quiet "patch single-env metadata" python "$SINGLE_ENV_PATCH"
|
||||
run_quiet "pip check" pip check
|
||||
# pip check can flag minor transitive-dependency version mismatches that
|
||||
# don't actually break anything. Warn instead of aborting.
|
||||
if ! pip check > /dev/null 2>&1; then
|
||||
echo "⚠️ pip check reports dependency conflicts (safe to ignore)"
|
||||
fi
|
||||
echo "✅ Python dependencies installed"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue