Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk authored Nov 5, 2019
1 parent 0dc3b44 commit bff6100
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ cd build
if [ $PY3K -eq 1 ]; then
PY_MAJOR=3
PY_UNSET_MAJOR=2
LIB_PYTHON="${PREFIX}/lib/libpython${PY_VER}${SHLIB_EXT}"
INC_PYTHON="$PREFIX/include/python${PY_VER}"
# Python 3.8 now combines the "m" and the "no m" builds in 1.
if [ ${PY_VER} == "3.6" ] || [ ${PY_VER} == "3.7"]; then
LIB_PYTHON="${PREFIX}/lib/libpython${PY_VER}${SHLIB_EXT}m"
INC_PYTHON="$PREFIX/include/python${PY_VER}m"
else
LIB_PYTHON="${PREFIX}/lib/libpython${PY_VER}${SHLIB_EXT}"
INC_PYTHON="$PREFIX/include/python${PY_VER}"
fi
else
PY_MAJOR=2
PY_UNSET_MAJOR=3
Expand Down

0 comments on commit bff6100

Please sign in to comment.