Iām still getting the pyenv error with CIRCLE_BUILD_IMAGE=ubuntu-14.04. It only happens when rebuilding w/o cache, but thatās exactly what I need to do for my build at the moment due to a separate issue.
This appears to have regressed in 2.0 using the circleci/python:3.6.1 docker image. Is there another that includes pyenv, tox, etc, or is this no longer supported?
Thanks, @tom. I ended up spending the day implementing the first two options, and will stick with workflows for now, so I donāt also have to maintain the additional Docker image as well.
However, the result is quite bulky and unsatisfying, especially for a small project. It would be nicer to have something cleaner, especially given that so many Python projects these days have to deal with Py2/3 compatibility.
Thanks for the feedback @carldunham, much appreciated. I agree with the sentiment that the current way of doing this could be simpler and more elegant.
Weāre having discussions internally on ways to make things easier in the future for this kind of use case so your feedback is very helpful to make sure we implement something that is of value.
Just one other piece of input: using just plain tox will be helpful for people who just want generic 2/3 compatibility, given that Ubuntu allows both versions to be installed. However, even for that, it means adding an apt-get call for the āotherā version. Going past just the two, for example to deal with the various Python3 versions (3.4.0 for Trusty, 3.5.1 for Xenial, and 3.6.1 as ācurrentā, for example), would require either multiple containers, a custom Docker image that installs pyenv and does pyenv install for each version, or a config.yml that does essentially the same thing (and takes a long time to run).
Iām sure you are aware of this all, just wanted to leave it here as an observation.