Updated Windows build script so the installation won't get polluted by /bin files.

This commit is contained in:
Matthias Koefferlein 2019-11-14 00:47:12 +01:00
parent 4ae71075ed
commit e7989c4006
1 changed files with 4 additions and 0 deletions

View File

@ -190,8 +190,12 @@ first=1
pythons=$($python -c "import sys; print('\n'.join(sys.path))" | sort)
for p in $pythons; do
p=$(cygpath $p)
rp=""
if [[ $p == "$mingw_inst"* ]] && [ -e "$p" ]; then
rp=${p/"$mingw_inst/"}
fi
# NOTE: "bin" is in the path sometimes and will pollute our installation, so we skip it
if [ "$rp" != "" ] && [ "$rp" != "bin" ]; then
if [ $first == "0" ]; then
echo "," >>$target/.python-paths.txt
fi