Skip to content

Commit

Permalink
fix(packages): remove host built python3
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow committed Dec 18, 2024
1 parent f1bee5c commit abea03a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/python3/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ postinstall_package() {
find "${STAGING_PYTHON}" -mindepth 2 -type d -name "${NAME}" -exec rm -rf {} \;
done

export PYTHONPATH=""
unset PYTHONPATH

# IMPORTANT: remove built python for host, as causes conflict
for NAME in python3 pip3 ; do
rm -vf /usr/local/bin/${NAME}
done

# ignore if failed
return 0
}

0 comments on commit abea03a

Please sign in to comment.