Skip to content

Commit

Permalink
Pin interpreter <3.7 in ci.
Browse files Browse the repository at this point in the history
Pants does not currently work in 3.7 and this helps repro issues in CI
on a developer workstation that has 3.7 and 3.lower.

Part of work on pantsbuild#6363.
  • Loading branch information
jsirois committed Aug 17, 2018
1 parent f4ab07c commit f951d8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-support/bin/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ fi
if [[ "${python_three:-false}" == "true" ]]; then
# The 3.4 end of this constraint is necessary to jive with the travis ubuntu trusty image.
banner "Setting interpreter constraints for 3!"
export PANTS_PYTHON_SETUP_INTERPRETER_CONSTRAINTS='["CPython>=3.4,<4"]'
# TODO(John Sirois): Allow `<4` when the issues with `3.7` are fixed. See:
# https://github.com/pantsbuild/pants/issues/6363
export PANTS_PYTHON_SETUP_INTERPRETER_CONSTRAINTS='["CPython>=3.4,<3.7"]'
# FIXME: Clear interpreters, otherwise this constraint does not end up applying due to a cache
# bug between the `./pants binary` and further runs.
./pants.pex clean-all
Expand Down

0 comments on commit f951d8e

Please sign in to comment.