python/python3: More robust major version detection.

Signed-off-by: Audrius Kažukauskas <audrius@neutrino.lt>
This commit is contained in:
Audrius Kažukauskas 2015-01-15 22:19:06 +02:00 committed by Willy Sudiarto Raharjo
parent 20a87df3bb
commit d9ff997b5f

View file

@ -52,7 +52,7 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
PYVER=${VERSION::3} PYVER=$(cut -d. -f1,2 <<< "$VERSION")
set -eu set -eu