Skip to content

Commit da127f6

Browse files
committed
Fix travis_install.sh for LIBPYTHON
1 parent a6b1872 commit da127f6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ci/travis_install.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ if test "$PYENV_VERSION" = "system"; then
1919
echo "ERROR: LIBPYTHON is not provided for PYENV_VERSION=system" >2
2020
exit 1
2121
fi
22-
PYENV_INSTALL_VERSION=$(basename $(dirname $(dirname $LIBPYTHON)))
23-
else
24-
PYENV_INSTALL_VERSION=$PYENV_VERSION
22+
# NOTE: PYENV_VERSION should be the version of LIBPYTHON during install script
23+
PYENV_VERSION=$(basename $(dirname $(dirname $LIBPYTHON)))
2524
fi
26-
PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install -f $PYENV_INSTALL_VERSION
25+
PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install -f $PYENV_VERSION
2726

2827
case "$PYENV_VERSION" in
2928
*conda*)

0 commit comments

Comments
 (0)