Skip to content

Commit

Permalink
Check built whl file for missing modules (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Sep 21, 2023
1 parent 503915d commit 0db5e1a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build-whl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,14 @@ fi
pip install build
python -m build "$base/python/"

# check for missing modules in whl file
pyversion=${version/SNAPSHOT/dev0}
pyversion=${pyversion//-/.}

missing="$(diff <(cd $base/python; find gresearch -type f | grep -v ".pyc$" | sort) <(unzip -l $base/python/dist/pyspark_extension-${pyversion}-*.whl | tail -n +4 | head -n -2 | sed -E -e "s/^ +//" -e "s/ +/ /g" | cut -d " " -f 4- | sort) | grep "^<" || true)"
if [ -n "$missing" ]
then
echo "These files are missing from the whl file:"
echo "$missing"
exit 1
fi

0 comments on commit 0db5e1a

Please sign in to comment.