My build has 2 basic steps.
Run unit tests. This must be done with python3
Deploy using ansible. THis must be done with python2.
Not seeing a way to make this happen in circleci.
I set up my machine like:
So my tests use python3 and everything passes. Great. Now I am trying to hack python2 into my deployment
- pyenv global 2.7.10
- pip install ansible
- ansible-playbook -v ./deploy.yml
Not so good, further into my scripts I get errors telling me my deployment is indeed using python3
Traceback (most recent call last): File "./inventory/gce.py", line 92, in <module> import ConfigParser ImportError: No module named 'ConfigParser'
pyenv global 2.7.10
Seems to be doing nothing…