Skip to content

CI: Pin NumPy version #18993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions ci/install_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ if [ "$CONDA_BUILD_TEST" ]; then
conda install conda-build
fi

# TODO(jreback)
echo
echo "[fix conda version]"
conda install conda=4.3.30

echo
echo "[add channels]"
conda config --remove channels defaults || exit 1
Expand Down Expand Up @@ -114,6 +109,12 @@ if [ -e ${REQ} ]; then
time bash $REQ || exit 1
fi

# Pin NumPy
echo ["pin NumPy"]
NUMPY_VERSION="$(conda list numpy | grep '^n.*' | awk '{print $2}')"
conda config --env --add pinned_packages numpy=" ${NUMPY_VERSION}"
conda config --show pinned_packages

time conda install -n pandas pytest>=3.1.0
time pip install pytest-xdist moto

Expand Down Expand Up @@ -201,7 +202,7 @@ fi

echo
echo "[show pandas]"
conda list pandas
conda list -n pandas

echo
echo "[done]"
Expand Down